nextcloud / nextcloud/notify_push

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

Open
#672 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
344
Forks
64
Avg merge
2d 10h
Merged PRs (30d)
5

Description

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***" } } ```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the systemd invocation of notify_push-x86_64-unknown-linux-musl and the provided /var/www/nextcloud/config/config.php path; run the command to reproduce the MariaDB connection error. Trace how that configuration is read and identify why the connection instead reaches ::1. Done means the provided config is used and the service connects to the configured database.

Written by the indexing model from the issue text.

Assessment

Tech stack
mariadb, rust
Domain
backend, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.