notify_push icon indicating copy to clipboard operation
notify_push copied to clipboard

Setup can't detect correct config parameters

Open fuzunspm opened this issue 3 months ago • 0 comments

Steps to reproduce

  1. sudo -u www-data php occ notify_push:setup in nextcloud folder

Actual behaviour

╰─$ sudo -u www-data php occ notify_push:setup
This setup wizard is intended for use on single server instances
where the nextcloud server, web server/reverse proxy and push daemon all run on the same machine.
If your setup is more complex or involves any kind of load balancing
you should follow the manual setup instruction on the README instead
https://github.com/nextcloud/notify_push
Press enter to continue or ESC to cancel...

Push binary seems to be running already
🗴 failed to run self-test.
test output: ✓ redis is configured
             🗴 using unencrypted http for push server is strongly discouraged
             🗴 push server URL is set to localhost, the push server will not be reachable from other machines
             ✓ push server is receiving redis messages
             ✓ push server can load mount info from database
             🗴 push server can't connect to the Nextcloud server

  See the steps in the README for manual setup instructions: https://github.com/nextcloud/notify_push

Server configuration

Web server: Apache

Database: PostgreSQL

PHP version: 8.4.12

Nextcloud version: 32

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "10.0.1.36",
            "https://my.nextcloud.com",
            "localhost",
            "REMOTE_IP"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/nextcloud",
        "dbtype": "pgsql",
        "version": "32.0.0.13",
        "overwrite.cli.url": "https://my.nextcloud.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "TR",
        "music.allowed_radio_src": [
            "http:\/\/*:*",
            "https:\/\/*:*"
        ],
        "enable_previews": true,
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "preview_max_scale_factor": 1,
        "preview_max_memory": 4096,
        "preview_max_filesize_image": 256,
        "enabledPreviewProviders": [
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\PDF",
            "OC\\Preview\\Image",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Font",
            "OC\\Preview\\MP3",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\HEIF",
            "OC\\Preview\\HEVC"
        ],
        "installed": true,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpauth": true,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "logtimezone": "Europe\/Istanbul",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "share_folder": "\/Share",
        "filelocking.enabled": "true",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 1.5
        },
        "theme": "",
        "loglevel": 2,
        "jpeg_quality": "60",
        "app_install_overwrite": [
            "radio",
            "phonetrack",
            "drawio",
            "extract",
            "richdocumentscode",
            "facerecognition",
            "bookmarks",
            "gpoddersync",
            "imageconverter",
            "maps",
            "tasks"
        ],
        "memories.exiftool": "\/var\/www\/html\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/html\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

/etc/systemd/system/notify_push.service

[Unit]
Description = Push daemon for Nextcloud clients
After = redis-server.service mysql.service php8.4-fpm.service apache2.service

[Service]
Environment = PORT=7867
Environment = NEXTCLOUD_URL=https://my.nextcloud.com
ExecStart = /var/www/html/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/html/nextcloud/config/config.php
User = www-data
Restart = always
RestartSec = 60

[Install]
WantedBy = multi-user.targe

apache

RewriteRule ^push/ws(.*)$ ws://127.0.0.1:7867/ws$1 [P,L]
RewriteRule ^push/(.*)$ http://127.0.0.1:7867/$1 [P,L]

fuzunspm avatar Sep 29 '25 12:09 fuzunspm