alseambusher / crontab-ui

Easy and safe way to manage your crontab file
https://lifepluslinux.blogspot.com/2015/06/crontab-ui-easy-and-safe-way-to-manage.html
MIT License
2.91k stars 480 forks source link

logs folder is not created #226

Closed mycrono closed 10 months ago

mycrono commented 1 year ago

Hello,

Thank you for creating this useful app!

I am running crontab-ui on linux Mint with Mate.

Steps:

Error from running the generated cron job in terminal:

bash: /home/me/crontab-ui/logs/AFVVL1WuGlk8wrQ1.log: No such file or directory
bash: /home/me/crontab-ui/logs/AFVVL1WuGlk8wrQ1.log: No such file or directory
bash: /home/me/crontab-ui/logs/AFVVL1WuGlk8wrQ1.stdout.log: No such file or directory
bash: /home/me/crontab-ui/logs/AFVVL1WuGlk8wrQ1.stdout.log: No such file or directory

How I installed and ran crontab-ui:

  # Install Crontab UI
  npm install -g crontab-ui
  # Make a local database directory
  mkdir $HOME/crontab-ui
  # Start crontab-ui on port 9000
  CRON_DB_PATH=$HOME/crontab-ui PORT=9000 crontab-ui
alseambusher commented 1 year ago

Can you create the logs folder /home/me/crontab-ui/logs ?

mycrono commented 1 year ago

Thanks for your answer.

Yes, after creating the /home/me/crontab-ui/logs folder using mkdir with the same terminal/permissions as when installing crontab-ui the error disappeared and the logs where written to /home/me/crontab-ui/logs.

Also before creating the logs folder manually I went through the terminal output of the running crontab-ui server and found no errror message that the logs folder could not be created.

Since this is probably a rare case it might be enough to throw an error message when you open the logs in crontab-ui and the logs folder does not exist saying that the user should create it manually?

stale[bot] commented 12 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.