Hello:
I created a docker image rstudio-4.0.4-20211017, I wanted to converted it to a singularity file. I used the following method and it worked perfect for me in past, but today it failed with the error message:
docker run -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/test:/output --privileged -t --rm quay.io/singularity/docker2singularity rstudio-4.0.4-20211017
Image Format: squashfs
Docker Image: rstudio-4.0.4-20211017
Inspected Size: 2883 MB
(1/10) Creating a build sandbox...
(2/10) Exporting filesystem...
(3/10) Creating labels...
(4/10) Adding run script...
(5/10) Setting ENV variables...
(6/10) Adding mount points...
(7/10) Fixing permissions...
(8/10) Stopping and removing the container...
(9/10) Building squashfs container...
INFO: Starting build...
INFO: Creating SIF file...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xa8 pc=0x5635685b337a]
goroutine 1 [running]:
github.com/sylabs/sif/v2/pkg/sif.CreateContainerAtPath(0x7ffccd453e35, 0x37, 0xc000586b80, 0x1, 0x1, 0xc0004fef00, 0x2, 0x4)
github.com/sylabs/sif/[email protected]/pkg/sif/create.go:269 +0x17a
github.com/sylabs/singularity/internal/pkg/build/assemblers.createSIF(0x7ffccd453e35, 0x37, 0xc0003b0000, 0xc00016c690, 0x2d, 0x0, 0x563568cd707e, 0x5, 0x0, 0x0)
github.com/sylabs/[email protected]/internal/pkg/build/assemblers/sif.go:121 +0x809
github.com/sylabs/singularity/internal/pkg/build/assemblers.(*SIFAssembler).Assemble(0xc000388de0, 0xc0003b0000, 0x7ffccd453e35, 0x37, 0x0, 0x0)
github.com/sylabs/[email protected]/internal/pkg/build/assemblers/sif.go:212 +0x600
github.com/sylabs/singularity/internal/pkg/build.(*stage).Assemble(...)
github.com/sylabs/[email protected]/internal/pkg/build/stage.go:42
github.com/sylabs/singularity/internal/pkg/build.(*Build).Full(0xc0001aa180, 0x5635694e2980, 0xc000042058, 0x0, 0x0)
github.com/sylabs/[email protected]/internal/pkg/build/build.go:466 +0xb85
github.com/sylabs/singularity/cmd/internal/cli.runBuildLocal(0x5635694e2980, 0xc000042058, 0x563569d6e8a0, 0x7ffccd453e35, 0x37, 0x7ffccd453e6d, 0x39)
github.com/sylabs/[email protected]/cmd/internal/cli/build_linux.go:348 +0x840
github.com/sylabs/singularity/cmd/internal/cli.runBuild(0x563569d6e8a0, 0xc000264140, 0x2, 0x2)
github.com/sylabs/[email protected]/cmd/internal/cli/build_linux.go:134 +0x34a
github.com/spf13/cobra.(*Command).execute(0x563569d6e8a0, 0xc00003c0e0, 0x2, 0x2, 0x563569d6e8a0, 0xc00003c0e0)
github.com/spf13/[email protected]/command.go:860 +0x2ac
github.com/spf13/cobra.(*Command).ExecuteC(0x563569d792a0, 0x563569495578, 0xc0000a3860, 0xc00031dfb0)
github.com/spf13/[email protected]/command.go:974 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/[email protected]/command.go:895
github.com/sylabs/singularity/cmd/internal/cli.ExecuteSingularity()
github.com/sylabs/[email protected]/cmd/internal/cli/singularity.go:430 +0x20e
main.main()
github.com/sylabs/[email protected]/cmd/singularity/cli.go:19 +0x52
Today, before seeing the above error message, I tried the above command and hit an error:
FATAL: While performing build: while creating SIF: while creating container: writing data object for SIF file: copying data object file to SIF file: write /tmp/rstudio-4.0.4-20211017-2021-10-18-ae6bf9b2ebd6.sif: no space left on device
So, I used the command "docker system prune -a" to remove exited containers and unused images. I also restarted docker.
Thank you very much for your suggestion!
Regards,
Rong