Activated the AI stuff, now I get an Internal Server error

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (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 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:

(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. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):

    • 30.0.0.5
  • Operating system and version (e.g., Ubuntu 24.04):

    • Ubuntu Server 24-04
  • Web server and version (e.g, Apache 2.4.25):

    • What ever 30.0.0.5 uses
  • Reverse proxy and version _(e.g. nginx 1.27.2)

    • Nginx Proxy Manager
  • PHP version (e.g, 8.3):

    • What ever 30.0.0.5 comes with
  • Is this the first time you’ve seen this error? (Yes / No):

    • YES
  • When did this problem seem to first start?

    • After configuering the AI Assistant (https://docs.nextcloud.com/server/latest/admin_manual/ai/app_assistant.html)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)

    • docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)

    • No

Summary of the issue you are facing:

[…]

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

Activate the AI configuration from this side: Nextcloud Assistant — Nextcloud latest Administration Manual latest documentation
After that I get the Internal Error saying it cannot open the Photos folder.

Log entries

I added that last 20 rows of the Nextcloud log here:

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.

Uncaught ReferenceError: t is not defined
    <anonymous> vue-dashboard.js:1
    <anonymous> recommendations-dashboard.js:1
    <anonymous> recommendations-dashboard.js:1
vue-dashboard.js:1:18645
Uncaught ReferenceError: OCA is not defined
    <anonymous> https://cloud.domain.net/apps/tasks/js/tasks-dashboard.mjs?v=486674a2-0:2
tasks-dashboard.mjs:2:9781
Uncaught ReferenceError: OCA is not defined
    <anonymous> dashboard.js:29
dashboard.js:29:1
    <anonym> dashboard.js:29
[FATAL] photos: Unexpected Error "Invalid response: 405 " 
Object { app: "photos", level: 2, error: Error }
ConsoleLogger.js:78:18
    value ConsoleLogger.js:78
    value ConsoleLogger.js:105
    El userConfig.js:33
Uncaught (in promise) Error: Couldn't fetch photos upload folder
    El userConfig.js:38

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!):

occ config:list system
{
    "system": {
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.domain.net"
        ],
        "logtimezone": "Europe\/Stockholm",
        "default_phone_region": "SE",
        "dbtype": "mysql",
        "version": "30.0.5.1",
        "overwrite.cli.url": "http:\/\/cloud.domain.net",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "maintenance": false,
        "maintenance_window_start": 2,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_smtpport": "8465 ",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl"
    }
}

Apps

The output of occ app:list (if possible).
occ app:list
Enabled:

  • activity: 3.0.0
  • app_api: 4.0.5
  • assistant: 2.3.0
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.9
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.3
  • contactsinteraction: 1.11.0
  • cookbook: 0.11.2
  • dashboard: 7.10.0
  • dav: 1.31.1
  • deck: 1.14.3
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadactivity: 1.17.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • forms: 4.3.5
  • groupfolders: 18.0.9
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 4.1.2
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recognize: 8.2.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • richdocuments: 8.5.3
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • spreed: 20.1.3
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • tables: 0.8.3
  • tasks: 0.16.1
  • text: 4.1.0
  • text2image_stablediffusion: 2.0.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • whiteboard: 1.0.5
  • workflowengine: 2.12.0

So I got the error that it cannot reach the Photos folder. I thougth it was an permissions error.
Checking it my users Photos folder had the persmissions:
rwx r-x r-x
the admin user Photos folder had
rwx r-s r-x

It is a sublte difference. I changed mine to g+s, now I get to the login screen but as soon as I login I get to that Internal Error again.

Also that remote adress is not correct… 10.0.1.1 is not an adress that I use.
I use a similar one 10.1.1.1/24. Is that an internal address used by Nextcloud? because searching for it inside the nextcloud settings files, it is found MANY times.

Also I am able to login with for example Talk without any issues. Sync is working. And all others. It is only login in to the web gui that is not working.

This line has the error, still this strange remote IP.

{"reqId":"lmvKF6WI1d0zlqQ2Ouba","level":2,"time":"2025-01-27T08:08:02+01:00","remoteAddr":"10.0.1.1","user":"--","app":"core","method":"GET","url":"/ocs/v2.php/cloud/capabilities","message":"Login failed: 'mattias' (Remote IP: '10.0.1.1')","userAgent":"Mozilla/5.0 (Windows) Nextcloud-Talk v1.0.1","version":"30.0.5.1","data":{"app":"core"}}

at the moment it’s hard to get traction… the one log line you shared in the second post shows "userAgent": "Mozilla/5.0 (Windows) Nextcloud-Talk v1.0.1", which is not wrong in my eyes. If you are using Docker or some other virtualization solution likely there is some networking voodoo involved and this is where strange Ips come from… IMHO AI stuff is setup using Docker by default. btw did you only install Assistant as mentioned in article you shared? IMO it doesn’t work “alone” and requires some of the backend services running

the URL seems wrong no log there…

Depending to your primary goal I would disable/remove the assistant first using occ to bring the server back to service and review requirements for AI stuff before heading further.

You are correct, the URL isn’t working, at all.

I did remove the things I installed. Not the assistant, that was installed before I added anything else.

The IP doesn’t look anything like a Docker network IP. They usually start at 172.*

Thank you now I can login in again. :slight_smile:

Is occ app:disable assistant - enough or should I remove it entirely?

I think you added it for a reason and if you plan another try there is no point of removing. if you are done so far you definitely can uninstall assistant and install later if required.

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