-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Upgrade to Gitea 1.15.0 - service doesn't start properly - StaticUrlPrefix #16779
Comments
Is that all the logs you have? You seem to have given us only part of the logs, for example I'm not seeing a [F], evidence of a restart or the attempt to bind to the port. Some pointers though:
means that the DB has successfully migrated and initialised - so this isn't likely to be a DB problem. (I will never say never with MySQL though.)
It's often helpful to do both discord and here - but discord is often quicker to sort things out. |
I've attached the app.ini file and the logs after a restart. We changed the log level to 'debug'. |
Can you check your journald? We're still missing the reason why the program is repeatedly dying just after logging this:
My suspicion is that something will be being written to stdout there. Something somewhere is causing an unguarded panic in a goroutine or calling an unguarded os.Exit(...). (This is why the debugging logging advice says to use console output not file - so we get all of this information.) However I do see:
This should usually be utf8mb4 on MySQL. It's not the cause of this problem - but you're going to face issues with emoji and then needing to use gitea convert in future. |
I have a feeling that this is going to be a custom template issue similar to #16784. |
We tried starting it without the "custom" folder and gitea seems to work. I was worried i did the "public" to "assets" change wrong. |
Journalctl will tell you what the problem is. There is a panic in template compilation which will be being emitted on stdout. A pr to ensure that this goes to the logs in the future has just been merged. The panic will most likely be related to the use of staticurlprefix which should be changed to asseturlprefix as per our published breaking changes. Look at your templates and journalctl. |
agh just realised I closed this by mistake. @shezay could you confirm that my comment above is correct? |
There was a panic regarding the templates. I don't remember what it was now, the logs about that got lost in the terminal and have been trying to change the templates to see if they'll work. And we made them work for the most part. Also, I had changed staticurlprefix to asseturlprefix, however it doesn't seem to be able to find the images on the assets folder (getting 404 errors). Other than that, gitea 1.15.0 seems to be working okay! It just can't find the assets folder or i have set up something incorrectly. Thank you so much for time! |
Ah I've just realised what you mean here. You don't need to change the filesystem! move the |
omg that was it haha i was just thinking too "what if i rename it to |
Sorry that you had such a difficult time getting this upgrade working. Following #16788 the panic will now go to the logs properly - which should help prevent future issues. This has been backported to the 1.15 branch and will be in 1.15.1. |
No problem! It was honestly just me misunderstanding something. |
Definitely template-related. Fixed by changing |
[x]
):Description
We upgraded gitea from 1.14.6 to 1.15.0 and the service doesn't appear to start. It does write logs continously, though.
go version is 1.16.7, same as when we run gitea 1.14.6 (Set minimum supported version of go to 1.16 (#16710))
And we've changed the assets path (Move (custom) assets into subpath /assets (#15219))
We also renamed StaticUrlPrefix to AssetUrlPrefix (#15779) on the custom files.
The logs are on 'Trace' mode and were showing up over and over. I only noticed some warnings:
We reverted to the 1.14.6 version. But we're unsure of what we missed.
Thank you for your time.
And for future reference, should i ask this sort of thing on the discord?
The text was updated successfully, but these errors were encountered: