Closed 3urobeat closed 11 months ago
Found a workaround for now - simply define a WorkingDirectory should you also use a systemd service file.
The file from above should look like this:
[Unit]
Description=Comment Bot
After=network.target
[Service]
WorkingDirectory=/home/comms/commentbot
ExecStart=/usr/bin/node start.js
Restart=on-success
RestartSec=5s
[Install]
WantedBy=multi-user.target
If you were trying to start directly from a terminal using an absolute path, please make sure you cd
into the bot's folder first and then use a relative path like node ./start.js
.
Version 2.14.1
is out on the master branch which fixes this issue.
Discussed in https://github.com/3urobeat/steam-comment-service-bot/discussions/216
After further investigation it seems like the data integrity check uses relative paths from the current location of the terminal; which is of course incorrect when using an absolute path.