nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.54k stars 4.08k forks source link

[Bug]: "Logging" page crashes #42323

Closed scottpk closed 11 months ago

scottpk commented 11 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Going to the log page gives Internal Server Error.

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: 192.168.1.1
Request ID: LU6Ri0k8xaymVsyprymN

Running occ log:tail after this gives the following:

root@cec27c4667ce:/# occ log:tail
 ------- ------- ------------------------------------------------------------------------------------------- --------------------------- 
  Level   App     Message                                                                                     Time                       
 ------- ------- ------------------------------------------------------------------------------------------- --------------------------- 
  Error   index   JsonException: Syntax error at .../apps/logreader/lib/Service/SettingsService.php line 52   2023-12-16T02:22:44+00:00  

                   0. /config/www/nextcloud/apps/logreader/lib/Service/SettingsService.php line 52                                       
                      json_decode(                                                                                                       

                      )                                                                                                                  
                   1. .../apps/logreader/lib/Service/SettingsService.php line 69                                                         
                      OCA\LogReader\Service\SettingsService->getRelativeDates(                                                           

                      )                                                                                                                  
                   2. .../www/nextcloud/apps/logreader/lib/Settings/Admin.php line 46                                                    
                      OCA\LogReader\Service\SettingsService->getAppSettings(                                                             

                      )                                                                                                                  
                   3. .../www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 129                                    
                      OCA\LogReader\Settings\Admin->getForm(                                                                             

                      )                                                                                                                  
                   4. .../lib/Controller/AdminSettingsController.php line 86                                                             
                      OCA\Settings\Controller\AdminSettingsController->formatSettings(                                                   

                      )                                                                                                                  
                   5. .../lib/Controller/CommonSettingsTrait.php line 149                                                                
                      OCA\Settings\Controller\AdminSettingsController->getSettings(                                                      

                      )                                                                                                                  
                   6. .../lib/Controller/AdminSettingsController.php line 71                                                             
                      OCA\Settings\Controller\AdminSettingsController->getIndexResponse(                                                 

                      )                                                                                                                  
                   7. lib/private/AppFramework/Http/Dispatcher.php line 230                                                              
                      OCA\Settings\Controller\AdminSettingsController->index(                                                            

                      )                                                                                                                  
                   8. lib/private/AppFramework/Http/Dispatcher.php line 137                                                              
                      OC\AppFramework\Http\Dispatcher->executeController(                                                                

                      )                                                                                                                  
                   9. lib/private/AppFramework/App.php line 184                                                                          
                      OC\AppFramework\Http\Dispatcher->dispatch(                                                                         

                      )                                                                                                                  
                  10. lib/private/Route/Router.php line 315                                                                              
                      OC\AppFramework\App::main(                                                                                         

                      )                                                                                                                  
                  11. lib/base.php line 1069                                                                                             
                      OC\Route\Router->match(                                                                                            

                      )                                                                                                                  
                  12. index.php line 39                                                                                                  
                      OC::handleRequest(                                                                                                 

                      )                                                                                                                  

 ------- ------- ------------------------------------------------------------------------------------------- --------------------------- 

Steps to reproduce

  1. Go to Settings
  2. Go to Logging

Expected behavior

I would expect the log page to load

Installation method

Community Docker image

Nextcloud Server version

28

Operating system

Other

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.100",
            "nextcloud.karbon.site"
        ],
        "dbtype": "mysql",
        "version": "28.0.0.11",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.karbon.site",
        "overwritehost": "nextcloud.karbon.site",
        "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,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "theme": "",
        "loglevel": 3,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "default_phone_region": "US",
        "has_rebuilt_cache": true,
        "app_install_overwrite": [
            "whiteboard"
        ],
        "filelocking.enabled": "true",
        "upgrade.disable-web": true
    }
}

List of activated Apps

Enabled:
  - activity: 2.20.0
  - bookmarks: 13.1.2
  - bruteforcesettings: 2.8.0
  - calendar: 4.6.0
  - circles: 28.0.0-dev
  - cloud_federation_api: 1.11.0
  - comments: 1.18.0
  - contacts: 5.5.0
  - contactsinteraction: 1.9.0
  - dashboard: 7.8.0
  - dav: 1.29.1
  - federatedfilesharing: 1.18.0
  - federation: 1.18.0
  - files: 2.0.0
  - files_pdfviewer: 2.9.0
  - files_reminders: 1.1.0
  - files_sharing: 1.20.0
  - files_trashbin: 1.18.0
  - files_versions: 1.21.0
  - firstrunwizard: 2.17.0
  - integration_github: 2.0.6
  - logreader: 2.13.0
  - lookup_server_connector: 1.16.0
  - maps: 1.3.1
  - nextcloud_announcements: 1.17.0
  - notes: 4.9.1
  - notifications: 2.16.0
  - oauth2: 1.16.3
  - password_policy: 1.18.0
  - passwords: 2023.12.31
  - photos: 2.4.0
  - privacy: 1.12.0
  - provisioning_api: 1.18.0
  - related_resources: 1.3.0
  - richdocuments: 8.3.0
  - serverinfo: 1.18.0
  - settings: 1.10.0
  - sharebymail: 1.18.0
  - support: 1.11.0
  - survey_client: 1.16.0
  - suspicious_login: 6.0.0
  - tasks: 0.15.0
  - text: 3.9.1
  - theming: 2.3.0
  - twofactor_backupcodes: 1.17.0
  - twofactor_totp: 10.0.0-beta.2
  - viewer: 2.2.0
  - weather_status: 1.8.0
  - workflowengine: 2.10.0
Disabled:
  - admin_audit: 1.18.0
  - drawio: 2.1.4 (installed 2.1.4)
  - encryption: 2.16.0
  - files_external: 1.20.0
  - files_rightclick: 1.6.0 (installed 1.6.0)
  - issuetemplate: 0.7.0 (installed 0.7.0)
  - recommendations: 2.0.0 (installed 0.6.0)
  - systemtags: 1.18.0 (installed 1.11.0)
  - updatenotification: 1.18.0 (installed 1.17.0)
  - user_ldap: 1.19.0
  - user_status: 1.8.1 (installed 1.1.1)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

------- ------- ------------------------------------------------------------------------------------------- --------------------------- 
  Level   App     Message                                                                                     Time                       
 ------- ------- ------------------------------------------------------------------------------------------- --------------------------- 
  Error   index   JsonException: Syntax error at .../apps/logreader/lib/Service/SettingsService.php line 52   2023-12-16T02:22:44+00:00  

                   0. /config/www/nextcloud/apps/logreader/lib/Service/SettingsService.php line 52                                       
                      json_decode(                                                                                                       

                      )                                                                                                                  
                   1. .../apps/logreader/lib/Service/SettingsService.php line 69                                                         
                      OCA\LogReader\Service\SettingsService->getRelativeDates(                                                           

                      )                                                                                                                  
                   2. .../www/nextcloud/apps/logreader/lib/Settings/Admin.php line 46                                                    
                      OCA\LogReader\Service\SettingsService->getAppSettings(                                                             

                      )                                                                                                                  
                   3. .../www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 129                                    
                      OCA\LogReader\Settings\Admin->getForm(                                                                             

                      )                                                                                                                  
                   4. .../lib/Controller/AdminSettingsController.php line 86                                                             
                      OCA\Settings\Controller\AdminSettingsController->formatSettings(                                                   

                      )                                                                                                                  
                   5. .../lib/Controller/CommonSettingsTrait.php line 149                                                                
                      OCA\Settings\Controller\AdminSettingsController->getSettings(                                                      

                      )                                                                                                                  
                   6. .../lib/Controller/AdminSettingsController.php line 71                                                             
                      OCA\Settings\Controller\AdminSettingsController->getIndexResponse(                                                 

                      )                                                                                                                  
                   7. lib/private/AppFramework/Http/Dispatcher.php line 230                                                              
                      OCA\Settings\Controller\AdminSettingsController->index(                                                            

                      )                                                                                                                  
                   8. lib/private/AppFramework/Http/Dispatcher.php line 137                                                              
                      OC\AppFramework\Http\Dispatcher->executeController(                                                                

                      )                                                                                                                  
                   9. lib/private/AppFramework/App.php line 184                                                                          
                      OC\AppFramework\Http\Dispatcher->dispatch(                                                                         

                      )                                                                                                                  
                  10. lib/private/Route/Router.php line 315                                                                              
                      OC\AppFramework\App::main(                                                                                         

                      )                                                                                                                  
                  11. lib/base.php line 1069                                                                                             
                      OC\Route\Router->match(                                                                                            

                      )                                                                                                                  
                  12. index.php line 39                                                                                                  
                      OC::handleRequest(                                                                                                 

                      )                                                                                                                  

 ------- ------- ------------------------------------------------------------------------------------------- ---------------------------

Additional info

NAS is running unRAID 6.12.6 Docker image: linuxserver/nextcloud

solracsf commented 11 months ago

Duplicate of https://github.com/nextcloud/logreader/issues/1073

scottpk commented 11 months ago

Duplicate of https://github.com/nextcloud/logreader/issues/1073

My apologies, I didn't see that in my search. Yes that does seem like the same bug, I will try the command recommended in there. Thanks!