Error in log every day

Discussion in 'ISPConfig 3 Priority Support' started by SpeedyB, Aug 31, 2025.

  1. SpeedyB

    SpeedyB Member HowtoForge Supporter

    hi,
    2 times a day at 22:00 and 22:05 i have the follwing error in the systemlog:

    Code:
    Error executing jk_init command: 
    ERROR: jail directory basicshell is not safe Usage: /usr/sbin/jk_init 
    [OPTIONS] Usage: /usr/sbin/jk_init 
    [OPTIONS] 
    -j jaildir sections... 
    -h --help : this help screen 
    -c, --configfile=FILE : specify configfile location 
    -l, --list : list all available sections in the configfile 
    -j, --jail= : specify the jail to use. For backwards compatibility, if no jail is specified, the first argument after the options will be used as jail 
    -v, --verbose : show what is being done 
    -f, --force : force overwriting of existing files 
    -k, --hardlink : use hardlinks if possible
    I saw a thread with the same issue, but not a writeup of a fix. can you help me?
    https://forum.howtoforge.com/threads/observations-or-bugs-with-ispconfig-3-3-beta-1.94101/
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I have not seen this error on any system yet. However, perhaps the other user who experienced the issue can provide insight into what they did to resolve it.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Additionally, which version of ISPConfig do you use?
     
  4. SpeedyB

    SpeedyB Member HowtoForge Supporter

    I asked him a while back, but no answer. it started with the latest update... it is a system which has had a lot of updates over the years.
     
  5. SpeedyB

    SpeedyB Member HowtoForge Supporter

    ISPConfig Version: 3.3.0p2
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I suppose that the regular jailkit update job gets an empty path for two jails on your system, which results in the error message. Because basicshell is not a path, its a section. So instead of something like:

    jk_init -v -j /var/www/clients/client0/web1 basicshell

    the path is empty, which results in:

    jk_init -v -j basicshell

    and this triggers the error message. So, somehow, there might be two websites in the web_domain table (websites are the type vhost) that have no path.
     
  7. SpeedyB

    SpeedyB Member HowtoForge Supporter

    is there a way to find which sites that are?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    You can check the web_domain table if you have records of type vhost in there without a path. Other records, like subdomains etx, have no path; that's fine, this is only about type vhost records.
     
  9. SpeedyB

    SpeedyB Member HowtoForge Supporter

    you mean the "document_root"? there are no empty ones. no other fields with paths filled in.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, I mean the document root. Then I'll have to check the code to see what might cause an empty path.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    It might be worth trying to enable debug log mode under System > Server config, maybe this gives us some insights into which site is affected when the issue occurs next time.
     
    ahrasis likes this.
  12. SpeedyB

    SpeedyB Member HowtoForge Supporter

    Sorry, been a while, I didn't learn much from the logging the website as it was missing a line:
    [​IMG]
    in the ispconfig/cron.log I found the following:
    [​IMG]
    So I found the paths and chown root:root them. But it would be helpful to see that second ERROR line also in the ERROR log.

    is there an easy way to check all the jailkit folders for this kind of issue?
     
  13. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I faced that too but not really sure how I overcome it, perhaps by deleting all ftp and ssh users and create new thereafter.
     
  14. SpeedyB

    SpeedyB Member HowtoForge Supporter

    They are all deleted. The folders stayed behind and the error remained :(
     
  15. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Perhaps resync when that are all done. Also try checking the ownership and permission of each web site folder's whether they are all right especially if you moved to new servers because I did move from bare to virtual machine and ftp access doesn't show a thing for me so I suspected that in mine and fixed that too. That may not be the same with yours but checking doesn't hurt.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    Jails are for SSH users and Cronjobs, they are not for FTP users. So please do not delete FTP users. Also, I won't recommend deleting any users, instead, I recommend you check the folder permissions. Maybe even create a shell script if you have many.
     
    ahrasis likes this.
  17. SpeedyB

    SpeedyB Member HowtoForge Supporter

    In troubleshooting we deleted all that were not necessary, and even receated with different names. Problem stayed since the folder is not removed and created new.
    I was thinking about creating a script. But was wondering if this should be in ispconfig by displaying that extra error line which was nog in the monitor log, and maybe even as a visual when opening a shell user that something is not correct.
     
  18. SpeedyB

    SpeedyB Member HowtoForge Supporter

    The errors keep coming :( I’ll fix them one by one :)

    [​IMG]
     
  19. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Agreed that it may not be FTP users at all, and SSH users are more like it.

    Seems like /var/www/clients/client*/web*/usr is not owned properly and a simple chown command can fix them all.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Even deleting SSH users might not help, since the jail stays in place after the user is deleted. The jail is on the website, not the user level. It's best to fix the permissions of the folders.
     
    ahrasis likes this.

Share This Page