-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with docker scripts #213
Comments
@blattms Did you try with |
The docker-container just mounts the |
Yes: (venv) mblatt@frau-mahlzahn:~/opm-reference-manual$ lodocker-open-file-and-update main.fodt
INFO:werkzeug:172.17.0.1 - - [18/Mar/2024 09:55:27] "POST /open-document-and-update HTTP/1.1" 404 -
Failed to open document main.fodt. Status code: 404
(venv) mblatt@frau-mahlzahn:~/opm-reference-manual$ cd parts/
(venv) mblatt@frau-mahlzahn:~/opm-reference-manual/parts$ lodocker-open-file-and-update main.fodt
INFO:werkzeug:172.17.0.1 - - [18/Mar/2024 09:55:38] "POST /open-document-and-update HTTP/1.1" 404 -
Failed to open document main.fodt. Status code: 404
(venv) mblatt@frau-mahlzahn:~/opm-reference-manual/parts$ |
|
@blattms Did you run |
Note that last time we tried |
It is running. The above message is from the server. I can use the browser to got to the page and get a 404 error. The error for a non-running server is different (e.g. can’t establish a connection to the server at localhost:8081.) |
maybe I need to recreate the docker image because something changed? |
@blattms Yes, right. If the Dockerfile has changed or maybe also if the scripts used by it has changed since you last built the image? |
Nope. I think it is related to the venv location (mine is normal subdirectory
Somehow it thinks that files are below venv/lib/- |
@blattms Can you also share the error message you get from running that command? |
There is no error message. There is an empty directory parts there. I can fix this easily via removing the directory and putting a symbolic link there to the correct directory:
|
Maybe, this bogus directory was created when I ran |
I removed venv and recreated it again. Problem persists. |
The last message is probably the root of the problem when using a venv:
It thinks the root directory of the git repository is .venv/lib |
This is the problem might be run_container.py#L17
I think we should check whether there is .git and otherwise use |
I am not sure what exactly is happening, but I cannot open the files using the docker scripts. It seems like they are not available there.
I I start the container and try to open main.fodt I get:
Before that I tried to do this with the script
lodocker-run-container parts/main.fodt
but the file is not found by libreoffice.The text was updated successfully, but these errors were encountered: