jhuckaby / Cronicle

A simple, distributed task scheduler and runner with a web based UI.
http://cronicle.net
Other
3.93k stars 391 forks source link

Cronicle upgrade doesn't work with a custom installation path #778

Open 1992kk opened 5 months ago

1992kk commented 5 months ago

Summary

Cronicle upgrade doesn't work with a custom installation path. We've installed cronicle at a custom path "/path/cronicle". However, when /path/cronicle/bin/control.sh upgrade is executed, it initiates a fresh install in /opt/cronicle directory.

Steps to reproduce the problem

Your Setup

Operating system and version?

Rocky linux 8.7

Node.js version?

v16.20.2

Cronicle software version?

0.9.45

Are you using a multi-server setup, or just a single server?

1 Master and 3 workers

Are you using the filesystem as back-end storage, or S3/Couchbase?

Filesystem

Can you reproduce the crash consistently?

Yes

Log Excerpts

jhuckaby commented 5 months ago

Yeah, Cronicle really wants to live in /opt/cronicle. There are a bunch of things that expect that base path, particularly the control.sh script and all the CLI commands.

I'm really sorry you ran into this. I'll add a louder mention of this in the docs.