-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docker : rename(/var/www/html/cache/tmp/Grav-56a5f25571331/getgrav-grav-plugin-relatedpages-97423fe/,/var/www/html/user/plugins/relatedpages): Invalid cross-device link #635
Comments
Looks like a issue specific to Docker, the two paths Please provide as much information as you can to replicate the error. Dockerfile, configuration, etc. |
here is my dockerfile
|
I think the issue is that |
To run this Dockerfile this file https://github.com/benjick/docker/blob/master/grav/docker-entrypoint.sh is also needed to be present in the folder where you run it. Please be as specific as possible in order to be able to recreate issues. I built an image with this Dockerfile and I have no issues with it. Plugins install just fine. Not sure what might be failing there, unless you have more details in your setup we should know. |
Unless your docker-entrypoint.sh is different. In that case paste that too! |
Any more updates on this? If not will close soon... |
Closing for inactivity |
@rhukster its definitely bug...you should use mv() instead of rename() ... rename can be used only with FILES, not DIRS if you copy over devices....the reason why @flaviocopes Dockerfile works, is because he does not create any volume....you can also see explanation here https://bugs.php.net/bug.php?id=54097&edit=1 |
In this case we should change |
Good to know you found the solution for this bug as I meet it since I use volumes too. I have a docker-compose file here if you want to test it : http://code.cerenit.fr/cerenit/docker-grav |
Even without using a Docker setup, it was enough to have the plugins folder symlinked to an external hard drive to replicate the problem. Should now be fixed in |
Reverted and made a PR instead #1214 for more proper testing |
Tested right now by fetching Plugins were correctly upgraded. Thanks ! |
I think the new approach is wrong.
Though as stated in https://bugs.php.net/bug.php?id=54097 I would silence the warnings and do |
Replaced by 6100536 |
when i install a plugin i have this error
bin/gpm install relatedpages
Preparing to install Related Pages [v1.1.1]
|- Downloading package... 100%
|- Checking destination... ok
|- Installing package...
[RuntimeException]
rename(/var/www/html/cache/tmp/Grav-56a5f25571331/getgrav-grav-plugin-relatedpages-97423fe/,/var/www/html/user/plugins/relatedpages): Invalid cross-device link
The text was updated successfully, but these errors were encountered: