-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Cannot change tmp directory when dumping #1103
Comments
I forgot to attach the full log. As you can see, the dump utility starts using the "./tmp" dir but fails at the end on "/tmp"
|
@lunny I can have a look at this one. |
Try setting the TMPDIR (or equivalent for your dist) enviroment variable to same tmp dir. The use of /tmp actually comes from the cae/zip-library. See https://github.com/Unknwon/cae/blob/master/zip/write.go#L169 @lunny Don't think I should change it the imported library right? |
Setting the TMPDIR works :
Thanks |
@cez81 Yes. Except especially critical situation, we will fire an issue to the original library and wait the upstream library update. |
@lunny As a work-around we could set if os.Getenv("TMPDIR") == "" {
os.Setenv("TMPDIR", tmpDir)
} |
[x]
):Description
I want to dump my Gitea instance using
./gitea dump
Unfortunately my primary partition is nearly full so the dump fails and I need to change the tmp directory that Gitea will use. In order to do so, I issue a :
./gitea dump -t ./tmp
The dump works better until I get :
Fail to save gitea-dump-1488467761.zip: write /tmp/cae/gitea-dump-1488467761.zip/gitea-repo.zip: no space left on device
This means Gitea keeps using the /tmp directory instead of the ./tmp I have created on another partition.
Thanks
The text was updated successfully, but these errors were encountered: