Open hasanbasri1993 opened 3 months ago
You can install and use Cronicle as a user. All commands below must be launch as user:
mkdir ~/cronicle
cd ~/cronicle
wget https://github.com/jhuckaby/Cronicle/archive/refs/tags/v0.9.61.tar.gz
tar xf v0.9.61.tar.gz
cd Cronicle-0.9.61/
mv sample_conf/ conf
Edit the file conf/config.json for your needs.
Then continue commands:
npm install
When here you can start/stop Cronicle using the command:
/bin/sh /home/pi/cronicle/Cronicle-0.9.61/bin/control.sh start
If this command works you can add it into your crontab as @reboot
:
crontab -e
# Add the line:
@reboot /bin/sh /home/pi/cronicle/Cronicle-0.9.61/bin/control.sh start
Summary
i got error when run as root, i need run as user: pi
Steps to reproduce the problem
Your Setup
Operating system and version?
Raspberry OS
Node.js version?
v16.7.0
Cronicle software version?
Version 0.9.59
Are you using a multi-server setup, or just a single server? single server
Are you using the filesystem as back-end storage, or S3/Couchbase? no
Can you reproduce the crash consistently?
When set npm run boot After restart will run service as root
I must stop using sudo Then start in user pi
Log Excerpts