When the server is started using the home directory which is an indirect symlink to another location, then the app is unable to properly resolve paths to files under uploads and jobs directories. In particular, the _job_resource method returns a PosixPath object under the parameters because convert_path does not recognise the real file path as being under the jobs/uploads directory. This results in the ValueError raised when the path is converted to JSON.
running slivka start -h '/home/slivka/slivka-project' server causes issues with path resolution. However, running it from /home/slivka/slivka-project without specifying --home directory explicitly does not. Running slivka start -h $(readlink -f '/home/slivka/slivka-project') server works well too.
When the server is started using the home directory which is an indirect symlink to another location, then the app is unable to properly resolve paths to files under uploads and jobs directories. In particular, the _job_resource method returns a PosixPath object under the parameters because convert_path does not recognise the real file path as being under the jobs/uploads directory. This results in the ValueError raised when the path is converted to JSON.
e.g. given the directory structure
running
slivka start -h '/home/slivka/slivka-project' server
causes issues with path resolution. However, running it from /home/slivka/slivka-project without specifying --home directory explicitly does not. Runningslivka start -h $(readlink -f '/home/slivka/slivka-project') server
works well too.