Skip to content

Gitea dump fails due to "Packages isn't enabled" #23709

Closed
@duchenpaul

Description

@duchenpaul

Description

My gitea is running with packages function disabled, in recently upgrade, I found the dump is not working due to below error:

04:34:03  2023-03-26 04:34:03 AM: Dumping gitea...
04:34:04  2023/03/26 04:34:04 ...g/config_provider.go:30:deprecatedSetting() [E] Deprecated fallback `[server]` `LFS_CONTENT_PATH` present. Use `[lfs]` `PATH` instead. This fallback will be/has been removed in v1.19.0
04:34:04  2023/03/26 04:34:04 ...dules/setting/log.go:331:initLogFrom() [I] Gitea Log Mode: Console(Console:info)
04:34:04  2023/03/26 04:34:04 ...dules/setting/log.go:286:generateNamedLogger() [I] Router Log: Console(console:info)
04:34:04  2023/03/26 04:34:04 ...les/setting/cache.go:75:loadCacheFrom() [I] Cache Service Enabled
04:34:04  2023/03/26 04:34:04 ...les/setting/cache.go:90:loadCacheFrom() [I] Last Commit Cache Service Enabled
04:34:04  2023/03/26 04:34:04 ...s/setting/session.go:74:loadSessionFrom() [I] Session Service Enabled
04:34:04  2023/03/26 04:34:04 ...g/config_provider.go:30:deprecatedSetting() [E] Deprecated fallback `[mailer]` `HOST` present. Use `[mailer]` `SMTP_ADDR` instead. This fallback will be/has been removed in v1.19.0
04:34:04  2023/03/26 04:34:04 ...es/setting/mailer.go:202:loadMailerFrom() [W] connecting over insecure SMTP protocol to non-local address is not recommended
04:34:04  2023/03/26 04:34:04 ...es/setting/mailer.go:236:loadMailerFrom() [I] Mail Service Enabled
04:34:04  2023/03/26 04:34:04 ...es/setting/mailer.go:258:loadNotifyMailFrom() [I] Notify Mail Service Enabled
04:34:04  2023/03/26 04:34:04 ...s/storage/storage.go:175:initAttachments() [I] Initialising Attachment storage with type: 
04:34:04  2023/03/26 04:34:04 ...les/storage/local.go:45:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/attachments
04:34:04  2023/03/26 04:34:04 ...s/storage/storage.go:165:initAvatars() [I] Initialising Avatar storage with type: 
04:34:04  2023/03/26 04:34:04 ...les/storage/local.go:45:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/avatars
04:34:04  2023/03/26 04:34:04 ...s/storage/storage.go:191:initRepoAvatars() [I] Initialising Repository Avatar storage with type: 
04:34:04  2023/03/26 04:34:04 ...les/storage/local.go:45:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-avatars
04:34:04  2023/03/26 04:34:04 ...s/storage/storage.go:185:initLFS() [I] Initialising LFS storage with type: 
04:34:04  2023/03/26 04:34:04 ...les/storage/local.go:45:NewLocalStorage() [I] Creating new Local Storage at /data/git/lfs
04:34:04  2023/03/26 04:34:04 ...s/storage/storage.go:197:initRepoArchives() [I] Initialising Repository Archive storage with type: 
04:34:04  2023/03/26 04:34:04 ...les/storage/local.go:45:NewLocalStorage() [I] Creating new Local Storage at /data/gitea/repo-archive
04:34:04  2023/03/26 04:34:04 cmd/dump.go:246:runDump() [I] Dumping local repositories... /data/git/repositories
04:34:08  2023/03/26 04:34:08 cmd/dump.go:285:runDump() [I] Dumping database...
04:34:11  2023/03/26 04:34:11 cmd/dump.go:297:runDump() [I] Adding custom configuration file from /data/gitea/conf/app.ini
04:34:11  2023/03/26 04:34:11 cmd/dump.go:313:runDump() [I] Custom dir /data/gitea is inside data dir /data/gitea, skipped
04:34:11  2023/03/26 04:34:11 cmd/dump.go:325:runDump() [I] Packing data directory.../data/gitea
04:34:12  Failed to dump packages: Packages isn't enabled
04:34:12  2023/03/26 04:34:11 cmd/dump.go:162:fatal() [F] Failed to dump packages: Packages isn't enabled
04:34:12  Failed! Return Status = 1

Here is my dump command:

gitea dump -c /data/gitea/conf/app.ini

Config:

[packages]
ENABLED = false

Gitea Version

1.19.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

In docker

Database

MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions