-
Notifications
You must be signed in to change notification settings - Fork 504
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 image] Can't compile apk: /bin/tar ... "Cannot utime: Operation not permitted" #902
Comments
Just to add some test:
Then I use
The error appair exactly the same so I did
But error still appear... Hope someone help me, may I done something wrong ? |
Yes I had permission issues with Docker/buildozer in the past, but not like that. It's usually tricky, but if we find out we should add to troubleshooting guide.
|
I can't do that from the host cause host is... Windows ^^' So I actually did what seem to be the equivalent:
Of curse myapp is the folder where all my kivy app is (including buildozer.spec) and romai is my current user But it still crash for same problem Any idea ? |
Oh yes true story.
OK then it would be great to really isolate the problem in a super simple reproduction. The best would be to narrow the reproduction down to a single command. For instance you find out that just running a chmod, touch or whatever command from the container produces this error. Then if you have it share it on this ticket that would help |
Hi,
So I can create and edit file, but tar still fail As a temporary solution, I'll try to use Buildozer image as an "under os", so I'll make a persistent container and move the .buildozer folder in a non shared volume to see if it work, if it did then it will do the job for me, but if a better solution is found I'll take it ^^ Not closing the issue now, I'll put my feedback of my test after that so if somebody else meet the problem he can do the same Thank's |
Well, so I finally build my app, here the step I used: First, create buildozer container to use it as a "subsystem" (not as a service so I think subsytem is a better call):
Then leave it, to go inside the container:
When I first try to compile I got a permission denied on .buildozer folder so I did
Note I don't use '-R' arguments cause it's only a current dir permission problem Then to compile:
I then do that to put the apk in my build folder of my shared volumes
So the final architecture of the foler is so (in the container): It actually work, it may not be the best solution, but it work. Thank's ! |
Thanks for sharing it! |
Versions
Description
I actually try to compile my app, I can assume my code is correct as I can compile it on a fresh linux install (Ubuntu) where I install manually Buildozer.
My main computer is under Windows 10, with Docker for Windows
So I simply build the image, then I go in terminal to access biuldozer container with a terminal:
docker run --interactive --tty --rm --volume ${pwd}.buildozer:/home/user/.buildozer --volume ${pwd}:/home/user/hostcwd --entrypoint /bin/bash kivy/buildozer
Then in my container's terminal I do this command (in /home/user/hostcwd):
buildozer android deploy run
Everything run except at the end, command tar fail because of error "Cannot utime: Operation not permitted"
buildozer.spec
Command:
Spec file:
Logs
I already try: "chown $USER -R /home/user/hostcwd/"
Any ideas ?
Thank's !
The text was updated successfully, but these errors were encountered: