unable to generate a dump zip file #8516

Closed
opened 2025-11-02 08:09:29 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @phostann on GitHub (Feb 7, 2022).

Gitea Version

1.16.1

Git Version

2.25.1

Operating System

Ubuntu 20.04 LTS

How are you running Gitea?

Running as service with binaries (gitea-1.16.1-linux-amd64).

Database

SQLite

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

2022/02/07 15:38:06 ...dules/setting/log.go:283:newLogService() [I] Gitea v1.16.1 built with GNU Make 4.1, go1.17.6 : bindata, sqlite, sqlite_unlock_notify
2022/02/07 15:38:06 ...dules/setting/log.go:330:newLogService() [I] Gitea Log Mode: Console(Console:)
2022/02/07 15:38:06 ...dules/setting/log.go:246:generateNamedLogger() [I] Router Log: Console(console:)
2022/02/07 15:38:06 ...les/setting/cache.go:78:newCacheService() [I] Cache Service Enabled
2022/02/07 15:38:06 ...les/setting/cache.go:93:newCacheService() [I] Last Commit Cache Service Enabled
2022/02/07 15:38:06 ...s/setting/session.go:75:newSessionService() [I] Session Service Enabled
2022/02/07 15:38:06 ...s/storage/storage.go:171:initAttachments() [I] Initialising Attachment storage with type: 
2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/attachments
2022/02/07 15:38:06 ...s/storage/storage.go:165:initAvatars() [I] Initialising Avatar storage with type: 
2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars
2022/02/07 15:38:06 ...s/storage/storage.go:183:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 
2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars
2022/02/07 15:38:06 ...s/storage/storage.go:177:initLFS() [I] Initialising LFS storage with type: 
2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/lfs
2022/02/07 15:38:06 ...s/storage/storage.go:189:initRepoArchives() [I] Initialising Repository Archive storage with type: 
Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied
2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-archive
2022/02/07 15:38:06 cmd/dump.go:149:fatal() [F] Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied

Description

The dump command cannot generate a dump zip file. There appears to be no permission.

git@VM-4-17-ubuntu:/usr/local/bin$ ./gitea dump -c /etc/gitea/app.ini --work-path /var/lib/gitea/

Screenshots

No response

Originally created by @phostann on GitHub (Feb 7, 2022). ### Gitea Version 1.16.1 ### Git Version 2.25.1 ### Operating System Ubuntu 20.04 LTS ### How are you running Gitea? Running as service with binaries (gitea-1.16.1-linux-amd64). ### Database SQLite ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist ``` 2022/02/07 15:38:06 ...dules/setting/log.go:283:newLogService() [I] Gitea v1.16.1 built with GNU Make 4.1, go1.17.6 : bindata, sqlite, sqlite_unlock_notify 2022/02/07 15:38:06 ...dules/setting/log.go:330:newLogService() [I] Gitea Log Mode: Console(Console:) 2022/02/07 15:38:06 ...dules/setting/log.go:246:generateNamedLogger() [I] Router Log: Console(console:) 2022/02/07 15:38:06 ...les/setting/cache.go:78:newCacheService() [I] Cache Service Enabled 2022/02/07 15:38:06 ...les/setting/cache.go:93:newCacheService() [I] Last Commit Cache Service Enabled 2022/02/07 15:38:06 ...s/setting/session.go:75:newSessionService() [I] Session Service Enabled 2022/02/07 15:38:06 ...s/storage/storage.go:171:initAttachments() [I] Initialising Attachment storage with type: 2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/attachments 2022/02/07 15:38:06 ...s/storage/storage.go:165:initAvatars() [I] Initialising Avatar storage with type: 2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/avatars 2022/02/07 15:38:06 ...s/storage/storage.go:183:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-avatars 2022/02/07 15:38:06 ...s/storage/storage.go:177:initLFS() [I] Initialising LFS storage with type: 2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/lfs 2022/02/07 15:38:06 ...s/storage/storage.go:189:initRepoArchives() [I] Initialising Repository Archive storage with type: Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied 2022/02/07 15:38:06 ...les/storage/local.go:46:NewLocalStorage() [I] Creating new Local Storage at /var/lib/gitea/data/repo-archive 2022/02/07 15:38:06 cmd/dump.go:149:fatal() [F] Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied ``` ### Description The dump command cannot generate a dump zip file. There appears to be no permission. ```shell git@VM-4-17-ubuntu:/usr/local/bin$ ./gitea dump -c /etc/gitea/app.ini --work-path /var/lib/gitea/ ``` ### Screenshots _No response_
Author
Owner

@wxiaoguang commented on GitHub (Feb 7, 2022):

[F] Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied

you need sudo

@wxiaoguang commented on GitHub (Feb 7, 2022): ``` [F] Unable to open gitea-dump-1644219486.zip: open gitea-dump-1644219486.zip: permission denied ``` you need sudo
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8516