You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Home paths provided in the -h parameter or SLIVKA_HOME were used
as is without resolving symlinks. On the other hand, os.getcwd
and paths to input and output files were formed with os.realpath
which resolved all symlinks.
It was actually a problem with an api code converting paths to
ids in a hacky way, but changing all paths to real paths works too.
Fix#129
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.The text was updated successfully, but these errors were encountered: