Thread '': No such file or directory' (cryptic/useless error message)'

Message boards : Questions and problems : ': No such file or directory' (cryptic/useless error message)
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileDavid Melik
Avatar

Send message
Joined: 4 Nov 08
Posts: 48
Message 110532 - Posted: 23 Nov 2022, 2:58:17 UTC
Last modified: 23 Nov 2022, 3:04:34 UTC

I run Slackware64 boinc-7.18.1-x86_64-2_SBo to (incrementing SlackBuild) boinc-7.20.2-x86_64-1_SBo (work fine), Slackware-arm boinc-7.18.1-arm-2_SBo to boinc-7.20.2-arm-1_SBo (built from SlackBuilds.org (SBo).
When /etc/rc.d/rc.boinc does (in existent/boinc-writable data directory) 'exec /usr/boinc/boinccmd --dir /home/user/.boinc_data --redirectio --join_acct_mgr https://grcpool.com/ user password' I get cryptic/useless error message ': No such file or directory'. What file/directory? (message from BOINC, not the OS: doesn't do ones starting with colon).
    Please write clear/useful error messages but for now is there a configure option to recompile with debugging so I might get a clear/useful error message?
    If debugging would help others, please message me (I don't come here much).
    Please allow people to automatically get notifications of replies to their own threads, and don't wrongly close threads for being 'old'.
ID: 110532 · Report as offensive
computezrmle

Send message
Joined: 2 Feb 22
Posts: 81
Germany
Message 110533 - Posted: 23 Nov 2022, 6:29:15 UTC - in response to Message 110532.  

Looks like you mix command options from 'boinc' and 'boinccmd'.

Check valid options running:
/usr/boinc/boinc --help
/usr/boinc/boinccmd --help
ID: 110533 · Report as offensive
ProfileDavid Melik
Avatar

Send message
Joined: 4 Nov 08
Posts: 48
Message 110534 - Posted: 23 Nov 2022, 6:34:45 UTC - in response to Message 110533.  
Last modified: 23 Nov 2022, 7:25:55 UTC

I made a mistake. The commands being done are these. I maybe found out the problem: it was with using a new rc file (my old one works).
BOINC_DIR=/home/u/.boinc_data    # directory of boinc files
BOINC_BIN=boinc                  # name of the boinc binary
BOINC_USER=u                     # user that will run boinc process
BOINC_OPTIONS="--dir $BOINC_DIR --redirectio"
su - $BOINC_USER -c "cd $BOINC_DIR; exec /usr/bin/BOINC_BIN $BOINC_OPTIONS" &
su - $BOINC_USER -c "cd $BOINC_DIR; exec /usr/bin/boinccmd --join_acct_mgr https://grcpool.com/ user pass"
ID: 110534 · Report as offensive
ProfileDavid Melik
Avatar

Send message
Joined: 4 Nov 08
Posts: 48
Message 110536 - Posted: 23 Nov 2022, 7:56:24 UTC
Last modified: 23 Nov 2022, 7:56:35 UTC

The old one didn't always work either, but copying & pasting the commands did, so it must've been a different problem with the system ($PATH or console character set).
ID: 110536 · Report as offensive
computezrmle

Send message
Joined: 2 Feb 22
Posts: 81
Germany
Message 110538 - Posted: 23 Nov 2022, 12:59:27 UTC - in response to Message 110534.  
Last modified: 23 Nov 2022, 13:02:20 UTC

su - $BOINC_USER -c "cd $BOINC_DIR; exec /usr/bin/BOINC_BIN $BOINC_OPTIONS" &
su - $BOINC_USER -c "cd $BOINC_DIR; exec /usr/bin/boinccmd --join_acct_mgr https://grcpool.com/ user pass"

Sending the first command bg might cause a race condition since BOINC needs a short while to be completely up.
The 2nd command requires a fully running BOINC client.
You may consider to remove the "&" insert a "sleep x" after the 1st command.
ID: 110538 · Report as offensive
ProfileDavid Melik
Avatar

Send message
Joined: 4 Nov 08
Posts: 48
Message 110542 - Posted: 23 Nov 2022, 21:06:57 UTC - in response to Message 110538.  
Last modified: 23 Nov 2022, 21:07:33 UTC

[...] Sending the first command bg might cause a race condition since BOINC needs a short while to be completely up. [...]

Thanks. I did also rewrite it to be all on one line (separated by semicolons) but same happened... even if I don't launch the manager, the same happens: something is going wrong with launching boinc itself from a script, regardless whether any manager is even run.
ID: 110542 · Report as offensive
computezrmle

Send message
Joined: 2 Feb 22
Posts: 81
Germany
Message 110546 - Posted: 24 Nov 2022, 9:19:34 UTC - in response to Message 110542.  

Instead of this
/usr/bin/BOINC_BIN

you may try this
/usr/bin/$BOINC_BIN
ID: 110546 · Report as offensive

Message boards : Questions and problems : ': No such file or directory' (cryptic/useless error message)

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.