# Internal Server Error 500 on Site Administration Page

**URL:** <https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347>\
**Category:** Install/Maintain/Configure\
**Created:** [June 12, 2022, 12:46am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347 "2022-06-12T00:46:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![acr](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@acr](https://forum.gitea.com/u/acr)\
**Post date:** [June 12, 2022, 12:46am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/1 "2022-06-12T00:46:21Z")

</div>

I have been running Gitea on my server with no issues for several months. Recently I logged in and navigated to the Site Administration page, and received a 500 Internal Server Error response. I tried restarting both the Gitea and Apache services with no luck. I do not see any error messages in the logs for either (there are not even log files present in the Gitea logs directory). I have verified that my database service (SQL Server for Linux) is still running. Any ideas?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![dachary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/dachary/32/4990_2.png) [@dachary](https://forum.gitea.com/u/dachary)\
**Post date:** [June 12, 2022, 7:57am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/2 "2022-06-12T07:57:33Z")

</div>

Could you please explain how you are running Gitea? The log files have to be somewhere and it depends on your [installation method](https://docs.gitea.io/en-us/install-with-docker/).

---

<div class="post-metadata">

**Author:** ![acr](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@acr](https://forum.gitea.com/u/acr)\
**Post date:** [June 12, 2022, 3:42pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/3 "2022-06-12T15:42:47Z")

</div>

Certainly. I installed Gitea from binary on a Fedora 34 server. Here is my config file with sensitive information removed:

```auto
APP_NAME = <app-name>
RUN_USER = <app-user>
RUN_MODE = prod

[database]
DB_TYPE = mssql
HOST = <db-host>
NAME = <db-name>
USER = <db-user>
PASSWD = <password>
SCHEMA =
SSL_MODE = disable
CHARSET = utf8
PATH = <db-path>
LOG_SQL = false

[repository]
ROOT = <repo-root>

[server]
PROTOCOL = https
ROOT_URL = <root-url>
HTTP_PORT = 3000
CERT_FILE = <cert-file>
KEY_FILE = <key-file>

LFS_START_SERVER = true
LFS_CONTENT_PATH = <lfs-path>
LFS_JWT_SECRET = <secret>

[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = false
DISABLE_REGISTRATION = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
ENABLE_CAPTCHA = false
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = noreply.localhost

[picture]
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = true

[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true

[session]
PROVIDER = file

[log]
MODE = console
LEVEL = info
ROOT_PATH = /var/lib/gitea/log
ROUTER = console

[security]
INSTALL_LOCK = true

```

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [June 12, 2022, 4:13pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/4 "2022-06-12T16:13:02Z")

</div>

change `RUN_MODE=dev` and then refresh the page, it will display the error detail.

---

<div class="post-metadata">

**Author:** ![acr](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@acr](https://forum.gitea.com/u/acr)\
**Post date:** [June 14, 2022, 7:42pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/5 "2022-06-14T19:42:54Z")

</div>

I did so, and got the following error message:

> An error occurred:
> 
> template: admin/dashboard:8:90: executing “admin/dashboard” at : invalid value; expected string

I found [this page](https://bytemeta.vip/repo/go-gitea/gitea/issues/18795) indicating that this is a bug that was fixed in 1.16.1 (I am currently running 1.16.0). I am going to try updating and see if that fixes the problem.

---

<div class="post-metadata">

**Author:** ![Zamana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zamana/32/2844_2.png) [@Zamana](https://forum.gitea.com/u/Zamana)\
**Post date:** [July 26, 2022, 7:57pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/6 "2022-07-26T19:57:47Z")

</div>

Hi!

Same here, running the latest and greatest version (docker way): 1.17.0+rc2

`template: admin/repo/list:48:25: executing "admin/repo/list" at <.Owner.HomeLink>: error calling HomeLink: runtime error: invalid memory address or nil pointer dereference`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/3/369e1052afdb4356cc3ef88f61db925dd2437644.png)

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 28, 2022, 1:25pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/7 "2022-07-28T13:25:02Z")

</div>

Hi @Zamana, Do you use custom templates at all?

---

<div class="post-metadata">

**Author:** ![Zamana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zamana/32/2844_2.png) [@Zamana](https://forum.gitea.com/u/Zamana)\
**Post date:** [July 28, 2022, 1:59pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/8 "2022-07-28T13:59:50Z")

</div>

Hi!

Templates? No that I’m aware of…

I guess I’m using it plain-vanilla

---

<div class="post-metadata">

**Author:** ![Zamana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zamana/32/2844_2.png) [@Zamana](https://forum.gitea.com/u/Zamana)\
**Post date:** [July 28, 2022, 8:49pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/9 "2022-07-28T20:49:36Z")

</div>

I just found out now that “Explore” gives the same error:

> template: explore/repo\_list:29:19: executing “explore/repo\_list” at \<.Owner.Visibility.IsPrivate\>: nil pointer evaluating \*user.User.Visibility

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/6/661a1b775c112bce12975957d67a17064cd740c0.png)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [July 31, 2022, 4:01pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/10 "2022-07-31T16:01:13Z")

</div>

Please confirm you haven’t a customized template. And since v1.17.0 is out, please upgrade to that version.

---

<div class="post-metadata">

**Author:** ![wangjianweiwei](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/wangjianweiwei/32/3114_2.png) [@wangjianweiwei](https://forum.gitea.com/u/wangjianweiwei)\
**Post date:** [October 21, 2022, 7:17am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/12 "2022-10-21T07:17:55Z")

</div>

My current version is 1.17.3, There are still problems.  
I migrated gitea, and then this problem occurred, and the organization I created disappeared

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/4/435c741eae9f0af175a7e06de74b75f23ce15999.png)

---

<div class="post-metadata">

**Author:** ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)\
**Post date:** [October 25, 2022, 11:05am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/13 "2022-10-25T11:05:04Z")

</div>

I think maybe you have a custom template?

---

<div class="post-metadata">

**Author:** ![Zamana](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/zamana/32/2844_2.png) [@Zamana](https://forum.gitea.com/u/Zamana)\
**Post date:** [December 26, 2022, 11:50pm UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/14 "2022-12-26T23:50:04Z")

</div>

Hi!

Version 1.17.4 and nothing has changed:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/1/1a69d651f3c0e67a4e403d7d98d0beaee39212a7.png)

And before someone ask again: there’s no custom template.

UPDATE (for some reason I’m limited to 3 replies on the same topic. WHY???)

By the way (and I don’t know if this is relevant or no), on my first message (Jul 26) I was running Gitea in a docker.

Now, I’m running Gitea in a jail in FreeBSD.

Regards.

---

<div class="post-metadata">

**Author:** ![delvh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/delvh/32/5047_2.png) [@delvh](https://forum.gitea.com/u/delvh)\
**Post date:** [December 27, 2022, 12:02am UTC](https://forum.gitea.com/t/internal-server-error-500-on-site-administration-page/5347/15 "2022-12-27T00:02:32Z")

</div>

I am absolutely confused by this: How do all of you manage to be logged out while visiting the admin page?  
Because that’s what this error message translates to…  
For the explore page I can at least understand it as you don’t need to be signed in for that, but for the admin page?
