Message boards : Theory Application : Calculation Error!!! Why?
Message board moderation

To post messages, you must log in.

AuthorMessage
Enzo Ricci

Send message
Joined: 9 Jun 19
Posts: 13
Credit: 89,679
RAC: 1,215
Message 43707 - Posted: 25 Nov 2020, 14:45:03 UTC

Hi! I am currently doing jobs for CMS and would like to do work also for Theory Application as well. I followed all the instructions I found in the post
Native Theory Application Setup (Linux only)

but I keep getting "Calculation Error" within the first 3 seconds of starting the job.
I run the LHC@home jobs on a system with 6 cores and 8 GB of RAM and Kubuntu 20.04 operating system.
I hope someone can help me because otherwise I will be forced to give up Theory Application.
Any help will be greatly appreciated!
ID: 43707 · Report as offensive     Reply Quote
djoser
Avatar

Send message
Joined: 30 Aug 14
Posts: 145
Credit: 10,847,070
RAC: 0
Message 43709 - Posted: 25 Nov 2020, 15:17:37 UTC - in response to Message 43707.  

Stderr shows "Failed to read CernVM-FS configuration"

Check your CVMFS configuration by typing "cvmfs_config probe" into a console.
If you get "Probing xxxx... Failed" you have a local configuration problem with CVMFS.
Why mine when you can research? - GRIDCOIN - Real cryptocurrency without wasting hashes! https://gridcoin.us
ID: 43709 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jun 08
Posts: 1825
Credit: 123,761,719
RAC: 86,212
Message 43710 - Posted: 25 Nov 2020, 15:19:03 UTC - in response to Message 43707.  

Since it makes no sense to try Theory native without a well configured CVMFS client you may set Theory to "no new tasks" and pause all tasks that are already downloaded.


CVMFS reqires the following steps:
1. Download and install the recent client package + cvmfs-config-default

2. Run "cvmfs_config setup" only once

3. Check if the following files/dirs exist
/etc/auto.cvmfs (a link pointing to /usr/libexec/cvmfs/auto.cvmfs)

/etc/auto.master.d/cvmfs.autofs
# automatically generated by CernVM-FS
/cvmfs /etc/auto.cvmfs

/etc/auto.master
must contain the line
+dir:/etc/auto.master.d




4. Change the CVMFS configuration according to this thread:
https://lhcathome.cern.ch/lhcathome/forum_thread.php?id=5342&postid=41861

5. Reboot

6. To check if it works run
cvmfs_config probe


7. If you get OKs, resume your tasks and set Theory to accept fresh work.
If you don't get OKs post here again.


Troubleshooting hints:
https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html#troubleshooting
ID: 43710 · Report as offensive     Reply Quote
Enzo Ricci

Send message
Joined: 9 Jun 19
Posts: 13
Credit: 89,679
RAC: 1,215
Message 43711 - Posted: 25 Nov 2020, 16:16:57 UTC - in response to Message 43710.  

Hi, Thank you very much for your help.
All your test executed and OK, but:
 $ cvmfs_config probe                                                      
/usr/bin/cvmfs_config: riga 9: /etc/cvmfs/config.sh: permission denied
/usr/bin/cvmfs_config: riga 1159: cvmfs_readconfig: command not found
Failed to read CernVM-FS configuration
$ 
$ sudo cvmfs_config probe                                            
[sudo] password : 
Probing /cvmfs/atlas.cern.ch... OK
Probing /cvmfs/atlas-condb.cern.ch... OK
Probing /cvmfs/grid.cern.ch... OK
Probing /cvmfs/cernvm-prod.cern.ch... OK
Probing /cvmfs/sft.cern.ch... OK
Probing /cvmfs/alice.cern.ch... OK
$

I have installed CernVM-FS from https://cernvm.cern.ch/fs/ and followed the instructions.
At a point I executed:
$ cd /etc/cvmfs
$ sudo chmod -v 700 config.sh
$ sudo ./config.sh

then I created the file /etc/cvmfs/default.local
and executed cvmfs_config setup with no problems, but I installed CernVM-FS
to execute jobs for ATLAS. When I saw that Teory Application also requires CernVM-FS,
I simply integrated the /etc/cvmfs/default.local file with the data for Theory Application.
When probed with $ sudo cvmfs_config probe I obtained ALL OK.
Is it possible that there is only a problem due to the installation with sudo (as per instructions),
the installation being executable only by root? So how can I also run it as a normal user?
ID: 43711 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jun 08
Posts: 1825
Credit: 123,761,719
RAC: 86,212
Message 43714 - Posted: 26 Nov 2020, 7:14:31 UTC - in response to Message 43711.  

At a point I executed:
$ cd /etc/cvmfs
$ sudo chmod -v 700 config.sh
$ sudo ./config.sh

This changes the permissions of "config.sh".
I wonder why you did that and where you got it from.

It looks like you restricted the use of CVMFS to root, hence the permissions denied message.
ID: 43714 · Report as offensive     Reply Quote
Enzo Ricci

Send message
Joined: 9 Jun 19
Posts: 13
Credit: 89,679
RAC: 1,215
Message 43715 - Posted: 26 Nov 2020, 8:00:11 UTC - in response to Message 43714.  

I changed de permissions of /etc/cvmfs/config.sh to 777 and
executed config.sh.
Now, with $ cvmfs_config probe I have all OK.
Is really OK or I must make other changes and test?
Thank you very much!
ID: 43715 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 15 Jun 08
Posts: 1825
Credit: 123,761,719
RAC: 86,212
Message 43716 - Posted: 26 Nov 2020, 8:16:56 UTC - in response to Message 43715.  

To be sure all options are correctly set and all drivers are loaded you should do a reboot.
Then run "cvmfs_config probe" using the same account your BOINC client uses - no sudo since this would switch to root.

If you get this your CVMFS works fine:
Probing /cvmfs/atlas.cern.ch... OK
Probing /cvmfs/atlas-condb.cern.ch... OK
Probing /cvmfs/grid.cern.ch... OK
Probing /cvmfs/cernvm-prod.cern.ch... OK
Probing /cvmfs/sft.cern.ch... OK
Probing /cvmfs/alice.cern.ch... OK
ID: 43716 · Report as offensive     Reply Quote
Enzo Ricci

Send message
Joined: 9 Jun 19
Posts: 13
Credit: 89,679
RAC: 1,215
Message 43717 - Posted: 26 Nov 2020, 8:53:15 UTC - in response to Message 43716.  

So it all started with my mistake: I thought that if config.sh was on / etc it should be started as root!
I rebooted and everything went well as you can see:
$ cvmfs_config probe                                                        20-11-26 / 9:44
Probing /cvmfs/atlas.cern.ch... OK
Probing /cvmfs/atlas-condb.cern.ch... OK
Probing /cvmfs/grid.cern.ch... OK
Probing /cvmfs/cernvm-prod.cern.ch... OK
Probing /cvmfs/sft.cern.ch... OK
Probing /cvmfs/alice.cern.ch... OK
$

This error of mine also affected ATLAS which gave me the same "calculation error" problem.
Now I will activate the jobs for ATLAS and Theory Application!
I thank you so much fo your very valuable help!!!
With best regards.
ID: 43717 · Report as offensive     Reply Quote

Message boards : Theory Application : Calculation Error!!! Why?


©2021 CERN