notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

Nextcloud config not read:: Host '::1' is not allowed to connect to this MariaDB server

Open adriansev opened this issue 1 month ago • 1 comments

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

try to use notify_push-x86_64-unknown-linux-musl in a systemd service systemd unit have:

Environment = PORT=7867
ExecStart = /usr/local/bin/notify_push-x86_64-unknown-linux-musl /var/www/nextcloud/config/config.php

Expected behaviour

should work (should read the provided config file)

Actual behaviour

[root@isscloud system]# /usr/local/bin/notify_push-x86_64-unknown-linux-musl /var/www/nextcloud/config/config.php Error: × Failed to connect to database: error returned from database: 1130: Host '::1' is not allowed to connect to this MariaDB server ├─▶ error returned from database: 1130: Host '::1' is not allowed to connect to this MariaDB server ╰─▶ 1130: Host '::1' is not allowed to connect to this MariaDB server

Server configuration

Web server: Apache

Database: MariaDB

PHP version: 8.3

Nextcloud version: 32.0.2

List of activated apps ``` Enabled: - activity: 5.0.0-dev.0 - admin_audit: 1.22.0 - announcementcenter: 7.2.2 - app_api: 32.0.0 - approval: 2.6.0 - bookmarks: 16.0.1 - bruteforcesettings: 5.0.0-dev.0 - calendar: 6.1.0 - calendar_resource_management: 0.10.0 - circles: 32.0.0 - cloud_federation_api: 1.16.0 - comments: 1.22.0 - contacts: 8.1.0 - contactsinteraction: 1.13.1 - dashboard: 7.12.0 - dav: 1.34.2 - deck: 1.16.2 - drawio: 3.1.2 - epubviewer: 1.8.1 - event_update_notification: 2.7.0 - external: 7.0.0 - federatedfilesharing: 1.22.0 - files: 2.4.0 - files_accesscontrol: 3.0.2 - files_archive: 1.2.8 - files_automatedtagging: 3.0.1 - files_downloadlimit: 5.0.0-dev.0 - files_external: 1.24.0 - files_lock: 32.0.1 - files_pdfviewer: 5.0.0-dev.0 - files_reminders: 1.5.0 - files_sharing: 1.24.1 - files_trashbin: 1.22.0 - files_versions: 1.25.0 - firstrunwizard: 5.0.0-dev.0 - flow_notifications: 3.0.0 - forms: 5.2.3 - fulltextsearch: 32.0.0 - group_default_quota: 0.1.12 - groupfolders: 20.1.4 - groupquota: 0.2.3 - integration_github: 3.2.2 - integration_gitlab: 4.0.0 - intros: 1.1.2 - logreader: 5.0.0-dev.0 - lookup_server_connector: 1.20.0 - mail: 5.6.0 - nextcloud_announcements: 4.0.0-dev.0 - notes: 4.12.4 - notifications: 5.0.0-dev.0 - notify_push: 1.2.1 - oauth2: 1.20.0 - ownershiptransfer: 1.3.0 - password_policy: 4.0.0-dev.0 - passwords: 2025.11.20 - photos: 5.0.0-dev.1 - privacy: 4.0.0-dev.0 - profile: 1.1.0 - provisioning_api: 1.22.0 - quota_warning: 1.22.0 - recommendations: 5.0.0-dev.0 - registration: 2.8.0 - richdocuments: 9.0.1 - serverinfo: 4.0.0-dev.0 - settings: 1.15.1 - sharebymail: 1.22.0 - sharereview: 1.6.0 - spreed: 22.0.4 - support: 4.0.0-dev.0 - survey_client: 4.0.0-dev.0 - suspicious_login: 10.0.0-dev.0 - systemtags: 1.22.0 - tables: 1.0.1 - tasks: 0.17.1 - text: 6.0.1 - theming: 2.7.0 - twofactor_backupcodes: 1.21.0 - twofactor_totp: 14.0.0 - updatenotification: 1.22.0 - user_status: 1.12.0 - user_usage_report: 3.0.0 - viewer: 5.0.0-dev.0 - weather_status: 1.12.0 - webhook_listeners: 1.3.0 - workflow_script: 3.0.0 - workflowengine: 2.14.0 Disabled: - checksum: 2.0.3 (installed 2.0.3) - cloud_py_api: 0.2.0 (installed 0.2.0) - duplicatefinder: 1.7.3 (installed 1.7.3) - encryption: 2.20.0 - federation: 1.22.0 (installed 1.20.0) - files_fulltextsearch_tesseract: 27.0.1 (installed 27.0.1) - integration_dropbox: 4.1.0 (installed 4.1.0) - integration_mattermost: 2.1.1 (installed 2.1.1) - jitsi: 0.19.0 (installed 0.19.0) - libresign: 12.1.0 (installed 12.1.0) - metadata: 0.23.0 (installed 0.23.0) - onlyoffice: 9.11.0 (installed 9.11.0) - related_resources: 3.0.0-dev.0 (installed 1.5.0) - sociallogin: 6.3.0 (installed 6.3.0) - twofactor_nextcloud_notification: 6.0.0-dev.0 - user_ldap: 1.23.0 - whiteboard: 1.4.1 (installed 1.4.1) ```
Nextcloud configuration ``` { "system": { "maintenance": false, "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "version": "32.0.2.2", "overwrite.cli.url": "https:\/\/isscloud.spacescience.ro", "trusted_domains": [ "isscloud.spacescience.ro" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "htaccess.RewriteBase": "\/", "dbtype": "mysql", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "default_language": "en", "default_locale": "ro", "default_phone_region": "RO", "default_timezone": "Europe\/Bucharest", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "allow_local_remote_servers": true, "trashbin_retention_obligation": "30,90", "log_type": "file", "logfile": "\/var\/log\/nextcloud.log", "logfile_audit": "\/var\/log\/nextcloud_audit.log", "loglevel": 2, "loglevel_frontend": 2, "logtimezone": "Europe\/Bucharest", "defaultapp": "dashboard,files", "enable_previews": false, "maintenance_window_start": 1, "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379, "timeout": 0, "read_timeout": 0, "user": "", "password": "***REMOVED SENSITIVE VALUE***", "dbindex": 0 }, "sharing.enable_mail_link_password_expiration": false, "sharing.mail_link_password_expiration_interval": 3600, "tempdirectory": "\/nextcloud\/tmp", "updatedirectory": "\/nextcloud\/update", "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_sendmailmode": "smtp", "mail_smtpport": "587", "mail_smtpauth": 1, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "app_install_overwrite": [], "theme": "", "updater.secret": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***" } } ```

adriansev avatar Nov 23 '25 22:11 adriansev

I see the same issue, but with ipv4 instead of ipv6: https://github.com/nextcloud/notify_push/issues/16#issuecomment-3593679174

Nov 29 14:43:01 ubuntu-server systemd[1]: Starting notify_push.service - Push daemon for Nextcloud clients...
Nov 29 14:43:02 ubuntu-server notify_push[1136]: Error:   × Failed to connect to database: error returned from database: 1130: Host
Nov 29 14:43:02 ubuntu-server notify_push[1136]:   │ '127.0.0.1' is not allowed to connect to this MariaDB server
Nov 29 14:43:02 ubuntu-server notify_push[1136]:   ├─▶ error returned from database: 1130: Host '127.0.0.1' is not allowed to
Nov 29 14:43:02 ubuntu-server notify_push[1136]:   │   connect to this MariaDB server
Nov 29 14:43:02 ubuntu-server notify_push[1136]:   ╰─▶ 1130: Host '127.0.0.1' is not allowed to connect to this MariaDB server
Nov 29 14:43:02 ubuntu-server systemd[1]: notify_push.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 14:43:02 ubuntu-server systemd[1]: notify_push.service: Failed with result 'exit-code'.

melroy89 avatar Nov 30 '25 22:11 melroy89