I am setting up a Fulcrum server of my Fedora Linux 37 (Workstation Edition) system.
I made a fulcrum.service file, enabled and started the service - unfortunately it will not run.
Could this be a permissions issue?
The systemd.exec document has: “The actual process execution failed (specifically, the execve(2) system call). Most likely this is caused by a missing or non-accessible executable file.”. Normally, linux user directories get drwx------. permissions so you may want to choose a different location for your server.
I did try moving this to /usr/local/etc but when I went to enable service it gave me an error.
(I did rm the original service first following a guide)
Are we free to put a service file anywhere we choose?
If so, is there more that needs to be done for the service to be recognized?
Thank you.
The Fulcrum executable is confirmed to be in /home/g/fulcrum
I am not sure how to run from Terminal, tried right clicking on Fulcrum in Files and choosing Run…then checked with:
journalctl -fu fulcrum.service
Result was same as in my original post.
Post 6 above by @jn64 gave the exact command line to use for testing the program in a terminal window. I will repeat that since it is what is shown in the ExecStart line above. /home/g/fulcrum/Fulcrum /home/g/fulcrum/fulcrum.conf
Just to confirm this is not a permissions or an selinux issue. What are the permissions on /home, /home/g, /home/g/fulcrum, and /home/g/fulcrum/Fulcrum.?
The output of the commands ls -ldZ /home ls -ldZ /home/g ls -ldZ /home/g/fulcrum
& ls -ldZ /home/g/fulcrum/Fulcrum
will tell us that.
g@fedora ~]$ /home/g/fulcrum/Fulcrum /home/g/fulcrum/fulcrum.conf
/home/g/fulcrum/Fulcrum: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
[g@fedora ~]$
[g@fedora ~]$ ls -ldZ /home
drwxr-xr-x. 1 root root system_u:object_r:home_root_t:s0 2 Aug 9 2022 /home
[g@fedora ~]$
[g@fedora ~]$ ls -ldZ /home/g
drwx------. 1 g g unconfined_u:object_r:user_home_dir_t:s0 522 Apr 27 19:29 /home/g
[g@fedora ~]$
[g@fedora ~]$ ls -ldZ /home/g/fulcrum
drwxr-xr-x. 1 g g unconfined_u:object_r:user_home_t:s0 202 Apr 27 19:38 /home/g/fulcrum
[g@fedora ~]$
[g@fedora ~]$ ls -ldZ /home/g/fulcrum/Fulcrum
-rwxrwx--x. 1 g g unconfined_u:object_r:user_home_t:s0 17988488 Apr 9 09:31 /home/g/fulcrum/Fulcrum
[g@fedora ~]$
Am I wrong in thinking that I need to be able to get Fulcrum to run first this way?
[g@fedora ~]$ cd fulcrum
[g@fedora fulcrum]$ ./Fulcrum -h
./Fulcrum: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
When I list installed I see:
bzip2.x86_64
bzip2-libs.x86_64
But I do not see libbz2.so.1.0
Would it be in bzip2-libs.x86_64?
I am still getting a permission error however when checking status of fulcrum.service.
May 01 08:45:34 fedora systemd[1]: Started fulcrum.service - Fulcrum.
May 01 08:45:34 fedora (Fulcrum)[25985]: fulcrum.service: Failed to locate executable /home/g/fulcrum/Fulcrum: Permission denied
May 01 08:45:34 fedora (Fulcrum)[25985]: fulcrum.service: Failed at step EXEC spawning /home/g/fulcrum/Fulcrum: Permission denied
May 01 08:45:34 fedora systemd[1]: fulcrum.service: Main process exited, code=exited, status=203/EXEC
May 01 08:45:34 fedora systemd[1]: fulcrum.service: Failed with result 'exit-code'.