Error loading functions: /usr/local/libexec/singularity/functions

367 views
Skip to first unread message

George Zaki

unread,
Aug 1, 2017, 11:13:43 AM8/1/17
to singularity
Hi singularity group,

I have installed singularity from source as mentioned in the documentation:

git clone https://github.com/singularityware/singularity.git
cd singularity
./autogen.sh
./configure --prefix=/usr/local
make
sudo make install

Then when I try to call the executable I get the following error:

singularity Error loading functions: /usr/local/libexec/singularity/functions

I can see that this directory: /usr/local/libexec/singularity/ has 700 permission.

Am I missing something?

Thanks and regards,
George.

George Zaki

unread,
Aug 1, 2017, 11:16:22 AM8/1/17
to singularity
P.S. I am running CentOS Linux release 7.3.1611

David Godlove

unread,
Aug 1, 2017, 11:23:07 AM8/1/17
to singu...@lbl.gov
Hi George!  That is indeed unusual.  Could there be anything strange about your umask or the umask of root on your system?

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

George Zaki

unread,
Aug 1, 2017, 12:32:03 PM8/1/17
to singu...@lbl.gov
Thanks David. I changed the umask for root and it is happier now.

Now I run in two other issues.

1- Bootstrap:

$ sudo singularity bootstrap candle.img candle.def
sudo: singularity: command not found


So I change to sudo:
$sudo su
$which singularity
/usr/local/bin/singularity


Then I bootstrapped the image correctly.

2- Exec:

I switch back to my user account and I try:

$singularity exec root-candle.img stc
/.singularity.d/actions/exec: 5: .: Can't open /.singularity.d/env/90-swift.sh


However with sudo I get:

$ sudo su
$ singularity exec root-candle.img stc
No input file was specified!
Use 'stc -h' for help.

 

To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.

--
You received this message because you are subscribed to a topic in the Google Groups "singularity" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lbl.gov/d/topic/singularity/0x_UuhkqsNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to singularity...@lbl.gov.

George Zaki

unread,
Aug 1, 2017, 12:40:28 PM8/1/17
to singularity
I added /user/local/bin to my sudoer path so point 1 is resolved.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

--
You received this message because you are subscribed to a topic in the Google Groups "singularity" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lbl.gov/d/topic/singularity/0x_UuhkqsNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to singularity+unsubscribe@lbl.gov.

David Godlove

unread,
Aug 1, 2017, 12:44:00 PM8/1/17
to singu...@lbl.gov
Sounds like your definition is making a file called /.singularity.d/env/90-swift.sh (that maybe has wrong permissions?) And then when Singularity tries to source that file during startup it fails when you are a normal user?  What does your definition file look like?  (I feel like maybe I should already know lol).

To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

--
You received this message because you are subscribed to a topic in the Google Groups "singularity" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lbl.gov/d/topic/singularity/0x_UuhkqsNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to singularity+unsubscribe@lbl.gov.

--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.

George Zaki

unread,
Aug 1, 2017, 1:03:57 PM8/1/17
to singularity
Hi David, 

Point 2 is also solved after I bootstrapped again using sudo singularity bootstrap.

Thanks for your help.

Best regards,
George.

David Godlove

unread,
Aug 1, 2017, 1:06:11 PM8/1/17
to singu...@lbl.gov
Awesome.

George.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.

--
You received this message because you are subscribed to a topic in the Google Groups "singularity" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lbl.gov/d/topic/singularity/0x_UuhkqsNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to singularity...@lbl.gov.
Reply all
Reply to author
Forward
0 new messages