Build iso issue to build image

Hi,

Fresh install and failure to build an ISO image, it’s not the first time I post on this subject.

and then error with the server

error: failed retrieving file ‘core.db’ from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu

same with .org

build_mirror=https://manjaro.moson.org/

details below

[nls@dev ~]$ pamac install manjaro-tools-iso git
Preparing…
Synchronizing package databases…
Warning: git-2.38.1-2 is up to date – skipping
Resolving dependencies…
Checking inter-conflicts…

To install (10):
manjaro-tools-base-git r3002.7ef0b3d-1 extra 24,4 kB
ruby-kwalify 0.7.2-3 extra 192,0 kB
mktorrent 1.1-6 community 10,1 kB
calamares-tools 0.1.0-1 extra 7,3 kB
libburn 1.5.4-1 extra 292,8 kB
libisofs 1.5.4-1 extra 269,7 kB
libisoburn 1.5.4-2 extra 785,9 kB
manjaro-iso-profiles-base 17.1.12-1 extra 24,7 kB
manjaro-tools-yaml-git r3002.7ef0b3d-1 extra 9,7 kB
manjaro-tools-iso-git r3002.7ef0b3d-1 extra 40,8 kB

Total download size: 1,7 MB
Total installed size: 4,9 MB

Apply transaction ? [y/N] y
Downloading manjaro-tools-base-git (r3002.7ef0b3d-1)…
Downloading ruby-kwalify (0.7.2-3)…
Downloading mktorrent (1.1-6)…
Downloading calamares-tools (0.1.0-1)…
Downloading libisofs (1.5.4-1)…
Downloading manjaro-iso-profiles-base (17.1.12-1)…
Downloading manjaro-tools-yaml-git (r3002.7ef0b3d-1)…
Downloading libburn (1.5.4-1)…
Downloading libisoburn (1.5.4-2)…
Downloading manjaro-tools-iso-git (r3002.7ef0b3d-1)…
Checking keyring… [10/10]
Checking integrity… [10/10]
Loading package files… [10/10]
Checking file conflicts… [10/10]
Checking available disc space… [10/10]
Installing manjaro-tools-base-git (r3002.7ef0b3d-1)… [1/10]
Installing ruby-kwalify (0.7.2-3)… [2/10]
Installing mktorrent (1.1-6)… [3/10]
Installing calamares-tools (0.1.0-1)… [4/10]
Installing libisofs (1.5.4-1)… [5/10]
Installing manjaro-iso-profiles-base (17.1.12-1)… [6/10]
Installing manjaro-tools-yaml-git (r3002.7ef0b3d-1)… [7/10]
Installing libburn (1.5.4-1)… [8/10]
Installing libisoburn (1.5.4-2)… [9/10]
Installing manjaro-tools-iso-git (r3002.7ef0b3d-1)… [10/10]
Running post-transaction hooks…
Arming ConditionNeedsUpdate… [1/3]
Refreshing PackageKit… [2/3]
Updating the info directory file… [3/3]
Transaction successfully finished.
[nls@dev ~]$ git clone https://gitlab.manjaro.org/profiles-and-settings/iso-profiles.git
Cloning into ‘iso-profiles’…
remote: Enumerating objects: 20160, done.
remote: Counting objects: 100% (144/144), done.
remote: Compressing objects: 100% (136/136), done.
remote: Total 20160 (delta 72), reused 0 (delta 0), pack-reused 20016
Receiving objects: 100% (20160/20160), 20.41 MiB | 2.60 MiB/s, done.
Resolving deltas: 100% (12558/12558), done.
[nls@dev ~]$ buildiso -f -p xfce -b stable
[sudo] password for nls:
→ Profile: [xfce]
==> Start building [xfce]
==> Cleaning up …
→ Deleting isoroot [iso] …
→ Loading Packages: [Packages-Root] …
==> Prepare [Base installation] (rootfs)
→ mirror: https://manjaro.moson.eu/stable/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
→ Installing packages to /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
:: Synchronizing package databases…
core.db failed to download
error: failed retrieving file ‘core.db’ from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu
warning: too many errors from manjaro.moson.eu, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
[nls@dev ~]$ sudo rm -r /var/lib/manjaro-tools/buildiso/
[nls@dev ~]$ buildiso -f -p xfce -b stable
→ Profile: [xfce]
==> Start building [xfce]
==> Cleaning up …
→ Deleting isoroot [iso] …
→ Loading Packages: [Packages-Root] …
==> Prepare [Base installation] (rootfs)
→ mirror: https://manjaro.moson.eu/stable/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
→ Installing packages to /var/lib/manjaro-tools/buildiso/xfce/x86_64/rootfs
:: Synchronizing package databases…
core.db failed to download
error: failed retrieving file ‘core.db’ from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu
warning: too many errors from manjaro.moson.eu, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
[nls@dev ~]$

You didn’t search before posting did you?

2 Likes

the tools is not broken - but your config - and iso-profiles needs maintenance

1 Like

@ngr @linux-aarhus

I search a solution but…

thanks both for your answer, unfortunately, the issue is not solve in my case.

the Manjaro build iso conf file need maintenance

in my case I don’t understand your solution,
I read and apply, but same issue

mirrorlist file

##
## Manjaro Linux custom mirrorlist
## Generated on 2022-12-08 18:46
##
## Please use 'pacman-mirrors -id' To reset custom mirrorlist
## Please use 'pacman-mirrors -c all' To reset custom mirrorlist
## To remove custom config run  'pacman-mirrors -c all'
##

## Country : France
Server = https://manjaro.ynh.ovh/stable/$repo/$arch

## Country : France
Server = http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/$repo/$arch

## Country : France
Server = https://mirror.ibakerserver.pt/manjaro/stable/$repo/$arch

Server = https://mirrors.manjaro.org/repo/stable/$repo/$arch

manjaro-tools conf file

######################################################
################ manjaro-tools.conf ##################
######################################################

# default target branch
# target_branch=stable

# default target arch: auto detect
# target_arch=$(uname -m)

# cache dir where buildpkg, buildtree cache packages/pkgbuild, builiso iso files
# cache_dir=/var/cache/manjaro-tools

# build dir where buildpkg or buildiso chroots are created
# chroots_dir=/var/lib/manjaro-tools

# log dir where log files are created
# log_dir='/var/log/manjaro-tools'

# custom build mirror server
# build_mirror=https://manjaro.moson.org/
# build_mirror=https://manjaro.moson.eu/ for stable
build_mirror=https://manjaro.moson.eu/
[nls@lap ~]$ buildiso -f -p kde -b stable -k linux515 2022.12.08
 --> Profile: [kde]
==> Start building [kde]
==> Cleaning up ...
  -> Deleting chroot [rootfs] (x86_64) ...
  -> Deleting isoroot [iso] ...
 --> Loading Packages: [Packages-Root] ...
==> Prepare [Base installation] (rootfs)
 --> mirror: https://manjaro.moson.eu//stable/$repo/$arch
==> Creating install root at /var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs
  -> Installing packages to /var/lib/manjaro-tools/buildiso/kde/x86_64/rootfs
:: Synchronizing package databases...
 core.db failed to download
error: failed retrieving file 'core.db' from manjaro.moson.eu : Could not resolve host: manjaro.moson.eu
warning: too many errors from manjaro.moson.eu, skipping for the remainder of this transaction
error: failed to synchronize all databases (invalid url for server)
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
[nls@lap ~]$ 

I build Manjaro arm images for years for the arm devices, yesterday I build 4 of them (c2, c4…) no issue
sometime I up date the wiki.

Change this line in the conf file to a mirror that actually exists. This one was deprecated a while ago.

1 Like

thanks for your message, give me a working server, I don’t know the good one :sweat_smile:

######################################################
################ manjaro-tools.conf ##################
######################################################

# default target branch
# target_branch=stable

# default target arch: auto detect
# target_arch=$(uname -m)

# cache dir where buildpkg, buildtree cache packages/pkgbuild, builiso iso files
# cache_dir=/var/cache/manjaro-tools

# build dir where buildpkg or buildiso chroots are created
# chroots_dir=/var/lib/manjaro-tools

# log dir where log files are created
# log_dir='/var/log/manjaro-tools'

# custom build mirror server
# build_mirror=https://manjaro.moson.org/
# build_mirror=https://manjaro.moson.eu/ for stable

build_mirror=https://manjaro.moson.eu/

# default target arch: auto detect
# target_arch=$(uname -m)

# cache dir where buildpkg, buildtree cache packages/pkgbuild, builiso iso files
# cache_dir=/var/cache/manjaro-tools

# build dir where buildpkg or buildiso chroots are created
# chroots_dir=/var/lib/manjaro-tools

# log dir where log files are created
# log_dir='/var/log/manjaro-tools'

# custom build mirror server
# build_mirror=https://manjaro.moson.org/
# build_mirror=https://manjaro.moson.eu/ for stable

build_mirror=https://manjaro.moson.eu/

################ buildtree ###############

# manjaro package tree
# repo_tree=('core' 'extra' 'community' 'multilib')

# host_tree=https://github.com/manjaro

# default https seems slow; try this
# host_tree_abs=git://projects.archlinux.org/svntogit

################ buildpkg ################

# default pkg build list; name without .list extension
# build_list_pkg=default

################ buildiso ################

# default branch for iso-profiles repo: v18.1 Juhraya master>development release
# branch=v18.1

# default iso build list; name without .list extension
# build_list_iso=default

# the dist release; default: auto
# dist_release=18.1

# the dist codename; default: auto
# dist_codename=Juhraya

# the OS branding; default: auto
# dist_name

# the branding; default: auto
# dist_branding="MJRO"

# compression used, possible values gzip, lzma, lz4, lzo, xy, zstd (default)
# iso_compression=zstd

# unset defaults to given value
# kernel="linux54"

# gpg key; leave empty or commented to skip sfs signing
# gpgkey=""

########## calamares preferences ##########
#See branding.desc.d for reference

# welcome style for calamares: true="Welcome to the %1 installer." ; false="Welcome to the Calamares installer for %1." (default)
# welcomestyle=false

# welcome image scaled (productWelcome) 
# welcomelogo=true

# size and expansion policy for Calamares (possible value: normal,fullscreen,noexpand)
# windowexp=noexpand

# size of Calamares window, expressed as w,h. 
# (possible units: pixel (px) or font-units (em))
# windowsize="800px,520px"

# placement of Calamares window, either "center" or "free".
# windowplacement="center"

# colors for text and background components:

# background of the sidebar
# sidebarbackground=#454948

# text color
# sidebartext=#efefef

# background of the selected step
# sidebartextselect=#4d915e

# text color of the selected step
# sidebartexthighlight=#1a1c1b

################ deployiso ################

# the server user
# account=[SetUser]

# Set to 'true' to use ssh-agent to store passphrase.
# ssh_agent=false

# use alternative storage server (one or the other might be more stable)
# alt_storage=false

# the server project: manjaro|manjaro-community
# determined automatically based on profile if unset
# project="[SetProject]"

# set upload bandwidth limit in kB/s
# limit=

# the torrent tracker urls, comma separated
# tracker_url='udp://tracker.opentrackr.org:1337'

# Piece size, 2^n
# piece_size=21

I found one here !

https://repo.manjaro.org/

hola

this one is really fast !

https://manjaro.ynh.ovh/
 community  7,5 MiB  64,3 MiB/s 00:00 [###########################] 100%

It has always been the intention to allow the iso builder to change the buildmirror.

This can be any active mirror from the mirror pool - but some will be better than others depending on the host and the location of the user.

Some useful mirrors

One tip which will make your manjaro-tools always follow your primary mirror

 $ grep /etc/pacman.d/mirrorlist -e 'http' | head -n 1 | cut -d' ' -f3- | rev | cut -d'/' -f4- | rev
https://mirror.moson.org/manjaro

 $ build_mirror=$(grep /etc/pacman.d/mirrorlist -e 'http' | head -n 1 | cut -d' ' -f3- | rev | cut -d'/' -f4- | rev)

 $ echo ${build_mirror}
https://mirror.moson.org/manjaro

Edit your ~/.config/manjaro-tools/manjaro-tools.conf

build_mirror=$(grep /etc/pacman.d/mirrorlist -e 'http' | head -n 1 | cut -d' ' -f3- | rev | cut -d'/' -f4- | rev)

As you always - I hope - run buildiso on a fully updated system - in case of a slow build - simply rerun pacman-mirrors - and a full system sync - then rerun buildiso :slight_smile:

2 Likes

Thanks all for your help.
I keep this topic, one more !

I replace the manson server by a working one and no issue to build an iso image on the fresh manjaro computer.
really nice to build your own os.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.