You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a Docker container to set up an Environment to create a package. When I run the Docker image, the intent is:
If an environment for a given package architecture and DSM version doesn't exist, create it using EnvDeploy
Run PkgCreate.py to create package.
The first time I run the container (which is run in privileged mode), everything works fine (the package gets created) and the container stops after the package creation. Anytime I try to run the container a subsequent time, however, I start to get failures. From the second time onward, only step 2 runs because the environments already exist. I can always destroy the container and rebuild it, but my goal here is to have my build environment already set up so I can generate packages at will.
I posted some of the steps I found failing below, any idea what could be happening? Seems like I am missing something on the cleanup side that is preventing me from running this again. I have tried running chroot $build_env umount /proc per the README after package creation to hopefully reset the build environment but I get umount: /proc: umount failed: No such file or directory
Sometimes:
mount: /build_env/ds.avoton-6.2/proc: permission denied.
umount: /build_env/ds.avoton-6.2/proc: must be superuser to unmount.
Rarely:
mount: /build_env/ds.avoton-6.2/proc: cannot mount none read-only.
umount: /build_env/ds.avoton-6.2/proc: must be superuser to unmount.
Always: /pkgscripts-ng/SynoBuild: line 129: /dev/fd/62: No such file or directory /pkgscripts-ng/SynoInstall: line 73: /dev/fd/62: No such file or directory
The text was updated successfully, but these errors were encountered:
Always:
/pkgscripts-ng/SynoBuild: line 129: /dev/fd/62: No such file or directory
/pkgscripts-ng/SynoInstall: line 73: /dev/fd/62: No such file or directory
turns out you have to run the docker container with --privileged to fix that issue!
EDIT: It's been a while since I have looked at this so I forgot, but I checked and I am running the container with the privileged flag so unfortunately that doesn't help me
Hi,
I am using a Docker container to set up an Environment to create a package. When I run the Docker image, the intent is:
EnvDeploy
PkgCreate.py
to create package.The first time I run the container (which is run in privileged mode), everything works fine (the package gets created) and the container stops after the package creation. Anytime I try to run the container a subsequent time, however, I start to get failures. From the second time onward, only step 2 runs because the environments already exist. I can always destroy the container and rebuild it, but my goal here is to have my build environment already set up so I can generate packages at will.
I posted some of the steps I found failing below, any idea what could be happening? Seems like I am missing something on the cleanup side that is preventing me from running this again. I have tried running
chroot $build_env umount /proc
per the README after package creation to hopefully reset the build environment but I getumount: /proc: umount failed: No such file or directory
Sometimes:
Rarely:
Always:
/pkgscripts-ng/SynoBuild: line 129: /dev/fd/62: No such file or directory
/pkgscripts-ng/SynoInstall: line 73: /dev/fd/62: No such file or directory
The text was updated successfully, but these errors were encountered: