Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Nextcloud 29 rc2: spams log with BlurHash messages #44702

Closed
6 of 8 tasks
wom-bat opened this issue Apr 6, 2024 · 0 comments · Fixed by #44705
Closed
6 of 8 tasks

[Bug]: Nextcloud 29 rc2: spams log with BlurHash messages #44702

wom-bat opened this issue Apr 6, 2024 · 0 comments · Fixed by #44705
Labels

Comments

@wom-bat
Copy link

wom-bat commented Apr 6, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

After updating to Nextcloud 29 rc2 I see the log spammed with thousands of messages like this:

Error	PHP	
imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117
"5 Apr 2024, 8:26:23 am"	
Error	PHP	
imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117
"5 Apr 2024, 8:26:20 am"	
Error	PHP	
imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117
"5 Apr 2024, 8:26:19 am"	
Error	PHP	
imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117
"5 Apr 2024, 8:26:04 am"	
Error	PHP	
imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117
"5 Apr 2024, 8:26:04 am"	

Steps to reproduce

Upgraded existing system to version 29 rc2; then the messages appear. I have around 25000 photos in the nextcloud instance, mostly Jpegs, but some GIF and some in PENTAX Rawformat. It's not obvious to me which are causing the issue.

Expected behavior

I do not expect to see these errors in the logs.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

"dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "forcessl": false,
        "blacklisted_files": [
            ".htaccess"
        ],
        "overwritehost": "",
        "overwriteprotocol": "",
        "overwritewebroot": "",
        "overwritecondaddr": "",
        "overwrite.cli.url": "https:\/\/nextcloud.chubb.wattle.id.au\/",
        "theme": "",
        "default_language": "en",
        "3rdpartyroot": "",
        "3rdpartyurl": "",
        "defaultapp": "web",
        "knowledgebaseenabled": true,
        "mail_smtpdebug": false,
        "mail_smtpmode": "sendmail",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtptimeout": 10,
        "mail_smtpauthtype": "LOGIN",
        "trashbin_retention_obligation": "180, auto",
        "allow_user_to_change_display_name": true,
        "appcodechecker": "",
        "updatechecker": false,
        "log_type": "file",
        "log_query": true,
        "logfile": "\/var\/nextcloud\/data\/owncloud.log",
        "loglevel": 2,
        "filelocking.enabled": true,
        "filelocking.ttl": 3600,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***"
        },
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "custom_csp_policy": "default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' data:; media-src *",
        "xframe_restriction": true,
        "customclient_desktop": "",
        "customclient_android": "",
        "customclient_ios": "",
        "logdateformat": "F d, Y H:i:s",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "version": "29.0.0.15",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***,
            "***REMOVED SENSITIVE VALUE***"
        ],
        "secret": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita"
        ],
        "appstoreenabled": true,
        "appstoreurl": "https:\/\/apps.nextcloud.com\/api\/v1",
        "apps-paths": [
            {
                "path": "\/var\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": "false"
            },
            {
                "path": "\/var\/www\/nextcloud\/apps2",
                "url": "\/apps2",
                "writable": "true"
            }
        ],
        "maintenance": false,
        "maintenance_window_start": 1,
        "web.baseUrl": "https:\/\/*** REMOVED SENSITIVE DATA***/",
        "web.rewriteLinks": false,
        "htaccess.rewriteBase": "\/",
        "allow_user_to_change_mail_address": true,
        "token_auth_enforced": false,
        "files_external_allow_create_new_local": true,
        "ldapIgnoreNamingRules": false,
        "default_phone_region": "AU",
        "updater.server.url": "https:\/\/updates.nextcloud.com\/updater_server\/",
        "updater.release.channel": "beta",
        "mysql.utf8mb4": true,
        "enable_file_metadata": true,
        "app_install_overwrite": [
            "impersonate",
            "duplicatefinder",
            "dropit"
        ]
    }
}

List of activated Apps

- cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0-rc.1
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - deck: 1.13.0-beta.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - impersonate: 1.16.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recognize: 6.1.1
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - support: 1.12.0
  - survey_client: 1.17.0
  - suspicious_login: 7.0.0
  - systemtags: 1.19.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_ldap: 1.20.0
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - duplicatefinder: 1.1.4 (installed 0.0.15)
  - encryption: 2.17.0
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 2.18.0 (installed 1.1)
  - ldap_write_support: 1.9.0 (installed 1.9.0)
  - music: 1.10.0 (installed 1.10.0)
  - twofactor_totp: 11.0.0-dev

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"AeiPgLj3OMQy0CQqYxgh","level":3,"time":"2024-04-04T21:28:28+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"imagecreatefromstring(): Data is not in a recognized format at /var/www/nextcloud/lib/private/Blurhash/Listener/GenerateBlurhashMetadata.php#117","userAgent":"--","version":"29.0.0.15","data":{"app":"PHP"},"id":"6610d3bbd80cf"}

Additional info

No response

@wom-bat wom-bat added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 6, 2024
joshtrichards added a commit that referenced this issue Apr 6, 2024
We're already checking return value to determine if the format is unrecognized. There's no reason to let imagecreatefromstring() generate it's own E_WARNING when the format is unrecognized.

Fixes #44702 

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added 3. to review Waiting for reviews and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Apr 6, 2024
backportbot bot pushed a commit that referenced this issue Apr 8, 2024
We're already checking return value to determine if the format is unrecognized. There's no reason to let imagecreatefromstring() generate it's own E_WARNING when the format is unrecognized.

Fixes #44702 

Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants