<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to login to my Gitea instance (UI, admin...) - facing 500 error]]></title><description><![CDATA[<p dir="auto">Hey folks<br />
I've checked if the issue arises recently to anyone before publishing this error report but couldn't find any recent related issue.<br />
I'm not able to authenticate nor reset password for my Gitea app and I'm clueless on what to do to fix things.<br />
I've tried resetting the password of my Gitea user using command-line but that's not enough.</p>
<p dir="auto">Context: User/Password seem accepted by Gitea but the 2FA seems broken as I always end up with a 500 error.<br />
Logs only mention : <code>Feb 14 17:46:332024/02/14 16:46:33 ...ters/web/auth/2fa.go:80:TwoFactorPost() [E] UserSignIn: not in LinkAccount session</code></p>
<p dir="auto">I've tried also clearing all cookies, or using Private/Incognito browser mode, but didn't help.<br />
I've tried resetting my password but I never receive any email from Gitea.</p>
<p dir="auto">It seems the error was already mentioned in the past years :</p>
<ul>
<li><a href="https://github.com/go-gitea/gitea/issues/16806" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/go-gitea/gitea/issues/16806</a></li>
</ul>
<p dir="auto">Any clue how to fix this ? Can we disable 2FA ?<br />
I didn't touch the Gitea configuration recently, except changing the username but I could login without issue until recently.<br />
Thanks in advance for any clue.<br />
Recently I had a few automatic reboots of Gitea following out of memory errors.</p>
<p dir="auto">In the past weeks I had encountered the error (500) occasionnaly but I could usually log in again using Incognito mode.</p>
]]></description><link>https://forum.cloudron.io/topic/11109/unable-to-login-to-my-gitea-instance-ui-admin-facing-500-error</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 04:47:05 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/11109.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Feb 2024 08:36:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 14:48:00 GMT]]></title><description><![CDATA[<p dir="auto">With pleasure ! And and in the end I've deleted the new admin account because I'm paranoid <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=223f9defb2f" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<pre><code>root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user list
ID   Username   Email            IsActive IsAdmin 2FA
1    sansguidon morgan@zoemp.be  true     true    false
3    superadmin bonjour@zoemp.be true     true    false
root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user delete
Command error: You must provide the id, username or email of a user to delete
root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user delete --id 3
2024/02/15 14:46:55 ...s/storage/storage.go:176:initAttachments() [I] Initialising Attachment storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/attachments
2024/02/15 14:46:55 ...s/storage/storage.go:166:initAvatars() [I] Initialising Avatar storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/avatars
2024/02/15 14:46:55 ...s/storage/storage.go:192:initRepoAvatars() [I] Initialising Repository Avatar storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/repo-avatars
2024/02/15 14:46:55 ...s/storage/storage.go:198:initRepoArchives() [I] Initialising Repository Archive storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/repo-archive
2024/02/15 14:46:55 ...s/storage/storage.go:208:initPackages() [I] Initialising Packages storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/packages
2024/02/15 14:46:55 ...s/storage/storage.go:219:initActions() [I] Initialising Actions storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/actions_log
2024/02/15 14:46:55 ...s/storage/storage.go:223:initActions() [I] Initialising ActionsArtifacts storage with type: local
2024/02/15 14:46:55 ...les/storage/local.go:33:NewLocalStorage() [I] Creating new Local Storage at /app/data/appdata/actions_artifacts
root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user list
ID   Username   Email           IsActive IsAdmin 2FA
1    sansguidon morgan@zoemp.be true     true    false
</code></pre>
]]></description><link>https://forum.cloudron.io/post/83376</link><guid isPermaLink="true">https://forum.cloudron.io/post/83376</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 15 Feb 2024 14:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 14:47:03 GMT]]></title><description><![CDATA[<p dir="auto">Great, thanks for sharing the solution in such detail also!</p>
]]></description><link>https://forum.cloudron.io/post/83375</link><guid isPermaLink="true">https://forum.cloudron.io/post/83375</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 15 Feb 2024 14:47:03 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 14:45:40 GMT]]></title><description><![CDATA[<p dir="auto">Thanks ! Running this command shows a single account as a result</p>
<pre><code>root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user list
ID   Username   Email           IsActive IsAdmin 2FA
1    sansguidon morgan@zoemp.be true     true    true
</code></pre>
<p dir="auto">What I have done to solve the problem :</p>
<ul>
<li>From the terminal I've created an admin user</li>
</ul>
<pre><code>root@a45580f2-9906-49b6-a090-476ecd0ec3ac:/home/git# sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user create --username redacted --password redacted --admin --email redacted
New user 'superadmin' has been successfully created!
</code></pre>
<ul>
<li>I've logged into Gitea with the newly created admin user with just the username and password provided and have proceeded immediately to change the password as expected.</li>
<li>Via <a href="https://gitea.my.domain/admin/users" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitea.my.domain/admin/users</a> I find a way to edit my other blocked user and update the authentication source to <code>cloudron</code>, reset the 2FA, and link it with the Cloudron account by setting the username so once the account is updated, Gitea shows 2FA is disabled for that account.</li>
<li>When I login either by username/password or via Cloudron it works immediately.</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/83374</link><guid isPermaLink="true">https://forum.cloudron.io/post/83374</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 15 Feb 2024 14:45:40 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 12:51:20 GMT]]></title><description><![CDATA[<p dir="auto">So if you use Cloudron user management, you actually don't need gitea 2fa setup, since the app is integrated with OpenID by now and thus the 2fa setup from Cloudron itself is used.</p>
<p dir="auto">If you run <code>sudo -u git /home/git/gitea/gitea -c /run/gitea/app.ini admin user list</code> in the webterminal, do you see that user with 2FA enabled? Sadly it seems it does not show if a user is local or from an external auth source, also I haven't yet found a cli method to disable 2FA, but maybe if you can login with a local admin user you can remove 2FA for your main user?</p>
<p dir="auto">Regarding the restore, it would restore all data to the state of that backup, note that each backup is associated with an app package version, which will also be restored accordingly. If you want to be very sure first, you could also use the clone from backup feature and perform some testing in a test instance.</p>
]]></description><link>https://forum.cloudron.io/post/83364</link><guid isPermaLink="true">https://forum.cloudron.io/post/83364</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 15 Feb 2024 12:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 12:43:20 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your support and feedback already ! I'm not sure when it started, but I see in my browser history I encountered 2FA errors regularly since I started using Gitea.<br />
I'm using Cloudron based login but I'm unsure if the login/password flow ever worked using a local gitea user.<br />
Do I need to backup my git repos etc if I restore the app to a previous state ? I'm unsure what are the risks associated with this process like losing or breaking things as I never used this functionality in the past.</p>
]]></description><link>https://forum.cloudron.io/post/83363</link><guid isPermaLink="true">https://forum.cloudron.io/post/83363</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Thu, 15 Feb 2024 12:43:20 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to login to my Gitea instance (UI, admin...) - facing 500 error on Thu, 15 Feb 2024 10:24:48 GMT]]></title><description><![CDATA[<p dir="auto">Are you using Cloudron usermanagment or is that user a Gitea local user? Tbh I don't know if changing usernames is working well for the app, most apps can't deal with this easily.<br />
Also do you know with which update this started and can if you restore the app to before that, does it work again?</p>
]]></description><link>https://forum.cloudron.io/post/83347</link><guid isPermaLink="true">https://forum.cloudron.io/post/83347</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 15 Feb 2024 10:24:48 GMT</pubDate></item></channel></rss>