1

我尝试从 Singularity Hub 构建一个奇点容器,如下所示:

sudo singularity pull shub://marcc-hpc/pytorch

我得到了 ERROR : Called singularity_config_get_value on uninitialized config subsystem

所以,我将配方复制粘贴到一个名为“recipe”的文件中,然后执行

sudo singularity build --sandbox myimage recipe

它以 33.3% 的完成率永远挂起,如下所示:

Using container recipe deffile: recipe
Sanitizing environment
Adding base Singularity environment to container
tar: ./.exec: implausibly old time stamp -9223372036854775808
tar: ./.run: implausibly old time stamp -9223372036854775808
tar: ./.shell: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions/exec: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions/run: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions/shell: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions/start: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions/test: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/actions: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/env/01-base.sh: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/env/90-environment.sh: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/env/95-apps.sh: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/env/99-base.sh: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/env: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/libs: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/runscript: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d/startscript: implausibly old time stamp -9223372036854775808
tar: ./.singularity.d: implausibly old time stamp -9223372036854775808
tar: ./.test: implausibly old time stamp -9223372036854775808
tar: ./dev: implausibly old time stamp -9223372036854775808
tar: ./environment: implausibly old time stamp -9223372036854775808
tar: ./etc/hosts: implausibly old time stamp -9223372036854775808
tar: ./etc/resolv.conf: implausibly old time stamp -9223372036854775808
tar: ./etc: implausibly old time stamp -9223372036854775808
tar: ./home: implausibly old time stamp -9223372036854775808
tar: ./proc: implausibly old time stamp -9223372036854775808
tar: ./root: implausibly old time stamp -9223372036854775808
tar: ./singularity: implausibly old time stamp -9223372036854775808
tar: ./sys: implausibly old time stamp -9223372036854775808
tar: ./tmp: implausibly old time stamp -9223372036854775808
tar: ./var/tmp: implausibly old time stamp -9223372036854775808
tar: ./var: implausibly old time stamp -9223372036854775808
tar: .: implausibly old time stamp -9223372036854775808
Docker image path: index.docker.io/marcchpc/pytorch_cuda9:latest
Cache folder set to /root/.singularity/docker
[7/21] |===========|-----------------------|  33.3%

然后,我想我会尝试获取 hello world 容器:

singularity pull --name meatballs.img shub://vsoch/hello-world

...我得到了同样的错误信息。

有谁知道这个错误是什么意思,为什么我不能让它运行?

4

2 回答 2

0

我找到了解决办法:使用的奇点版本太旧了!

我得到了这个版本,它太旧了:

$ singularity --version
2.4.2-dist

下载此脚本的内容:

#!/bin/bash
VERSION=2.5.2
wget https://github.com/singularityware/singularity/releases/download/$VERSION/singularity-$VERSION.tar.gz
tar xvf singularity-$VERSION.tar.gz
cd singularity-$VERSION
./configure --prefix=/usr/local
make
sudo make install

调用它:

sudo ./install_singularity

到达 v2.5.2

$ singularity --version
2.5.2-dist

一切都按预期工作。

于 2019-06-14T11:03:43.430 回答
0

这里同样的问题。我注意到如果我跑

sudo singularity build hello_world.simg shub://singularityhub/ubuntu

在 Travis 上(见日志)一切都按预期工作:

Cache folder set to /root/.singularity/shub
Progress |===================================| 100.0% 
Building from local image: /root/.singularity/shub/singularityhub-ubuntu-master-latest.simg
Building Singularity image...
Singularity container built: hello_world.simg
Cleaning up...

但是,在本地运行它会导致不同的行为:

richel@sonic:~/GitHubs/singularity_example_1$ sudo singularity build hello_world.simg shub://singularityhub/ubuntu
[sudo] password for richel: 
Cache folder set to /root/.singularity/shub
Progress |===================================| 100.0% 
ERROR  : Called singularity_config_get_value on uninitialized config subsystem
ABORT  : Retval = 255
ERROR: Unsupported file type: /root/.singularity/shub/singularityhub-ubuntu-master-latest.simg
Cleaning up...

我知道 Travis (2.5.2-HEAD.ddf3e31) 和我的本地计算机 (2.4.2-dist) 上的版本不同,但我认为这应该没问题[编辑:我错了,请参阅答案] .

我希望这有助于找到解决方案。

操作系统:

richel@sonic:~/GitHubs/singularity_example_1$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
于 2019-06-14T10:12:06.830 回答