# Internal Server Error On Login -LC

**URL:** <https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580>\
**Category:** ℹ️ Support\
**Tags:** docker, linuxserverio, teamfolders-app, cloudflare, onlyoffice, nc31, collectives-app\
**Created:** [March 19, 2025, 8:06pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580 "2025-03-19T20:06:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![XCoolBeatX](https://help.nextcloud.com/user_avatar/help.nextcloud.com/xcoolbeatx/32/70272_2.png) [@XCoolBeatX](https://help.nextcloud.com/u/XCoolBeatX)\
**Post date:** [March 19, 2025, 8:06pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/1 "2025-03-19T20:06:44Z")

</div>

> **Support intro**
>
> ## Sorry to hear you’re facing problems. 🙁
> 
> _The community help forum ([help.nextcloud.com](http://help.nextcloud.com)) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are **volunteering their time to help you.** _
> 
> **If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where Nextcloud engineers can help ensure your business keeps running smoothly.**
> 
> ## Getting help
> 
> In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
> 
> **Before clicking submit** : Please check if your query is already addressed via the following resources:
> 
> - [Official documentation](https://docs.nextcloud.com) (searchable and regularly updated)
> - [How to topics and FAQs](https://help.nextcloud.com/c/how-to-faqs/9)
> - [Forum search](https://help.nextcloud.com/search)
> 
> (Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ❤

## The Basics

- Nextcloud Server version _(e.g., 29.x.x)_:
  - `31.0.2`

- Operating system and version _(e.g., Ubuntu 24.04)_:
  - `Unraid 7.0`

- Web server and version _(e.g, Apache 2.4.25)_:
  - `replace me`

- Reverse proxy and version \_(e.g. nginx 1.27.2)
  - `replace me`

- PHP version _(e.g, 8.3)_:
  - `replace me`

- Is this the first time you’ve seen this error? (Yes / No):
  - `Yes`

- When did this problem seem to first start?
  - `After I updated the docker container`

- Installation method _(e.g. AlO, NCP, Bare Metal/Archive, etc.)_
  - `I used the linuxserver.io docker image - https://github.com/linuxserver/docker-nextcloud/pkgs/container/nextcloud`

- Are you using CloudfIare, mod\_security, or similar? _(Yes / No)_
  - `Yes using cloudflare reverse proxy. However even local access is blocked`

### Summary of the issue you are facing:

When I try to login, I get an “Internal Server Error”

### Steps to replicate it (hint: details matter!):

1. Login with normal credentials
2. Login is successful and then the error
3. Refreshing doesn’t resolve the issue

### Log entries

#### Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the _Copy raw_ option from _Administration settings-\>Logging_ screen or from your `nextcloud.log` located in your data directory). Feel free to use a pastebin/gist service if necessary.

```auto
https://drive.google.com/file/d/1U6tRJU1rpNQY5jBgkWnUWeJUA7f8TyHS/view?usp=sharing

```

#### Web Browser

If the problem is related to the Web interface, open your browser inspector _Console_ and _Network_ tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

```auto
PASTE

```

#### Web server / Reverse Proxy

The output of your Apache/nginx/system log in `/var/log/ ____ `:

```auto
PASTE HERE

```

### Configuration

#### Nextcloud

The output of `occ config:list system` or similar is best, but, if not possible, the contents of your `config.php` file from `/path/to/nextcloud` is fine (make sure to remove any identifiable information!):

```auto
{
    "system": {
        "datadirectory": " ***REMOVED SENSITIVE VALUE***",
        "instanceid": " ***REMOVED SENSITIVE VALUE***",
        "passwordsalt": " ***REMOVED SENSITIVE VALUE***",
        "secret": " ***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.50.100:444",
            "cloud.lcserver.xyz"
        ],
        "dbtype": "mysql",
        "version": "31.0.1.2",
        "overwrite.cli.url": "https:\/\/192.168.50.100:444",
        "dbname": " ***REMOVED SENSITIVE VALUE***",
        "dbhost": " ***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": " ***REMOVED SENSITIVE VALUE***",
        "dbpassword": " ***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "overwriteprotocol": "https",
        "default_phone_region": "MT",
        "enable_previews": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "trusted_proxies": " ***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": " ***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_from_address": " ***REMOVED SENSITIVE VALUE***",
        "mail_domain": " ***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": " ***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": " ***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 0,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "defaultapp": "",
        "app_install_overwrite": [
            "secrets",
            "side_menu",
            "checksum",
            "files_archive",
            "carnet"
        ],
        "maintenance_window_start": 1,
        "has_rebuilt_cache": true
    }
}

```

#### Apps

Enabled:

- activity: 4.0.0
- admin\_audit: 1.21.0
- app\_api: 5.0.2
- assistant: 2.4.0
- audioplayer: 3.4.1
- bruteforcesettings: 4.0.0
- calendar: 5.2.0
- carnet: 0.25.6
- checksum: 1.2.6
- circles: 31.0.0
- cloud\_federation\_api: 1.14.0
- collectives: 2.16.1
- comments: 1.21.0
- contacts: 7.0.4
- contactsinteraction: 1.12.0
- context\_chat: 4.1.0
- dashboard: 7.11.0
- dav: 1.33.0
- deck: 1.15.0
- epubviewer: 1.7.3
- event\_update\_notification: 2.6.1
- external: 6.0.2
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files\_3dmodelviewer: 0.0.15
- files\_accesscontrol: 2.0.0
- files\_antivirus: 6.0.0
- files\_archive: 1.2.3
- files\_automatedtagging: 2.0.0
- files\_downloadlimit: 4.0.0
- files\_external: 1.23.0
- files\_lock: 31.0.1
- files\_pdfviewer: 4.0.0
- files\_reminders: 1.4.0
- files\_retention: 2.0.0
- files\_sharing: 1.23.1
- files\_trashbin: 1.21.0
- files\_versions: 1.24.0
- files\_zip: 2.1.0
- firstrunwizard: 4.0.0
- forms: 5.0.3
- fulltextsearch: 31.0.0
- group\_default\_quota: 0.1.11
- groupfolders: 19.0.4
- guests: 4.2.0
- impersonate: 2.0.0
- integration\_github: 3.1.1
- integration\_google: 3.2.0
- integration\_mastodon: 3.1.1
- integration\_openstreetmap: 2.0.1
- integration\_paperless: 1.0.6
- integration\_reddit: 2.0.5
- logreader: 4.0.0
- lookup\_server\_connector: 1.19.0
- mail: 4.3.1
- metadata: 0.22.0
- nextcloud\_announcements: 3.0.0
- notes: 4.11.0
- notifications: 4.0.0
- oauth2: 1.19.1
- onlyoffice: 9.7.0
- password\_policy: 3.0.0
- previewgenerator: 5.8.0
- privacy: 3.0.0
- profile: 1.0.0
- provisioning\_api: 1.21.0
- quota\_warning: 1.21.0
- recommendations: 4.0.0
- related\_resources: 2.0.0
- secrets: 2.1.2
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- side\_menu: 4.1.1
- socialsharing\_facebook: 3.3.0
- support: 3.0.0
- survey\_client: 3.0.0
- suspicious\_login: 9.0.1
- systemtags: 1.21.1
- tables: 0.9.0
- tasks: 0.16.1
- text: 5.0.0
- theming: 2.6.1
- twofactor\_backupcodes: 1.20.0
- twofactor\_nextcloud\_notification: 5.0.0
- twofactor\_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- user\_status: 1.11.0
- viewer: 4.0.0
- weather\_status: 1.11.0
- webhook\_listeners: 1.2.0
- welcome: 1.2.1
- whiteboard: 1.0.5
- workflowengine: 2.13.0  
Disabled:
- cadviewer: 10.10.7 (installed 10.10.7)
- cfg\_share\_links: 6.1.1 (installed 6.1.1)
- drawio: 3.0.3 (installed 3.0.3)
- encryption: 2.19.0
- files\_linkeditor: 1.1.21 (installed 1.1.21)
- health: 2.2.2 (installed 2.2.2)
- integration\_homeassistant: 0.0.5 (installed 0.0.5)
- maps: 1.5.0 (installed 1.5.0)
- photos: 4.0.0-dev.1 (installed 2.4.0)
- skyprint: 0.1.6 (installed 0.1.6)
- thesearchpage: 1.2.8 (installed 1.2.8)
- transfer: 0.6.3 (installed 0.6.3)
- twofactor\_admin: 4.7.1 (installed 4.7.1)
- user\_ldap: 1.22.0
- workflow\_kitinerary: 1.6.0 (installed 1.6.0)

### Tips for increasing the likelihood of a response

- Use the `preformatted text` formatting option in the editor for all log entries and configuration output.
- If screenshots are useful, feel free to include them.
  - If possible, also include key error output in text form so it can be searched for.

- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_22734026db12803ebb3e059622ac3534.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [March 19, 2025, 8:59pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/2 "2025-03-19T20:59:22Z")

</div>

> ` "loglevel": 0,`

At the moment your log is too cluttered with debug logs. Please reset this to the default (`2`) then try to log-in. Likely the indication will be an incompatible app or something similar. If so, probably one of these since it looks like you have them force enable so compatible checks are ignored for them:

```auto
        "app_install_overwrite": [
            "secrets",
            "side_menu",
            "checksum",
            "files_archive",
            "carnet"
        ],

```

---

<div class="post-metadata">

**Author:** ![XCoolBeatX](https://help.nextcloud.com/user_avatar/help.nextcloud.com/xcoolbeatx/32/70272_2.png) [@XCoolBeatX](https://help.nextcloud.com/u/XCoolBeatX)\
**Post date:** [March 19, 2025, 10:46pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/3 "2025-03-19T22:46:05Z")

</div>

Hi @jtr,

Thank you for providing me with a start to my investigation.

Since I can’t access the UI, how can I change the log level from the command line?

Furthermore I don’t mind placing these apps back into check compatibility mode. How do I do that via the command line? Or at the very least how do I remove them via the terminal?

---

<div class="post-metadata">

**Author:** ![XCoolBeatX](https://help.nextcloud.com/user_avatar/help.nextcloud.com/xcoolbeatx/32/70272_2.png) [@XCoolBeatX](https://help.nextcloud.com/u/XCoolBeatX)\
**Post date:** [March 19, 2025, 10:54pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/4 "2025-03-19T22:54:04Z")

</div>

Used the command `sudo docker exec -it nextcloud occ app:disable NAME_OF_APP` to disable an app.

It turned out to be the app secrets causing the issues.

@jtr Do you know how I can set back those apps to be tested every version upgrade? I don’t want any app running that is not verified

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_22734026db12803ebb3e059622ac3534.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [March 20, 2025, 1:00pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/5 "2025-03-20T13:00:48Z")

</div>

> [@XCoolBeatX](#):
>
> Since I can’t access the UI, how can I change the log level from the command line?

Refer to the logging documentation: [Logging — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html)

> [@XCoolBeatX](#):
>
> Furthermore I don’t mind placing these apps back into check compatibility mode. How do I do that via the command line? Or at the very least how do I remove them via the terminal?

Drop the `app_install_overwrite` config section in your `config/config.php`.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [June 18, 2025, 1:01pm UTC](https://help.nextcloud.com/t/internal-server-error-on-login-lc/220580/6 "2025-06-18T13:01:13Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
