Client logs not working (no such file or directory)

I have a problem in where the client is unable to access the server log (accesslog) of their website.
In the directory /home/[USER]/web/[DOMAIN]/logs there is a symlink to /var/log/apache2/domains/[DOMAIN].log. Where [USER] is the clients username, and [DOMAIN] is the clients domainname.

When the client accesses the symlinked logfile through the home folder, it returns a error “No such file or directory”.
According to a directory listing in /var/log/apache2/domains all logfiles are owned by their respective user. So this shoulnt be a problem.

It seems i need to bump this post a bit. The problem went away, but came back after some maintenance to my server.

Here is the output of WinSCP when opening the symlink. Opening it in a terminal trough the root account works.

Cannot open remote file ‘/home/website/web/loebas.boykisser.nl/logs/loebas.boykisser.nl.log’.
No such file or directory.
Error code: 2
Error message from server: No such file

That’s because your user is “chrooted”.

v-delete-user-sftp-jail website

And try again.

1 Like