Error on log

Discussion in 'ISPConfig 3 Priority Support' started by kaostc, May 14, 2025.

  1. kaostc

    kaostc Member HowtoForge Supporter

    Recently, maybe from last ispconfig update, I get this error on my master server on a master-slaves installation:

    Error executing jk_init command: ERROR: jail directory coreutils 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

    The error is thrown every day at the same time (0:10 or 0:11)

    Any idea what could be happening?

    Thanks a lot.
     
  2. pyte

    pyte Well-Known Member HowtoForge Supporter

    Well the jk_init command is being run and it seems like it does not accept "coreutils" as a target direcotry because it is not a safe path.
    This can happen because "coreutils" is not an absolute path or because the permission are not correct.

    Did you setup Jailkit recently? Or changed anything regarding the Jailkit configuration in ISPConfig?
     
    till likes this.
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I wonder if the path argument is maybe empty, so it treats coreutils as a path. As you see it once every night, it's probably the automatic jail update cronjob.
     
  4. kaostc

    kaostc Member HowtoForge Supporter

    I am completely lost. I am not conscious of having changed anything related to jailkit. The jailkit configuration form master (the affected) server is the same than in slave ones (I attach a screenshot).

    Hope this provides any clue.
     

    Attached Files:

  5. kaostc

    kaostc Member HowtoForge Supporter

    Any more help on this?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    I guess you can ignore that for noe. For whatever reason, there seems to be a jail in your database without a directory.
     
  7. kaostc

    kaostc Member HowtoForge Supporter

    I don't have many ssh users, I think I can find the problem and fix. Cause it is related with a jailed ssh user, isn't it? And also I know that the user is in this very server.
    Thanks.
     
  8. kaostc

    kaostc Member HowtoForge Supporter

    Knowing that it is related with an user and not with server configuration, I have found and deleted one user suspicious to be the reason of the error, since belongs to a site whose name has been changed. Maybe the jail has not been moved correctly or something so. Tomorrow I will check if the error was thrown or not this night.
    Thanks.
     
    till likes this.
  9. kaostc

    kaostc Member HowtoForge Supporter

    That not solved anything. But I have checked permisions for websites with jailkit ssh users, and found one that had user and group owners set to website and client instead of root:root. Fixed, let's see this night.
     

Share This Page