Skip to content
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

Error when uploading a newgrf to bananas-api running in docker #86

Closed
erenes opened this issue Apr 10, 2021 · 0 comments
Closed

Error when uploading a newgrf to bananas-api running in docker #86

erenes opened this issue Apr 10, 2021 · 0 comments

Comments

@erenes
Copy link
Contributor

erenes commented Apr 10, 2021

If you run the bananas-api as suggested in the readme using:

docker run --rm -p 127.0.0.1:8080:80 -p 127.0.0.1:1080:1080 -v "${BANANAS_COMMON}/local_storage:/code/local_storage" -v "${BANANAS_COMMON}/BaNaNaS:/code/BaNaNaS" openttd/bananas-api:local

Upload of a newgrf fails with the following error:

OSError: [Errno 18] Invalid cross-device link

The issue is that the temporary upload path and the local_storage path are not on the same physical device (one is inside the virtual file system of the docker container, while the other is on a volume mounted on the host).

According to the documentation I have found, shutil.move is the correct function to use if you are moving between file systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants