Skip to content
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

500 Error After Clicking A Repo Link #16725

Closed
5 tasks
vw98075 opened this issue Aug 19, 2021 · 9 comments
Closed
5 tasks

500 Error After Clicking A Repo Link #16725

vw98075 opened this issue Aug 19, 2021 · 9 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@vw98075
Copy link

vw98075 commented Aug 19, 2021

  • Gitea version (or commit ref):1.15.0+rc3-10-g25437672b
  • Git version:Go1.16.5
  • Operating system:MacOS
  • Database (use [x]):
    • [ x] PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:
2021/08/18 17:24:12 Completed GET /user/events 200 OK in 3.363537959s
2021/08/18 17:24:12 Started GET /tk-shoreline/java-code-templete for [::1]:50329
2021/08/18 17:24:12 ...ules/context/repo.go:531:RepoAssignment() [E] RepoAssignment Invalid repo /Users/vewu/Documents/workspace/gitea-1.15/gitea/data/gitea-repositories/tk-shoreline/java-code-templete.git: no such file or directory
2021/08/18 17:24:12 Completed GET /tk-shoreline/java-code-templete 500 Internal Server Error in 8.093535ms
2021/08/18 17:24:12 Started GET /avatar/d6022cd695c8f486ea116a9cd2d17727?size=96 for [::1]:50329
2021/08/18 17:24:12 Completed GET /avatar/d6022cd695c8f486ea116a9cd2d17727?size=96 302 Found in 1.544404ms

Description

Clicking any repo on Gitea will lead to the 500 error.

This installation is with an existing PostgreSQL DB. I don't know whether that is the cause or not.

Screenshots

Screen Shot 2021-08-18 at 4 23 21 PM

@techknowlogick
Copy link
Member

The error you are getting is 2021/08/18 17:24:12 ...ules/context/repo.go:531:RepoAssignment() [E] RepoAssignment Invalid repo /Users/vewu/Documents/workspace/gitea-1.15/gitea/data/gitea-repositories/tk-shoreline/java-code-templete.git: no such file or directory are you able to confirm that directory indeed does exist?

@vw98075
Copy link
Author

vw98075 commented Aug 19, 2021

I posted the ticket right before I was off. I didn't look error messages in details. I certainly didn't expect that the running time data is stored in a local file system. I don't know how Gitea would run in the cloud if docker containers keep swapping unless using docker volume.

@noerw noerw added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Aug 23, 2021
@tacerus
Copy link

tacerus commented Aug 28, 2021

After upgrading to v1.15, I have this after clicking any repository, organization or issue link. No error messages can be observed.

@lunny
Copy link
Member

lunny commented Aug 28, 2021

@tacerus 500 or 404 returend?

@zeripath
Copy link
Contributor

After upgrading to v1.15, I have this after clicking any repository link. No error messages can be observed.

From which version did you upgrade?

Is your [repository] ROOT correct?

It would be helpful to see some logs.

@tacerus
Copy link

tacerus commented Aug 28, 2021

@lunny 500

@zeripath Yes, it is correct.
I now downgraded back to 1.14.6 (with a manual database rollback), which sorted the issue for now - unfortunately I forgot to save the trace logs beforehand.
I will try to attempt another upgrade next week and will take care of providing logs then.

Thanks for the quick response!

@tacerus
Copy link

tacerus commented Aug 28, 2021

I was able to try it again sooner.

Here's the log (level: trace), started just before attempting to open one of the pages (in this case an organization) causing a 500:

https://pasta.lysergic.dev/?6c1b79c0de06b567#7cqeueQrpzupubyJk6nbz5UiAwj4bN1nq7yAHH4Mdx1C

If there's anything I can try, I am happy to do so.

@zeripath
Copy link
Contributor

@tacerus

...rs/web/repo/issue.go:1143:ViewIssue() [E] RenderString: RenderContext did not provide context

This is a duplicate of #16835 and will be fixed by #16842

@tacerus
Copy link

tacerus commented Aug 28, 2021

Thank you!

@lunny lunny closed this as completed Aug 29, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

No branches or pull requests

6 participants