Skip to content

Cannot upload / edit files via web interface after upgrading from GOGS 13 to 14.1 #8183

@IJeffray

Description

@IJeffray

Gogs version

14.1

Git version

  • Server: Debian 12 (git 2.39.5)
  • Client: Debian 12 (git 2.39.5)

Operating system

Debian 12

Database

default

Describe the bug

Cannot upload / edit files via GOGS web interface. This happens "95%" of the time - very occasionally, it works, but almost always it fails.

To reproduce

Attempt to upload a file via the GOGS web interface, or edit an existing file (eg editing a README.md) the browser displays the error such as "Failed to update/create file 'ReadMe.md' with error: internal server error"

And the gogs.log file shows [ERROR] [...gs/internal/route/repo/editor.go:511 UploadFilePost()] Failed to upload files: discard local r branch[master] changes: reset [revision: origin/master]: exit status 128 - fatal: option '--end-of-options' must come before non-option arguments

Expected behavior

In versions previous to GOGS 14, uploading files and editing files worked fine.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

💊 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions