x86 build script error....

If you can spot what may be wrong. This is the latest github download. Running it as root.

Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/x86/libupnp6_1.6.20.jfd5-1_i386.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/x86/libupnp6_1.6.20.jfd5-1_i386.deb' (UTF-8)
--2017-03-17 04:14:35--  http://repo.volumio.org/Packages/Upmpdcli/x86/libupnp6_1.6.20.jfd5-1_i386.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 174424 (170K) [application/octet-stream]
Saving to: 'libupnp6_1.6.20.jfd5-1_i386.deb'

libupnp6_1.6.20.jfd5-1_i386.deb  100%[============================================================>] 170.34K  95.8KB/s   in 1.8s   

2017-03-17 04:14:37 (95.8 KB/s) - 'libupnp6_1.6.20.jfd5-1_i386.deb' saved [174424/174424]

Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/x86/libupnpp3_0.15.1-1_i386.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/x86/libupnpp3_0.15.1-1_i386.deb' (UTF-8)
--2017-03-17 04:14:37--  http://repo.volumio.org/Packages/Upmpdcli/x86/libupnpp3_0.15.1-1_i386.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 242414 (237K) [application/octet-stream]
Saving to: 'libupnpp3_0.15.1-1_i386.deb'

libupnpp3_0.15.1-1_i386.deb      100%[============================================================>] 236.73K  70.0KB/s   in 3.4s   

2017-03-17 04:14:40 (70.0 KB/s) - 'libupnpp3_0.15.1-1_i386.deb' saved [242414/242414]

Selecting previously unselected package libupnpp3.
(Reading database ... 30921 files and directories currently installed.)
Preparing to unpack libupnpp3_0.15.1-1_i386.deb ...
Unpacking libupnpp3 (0.15.1-1) ...
Setting up libupnpp3 (0.15.1-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
(Reading database ... 30927 files and directories currently installed.)
Preparing to unpack libupnp6_1.6.20.jfd5-1_i386.deb ...
Unpacking libupnp6 (1:1.6.20.jfd5-1) over (1:1.6.19+git20141001-1+deb8u1) ...
Setting up libupnp6 (1:1.6.20.jfd5-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Selecting previously unselected package upmpdcli.
(Reading database ... 30927 files and directories currently installed.)
Preparing to unpack upmpdcli_1.2.12-1_i386.deb ...
Unpacking upmpdcli (1.2.12-1) ...
Setting up upmpdcli (1.2.12-1) ...
Failed to read /proc/cmdline. Ignoring: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for systemd (215-17+deb8u6) ...
Installing Shairport-Sync
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Volumio2/Binaries/x86/shairport-sync_2.8.4-1_i386.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Volumio2/Binaries/x86/shairport-sync_2.8.4-1_i386.deb' (UTF-8)
--2017-03-17 04:14:42--  http://repo.volumio.org/Volumio2/Binaries/x86/shairport-sync_2.8.4-1_i386.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114986 (112K) [application/octet-stream]
Saving to: 'shairport-sync_2.8.4-1_i386.deb'

shairport-sync_2.8.4-1_i386.deb  100%[============================================================>] 112.29K   475KB/s   in 0.2s   

2017-03-17 04:14:47 (475 KB/s) - 'shairport-sync_2.8.4-1_i386.deb' saved [114986/114986]

Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Volumio2/Binaries/x86/libssl1.0.2_1.0.2h-1_i386.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Volumio2/Binaries/x86/libssl1.0.2_1.0.2h-1_i386.deb' (UTF-8)
--2017-03-17 04:14:47--  http://repo.volumio.org/Volumio2/Binaries/x86/libssl1.0.2_1.0.2h-1_i386.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1718652 (1.6M) [application/octet-stream]
Saving to: 'libssl1.0.2_1.0.2h-1_i386.deb'

libssl1.0.2_1.0.2h-1_i386.deb    100%[============================================================>]   1.64M  57.2KB/s   in 18s    

2017-03-17 04:15:07 (92.1 KB/s) - 'libssl1.0.2_1.0.2h-1_i386.deb' saved [1718652/1718652]

Selecting previously unselected package libssl1.0.2:i386.
(Reading database ... 30980 files and directories currently installed.)
Preparing to unpack libssl1.0.2_1.0.2h-1_i386.deb ...
Unpacking libssl1.0.2:i386 (1.0.2h-1) ...
Setting up libssl1.0.2:i386 (1.0.2h-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Selecting previously unselected package shairport-sync.
(Reading database ... 31002 files and directories currently installed.)
Preparing to unpack shairport-sync_2.8.4-1_i386.deb ...
Unpacking shairport-sync (2.8.4-1) ...
Setting up shairport-sync (2.8.4-1) ...
Adding user `shairport-sync' to group `audio' ...
Adding user shairport-sync to group audio
Done.
Failed to read /proc/cmdline. Ignoring: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for systemd (215-17+deb8u6) ...
Processing triggers for man-db (2.7.0.2-5) ...
Installing LINN Songcast module
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/x86/sc2mpd_1.1.1-1_i386.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/x86/sc2mpd_1.1.1-1_i386.deb' (UTF-8)
--2017-03-17 04:15:08--  http://repo.volumio.org/Packages/Upmpdcli/x86/sc2mpd_1.1.1-1_i386.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 977414 (955K) [application/octet-stream]
Saving to: 'sc2mpd_1.1.1-1_i386.deb'

sc2mpd_1.1.1-1_i386.deb          100%[============================================================>] 954.51K  90.1KB/s   in 14s    

2017-03-17 04:15:22 (67.5 KB/s) - 'sc2mpd_1.1.1-1_i386.deb' saved [977414/977414]

Selecting previously unselected package sc2mpd.
(Reading database ... 31018 files and directories currently installed.)
Preparing to unpack sc2mpd_1.1.1-1_i386.deb ...
Unpacking sc2mpd (1.1.1-1) ...
Setting up sc2mpd (1.1.1-1) ...
Volumio Init Updater
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Volumio2/Binaries/x86/volumio-init-updater' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Volumio2/Binaries/x86/volumio-init-updater' (UTF-8)
--2017-03-17 04:15:23--  http://repo.volumio.org/Volumio2/Binaries/x86/volumio-init-updater
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6432 (6.3K) [application/octet-stream]
Saving to: '/usr/local/sbin/volumio-init-updater/volumio-init-updater'

/usr/local/sbin/volumio-init-upd 100%[============================================================>]   6.28K  --.-KB/s   in 0s     

2017-03-17 04:15:23 (525 MB/s) - '/usr/local/sbin/volumio-init-updater/volumio-init-updater' saved [6432/6432]

Zsync
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Volumio2/Binaries/x86/zsync' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Volumio2/Binaries/x86/zsync' (UTF-8)
--2017-03-17 04:15:23--  http://repo.volumio.org/Volumio2/Binaries/x86/zsync
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 226588 (221K) [application/octet-stream]
Saving to: '/usr/bin/zsync'

/usr/bin/zsync                   100%[============================================================>] 221.28K  80.6KB/s   in 2.7s   

2017-03-17 04:15:25 (80.6 KB/s) - '/usr/bin/zsync' saved [226588/226588]

Adding volumio-remote-updater
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Volumio2/Binaries/x86/volumio-remote-updater' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Volumio2/Binaries/x86/volumio-remote-updater' (UTF-8)
--2017-03-17 04:15:25--  http://repo.volumio.org/Volumio2/Binaries/x86/volumio-remote-updater
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14912752 (14M) [application/octet-stream]
Saving to: '/usr/local/sbin/volumio-remote-updater'

/usr/local/sbin/volumio-remote-u 100%[============================================================>]  14.22M   145KB/s   in 2m 30s 

2017-03-17 04:17:56 (97.4 KB/s) - '/usr/local/sbin/volumio-remote-updater' saved [14912752/14912752]

Installing Upmpdcli Streaming Modules
Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-gmusic_1.2.12-1_all.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-gmusic_1.2.12-1_all.deb' (UTF-8)
--2017-03-17 04:17:56--  http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-gmusic_1.2.12-1_all.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10146 (9.9K) [application/octet-stream]
Saving to: 'upmpdcli-gmusic_1.2.12-1_all.deb'

upmpdcli-gmusic_1.2.12-1_all.deb 100%[============================================================>]   9.91K  --.-KB/s   in 0s     

2017-03-17 04:17:57 (217 MB/s) - 'upmpdcli-gmusic_1.2.12-1_all.deb' saved [10146/10146]

Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-qobuz_1.2.12-1_all.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-qobuz_1.2.12-1_all.deb' (UTF-8)
--2017-03-17 04:17:57--  http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-qobuz_1.2.12-1_all.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14824 (14K) [application/octet-stream]
Saving to: 'upmpdcli-qobuz_1.2.12-1_all.deb'

upmpdcli-qobuz_1.2.12-1_all.deb  100%[============================================================>]  14.48K  --.-KB/s   in 0.03s  

2017-03-17 04:17:57 (546 KB/s) - 'upmpdcli-qobuz_1.2.12-1_all.deb' saved [14824/14824]

Error in GnuTLS initialization: Failed to acquire random data.
converted 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-tidal_1.2.12-1_all.deb' (ANSI_X3.4-1968) -> 'http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-tidal_1.2.12-1_all.deb' (UTF-8)
--2017-03-17 04:17:57--  http://repo.volumio.org/Packages/Upmpdcli/upmpdcli-tidal_1.2.12-1_all.deb
Resolving repo.volumio.org (repo.volumio.org)... 80.69.77.195
Connecting to repo.volumio.org (repo.volumio.org)|80.69.77.195|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11470 (11K) [application/octet-stream]
Saving to: 'upmpdcli-tidal_1.2.12-1_all.deb'

upmpdcli-tidal_1.2.12-1_all.deb  100%[============================================================>]  11.20K  --.-KB/s   in 0.05s  

2017-03-17 04:17:58 (215 KB/s) - 'upmpdcli-tidal_1.2.12-1_all.deb' saved [11470/11470]

Selecting previously unselected package upmpdcli-gmusic.
(Reading database ... 31024 files and directories currently installed.)
Preparing to unpack upmpdcli-gmusic_1.2.12-1_all.deb ...
Unpacking upmpdcli-gmusic (1.2.12-1) ...
Setting up upmpdcli-gmusic (1.2.12-1) ...
Selecting previously unselected package upmpdcli-qobuz.
(Reading database ... 31030 files and directories currently installed.)
Preparing to unpack upmpdcli-qobuz_1.2.12-1_all.deb ...
Unpacking upmpdcli-qobuz (1.2.12-1) ...
Setting up upmpdcli-qobuz (1.2.12-1) ...
Selecting previously unselected package upmpdcli-tidal.
(Reading database ... 31043 files and directories currently installed.)
Preparing to unpack upmpdcli-tidal_1.2.12-1_all.deb ...
Unpacking upmpdcli-tidal (1.2.12-1) ...
Setting up upmpdcli-tidal (1.2.12-1) ...
Creating Volumio Folder Structure
mkdir: cannot create directory '/media': File exists
Prepping MPD environment
Setting mpc to bind to unix socket
Setting Permissions for /etc/modules
Adding Volumio Parent Service to Startup
Adding Volumio Remote Updater Service to Startup
Adding Udisks-glue service to Startup
Adding First start script
Adding Dynamic Swap Service
Setting Mpd to SystemD instead of Init
Failed to read /proc/cmdline. Ignoring: No such file or directory
Synchronizing state for mpd.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d mpd defaults
Executing /usr/sbin/update-rc.d mpd enable
Preventing un-needed dhcp servers to start automatically
Failed to read /proc/cmdline. Ignoring: No such file or directory
Synchronizing state for isc-dhcp-server.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d isc-dhcp-server defaults
Executing /usr/sbin/update-rc.d isc-dhcp-server disable
insserv: warning: current start runlevel(s) (empty) of script `isc-dhcp-server' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `isc-dhcp-server' overrides LSB defaults (0 1 6).
Failed to read /proc/cmdline. Ignoring: No such file or directory
Adding Users to Audio Group
Setting RT Priority to Audio Group
Alsa tuning
Creating Alsa state file
Tuning LAN
Disabling IPV6
#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Wireless
Configuring hostapd
Hostapd conf files
Setting fallback DNS with Google's DNS
Removing Avahi Service for UDISK-SSH
Creating DHCPCD folder structure
mkdir: cannot create directory '/var/lib/dhcpcd5': File exists
Base System Installed
Writing system information
Unmounting Temp devices
umount: build/x86/root/dev: must be superuser to unmount
umount: build/x86/root/proc: must be superuser to unmount
umount: build/x86/root/sys: must be superuser to unmount
umount: build/x86/root/run/cgmanager/fs: must be superuser to unmount
Copying Custom Volumio System Files
Copying X86 related Configuration files
cp: cannot create regular file 'build/x86/root/volumio/app/plugins/system_controller/network/wireless.js': No such file or directory
Done Copying Custom Volumio System Files
Stripping binaries and libraries to save space
Writing x86 Image File
Creating Image Bed
Image file: Volumio2.0-2017-03-17-x86.img
3900+0 records in
3900+0 records out
4089446400 bytes (4.1 GB) copied, 17.3554 s, 236 MB/s
losetup: cannot find an unused loop device
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
Error: Could not stat device  - No such file or directory.
/dev/mapper/control: open failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper � and kernel driver 
device mapper prerequisites not met
/dev/mapper/p1 doesn't exist

Did you install all requisites? Are you using debian?

If you want to try a fresh baked image:
updates.volumio.org/x86/volumio/ … 86.img.zip

what OS are you building on, Debian or Ubuntu?
Does your environment meet all the prerequisites from the build readme.md?

@Michelangelo, you beat me by seconds :slight_smile:

@Gé you see, I’ve been training :smiley:

I am using Debian Jessie. Yes, I have those pre-reqs from the Readme. I believe the problem might be that I am trying to do this in a Docker container and it does not have support for loop devices. I will try to do this in a VM.

On a related note, I am not seeing the tar.gz file being produced to be able to make a Docker image. Where is that being done?

Yes, you definitely need the loop devices. VM is OK, Virtual Box also works.
For the Docker image you need to look at our build.sh and the cmd parameter needed for that.
I never tried it, docker noob :wink:

Yes, I see the docker parameter in the build.sh and it takes a tar.gz file but unfortunately I don’t see that file produced by the build script. Perhaps it is because of my current errors. Will try on VM and see if the tar.gz file is produced.

BTW, when I installed docker on my build system, suddenly I got many apt-get errors when building Volumio images: it seems there is a know DNS resolution issue with Docker version below 1.14.
Did not test such version, but removing docker fixed all the DNS name resolution issues in build process.

ok, running the build in a VM didn’t have the issues (except for some scripts I had to remove sudo from as it was already required to run the script as sudo). Anyway, I still do not see this file created: VolumioRootFS$VERSION.tar.gz

I’m not sure if anyone of us is actually using docker or seriously experimenting with it.

Yes, but I was not even using it: just installing it (default docker.io package version) on the build machine altered DNS name resolution for building std Pi images for instance!..
Removing docker.io package cleared all issues (as strange as it may look at first sight…).

Actually, when you install docker.io, it does create a new network virtual interface on host machine, and it does something wrong with overall networking operations on host.
So, if you have docker installed on build machine, you may end-of with DNS name resolution issue when building images (event not invoking docker!): typically apt-get failing to resolve package servers IP (particularly if using redirectors): it’s a docker issue, not redirectors!..
Removed package, problems gone.

Hopefully docker v1.14 may resolve this bug (I did not test, just stayed away from docker for now…): untill then it’s better NOT to install docker on build machines, particularly if you do not intend to use it
Just a heads-up, as it was painful (and unexpected) to figure-out: maybe worthwhile to add a note on Github’s Volumio Build instructions…