New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd and directories an EL7 #365
Comments
We've found same issue, though I've set adminpath to spool dir as follows:
Should we need to change all.adminpath from /var/run to /var/spool for el7 or what is causing //clustered; permission denied? |
The details of what files are created anw where they are created can be found here: In case that is not clear (and please let me know if it's not), some comments:
In this case, it appears that a) the current working directory was "/" (bad idea) and "-n clustered" was specified as an argument. Obviously, one cannot create directories in "/" unless you are root.
In general, all directories you specify in the config file or command line options must be owned by xrootd with user permissions set to rwx (i.e. the last component). I am closing this ticket since it's not a bug but a configuration problem on how the directories were setup. If you feel otherwise, please re-open the thicket and let me know what you think is the endemic xrootd-specific problem here. |
"-s /var/run/xrootd" is the default in the systemd service script. If I make an systemctl edit xrootd.. and change the -s to point to /var/spool/ I get rid of the unable to create envfile. (I'd also have to do this for the cmsd service). Unfortunately //clustered is still trying to be created. I fixed that by setting WorkingDirectory=/var/spool/xrootd in the systemd override file. I would like to be able to set these settings without having to modify / override the systemd service file from xrootd. Would it be possible to introduce variables? p.s. I can't re-open - I'd have to open a new one so I'll reply here and hope that's enough :) |
Hi, Reviving this ticket because other folks are complaining about it. The XRootD packaging is obviously wrong. While, yes, it's technically possible to correct the out-of-the-box issues, I don't understand why these can't be fixed in the packaging?
Brian |
Hi Michal, Locally, we drop in this override:
|
This issue still affects cmsd on EL7:
It's also expected, since the mentioned commit sadly only fixes the |
Thanks for pointing it out! Just in time before the next RC :-) Michal |
Done in: 378da3a Michal |
Many thanks! 👍 |
Hello!
Trying out xrootd - redirector to a dCache instance on EL7 - (it's working - these are just some errors I get in the xrootd logs).
setup:
The exact same /etc/xrootd/xrootd-clustered.cfg config, storage.xml and Authfile on an EL6 and EL7.
Both have OSG33 and xrootd 4.3.0 and xrootd-cmstfc 1.5.1-10. dCache 2.15
Started the services with systemctl start xrootd@clustered.service
selinux is in permissive mode
Issues on EL7:
A) I had to manually create /var/run/xrootd and set ownerships. This means if I reboot the server this doesn't work. does not survive a reboot.
I guess this is because I have
If I change this to /var/run
then it tries to create /var/run/clustered
B) It also tries to create a //clustered directory
------ xrootd protocol initialization completed.
160512 15:05:34 6059 XrdConfig: Unable to create home directory //clustered; permission denied
I couldn't find what setting to change the home directory in http://xrootd.org/doc/prod/xrd_config.htm
This is the adminpath:
The text was updated successfully, but these errors were encountered: