weather icon indicating copy to clipboard operation
weather copied to clipboard

Internal Server Error

Open piiskop opened this issue 2 years ago • 4 comments

Steps to reproduce

  1. Click Ilm!
  2. See the error message instead of the forecast!

Expected behaviour

The forecast should be displayed.

Actual behaviour

Internal Server Error The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details Remote Address: 127.0.0.1 Request ID: V6o6IZfUWdJhbXLGTC9R

Server configuration

Operating system: Ubuntu 20.04.6 LTS

Web server: Apache/2.4.41 (Ubuntu)

Database: Ver 15.1 Distrib 10.3.38-MariaDB

PHP version: 8.0.28

Nextcloud version: Nextcloud Hub 4 (26.0.0)

Updated from an older Nextcloud/ownCloud or fresh install: Updated.

Where did you install Nextcloud from: I cannot remember.

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - audioplayer: 3.3.1
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.1
  - cloud_federation_api: 1.9.0
  - comments: 1.16.0
  - contacts: 5.2.0
  - contactsinteraction: 1.7.0
  - dashboard: 7.6.0
  - dav: 1.25.0
  - deck: 1.9.0
  - emlviewer: 1.0.7
  - external: 5.1.0
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_downloadactivity: 1.16.0
  - files_external: 1.18.0
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - firstrunwizard: 2.15.0
  - forms: 3.2.0
  - health: 1.6.1
  - integration_openproject: 2.3.1
  - issuetemplate: 0.7.0
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - mail: 3.0.2
  - maps: 1.0.2
  - nextcloud_announcements: 1.15.0
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - onlyoffice: 7.1.2
  - password_policy: 1.16.0
  - photos: 2.2.0
  - polls: 4.1.8
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - recommendations: 1.5.0
  - registration: 2.1.0
  - related_resources: 1.1.0-alpha1
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - support: 1.9.0
  - survey_client: 1.14.0
  - systemtags: 1.16.0
  - tasks: 0.14.5
  - text: 3.7.2
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - updatenotification: 1.16.0
  - user_status: 1.6.0
  - viewer: 1.10.0
  - weather: 1.7.7
  - weather_status: 1.6.0
  - workflowengine: 2.8.0
Disabled:
  - circles: 26.0.0 (installed 0.18.9)
  - dicomviewer: 1.2.4 (installed 1.2.4)
  - drawio: 2.1.0 (installed 2.1.0)
  - drop_account: 2.1.0 (installed 2.1.0)
  - encryption: 2.14.0 (installed 2.6.0)
  - files_automatedtagging: 1.16.1 (installed 1.16.1)
  - files_external_gdrive: 0.4.0 (installed 0.4.0)
  - files_mindmap: 0.0.27 (installed 0.0.27)
  - files_texteditor: 2.15.0 (installed 2.15.0)
  - gpxmotion: 0.1.0 (installed 0.1.0)
  - gpxpod: 5.0.6 (installed 5.0.6)
  - jitsi: 0.16.2 (installed 0.16.2)
  - metadata: 0.18.0 (installed 0.18.0)
  - ojsxc: 5.0.0 (installed 5.0.0)
  - onlyoffice-2: 2.1.2
  - scanner: 0.2.3 (installed 0.2.3)
  - spreed: 16.0.2 (installed 16.0.2)
  - suspicious_login: 4.4.0
  - twofactor_totp: 8.0.0-alpha.0
  - user_ldap: 1.16.0
  - wopi: 3.5.11 (installed 3.5.11)

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.tennis24.ee"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.0.11",
        "overwrite.cli.url": "https:\/\/nextcloud.tennis24.ee",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "app_install_overwrite": [
            "onlyoffice",
            "dashboard",
            "files_external_gdrive",
            "dicomviewer",
            "calendar",
            "emlviewer",
            "mindmap_app",
            "weather",
            "issuetemplate",
            "health"
        ],
        "tempdirectory": "\/projektid\/nextcloud\/data",
        "overwriteprotocol": "https",
        "mysql.utf8mb4": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "has_rebuilt_cache": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "default_phone_region": "EE",
        "allow_local_remote_servers": true
    }
}

Are you using external storage, if yes which one: No.

Are you using encryption: no

Are you using an external user-backend, if yes which one: No.

Client configuration

Browser: Google Chrome Version 111.0.5563.110 (Official Build) (64-bit)

Operating system: Ubuntu 22.04.2 LTS

Logs

Web server error log

Web server error log
[Thu Mar 30 20:05:48.042118 2023] [authz_core:debug] [pid 518039] mod_authz_core.c(817): [client 127.0.0.1:46906] AH01626: authorization result of <RequireAny>: granted

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"R4cvkOaocYFig91Xranp","level":3,"time":"2023-03-30T17:21:54+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"index","method":"GET","url":"/index.php/apps/weather/","message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36","version":"26.0.0.11","exception":{"Exception":"Error","Message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","Code":0,"Trace":[{"file":"/projektid/nextcloud/lib/autoloader.php","line":177,"function":"require_once"},{"file":"/projektid/nextcloud/apps/weather/lib/AppInfo/Application.php","line":52,"function":"load","class":"OC\\Autoloader","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":171,"function":"OCA\\Weather\\AppInfo\\{closure}","class":"OCA\\Weather\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/projektid/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/projektid/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":138,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":487,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/projektid/nextcloud/apps/weather/lib/AppInfo/Application.php","line":68,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":171,"function":"OCA\\Weather\\AppInfo\\{closure}","class":"OCA\\Weather\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/projektid/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/projektid/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":138,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":487,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":65,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/AppFramework/App.php","line":148,"function":"get","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/projektid/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/projektid/nextcloud/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/projektid/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/projektid/nextcloud/apps/weather/db/citymapper.php","Line":19,"CustomMessage":"--"}}

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log

GET https://nextcloud.tennis24.ee/index.php/apps/weather/ 500
jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 3.4.0
session-heartbeat.js:103 session heartbeat polling started

piiskop avatar Mar 30 '23 17:03 piiskop

With NC 26; OCP\AppFramework\Db\Mapper. Move to \OCP\AppFramework\Db\QBMapper

This is the problem i guess.

Edit: .../public_html/nextcloud/apps/weather/db/citymapper.php .../public_html/nextcloud/apps/weather/db/settingsmapper.php

replace Mapper with QBMapper at use decleration and following extends function on both files. So total 4 changes.

Yanik39 avatar Apr 04 '23 23:04 Yanik39

What do you mean by OCP? Where can I find it? NC 26 has no subfolder like this.

piiskop avatar Apr 05 '23 17:04 piiskop

In NC 27 the same behaviour again. Before in NC26 i changed the two mentioned files to "QBMapper" - and it worked. Now with NC27 again the same error - did the "link" change again?

WeT-Klb avatar Jun 15 '23 07:06 WeT-Klb

I confirm that in 27, the weather app is still unusable. In addition to that, ONLYOFFICE is unusable now. It seems that people who make newer versions of Nextcloud are not doing integration tests.

piiskop avatar Jun 16 '23 15:06 piiskop