nextcloud / nextcloud/notify_push
Setup can't detect correct config parameters
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 344
- Forks
- 64
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 5
Description
Steps to reproduce
sudo -u www-data php occ notify_push:setupin 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]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the notify_push:setup command and its self-test, then compare the values it reads with the config.php passed to notify_push, the systemd service, and the Apache rewrite rules shown in the report. Done means the setup wizard correctly detects the reported configuration and the self-test no longer fails for those settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, php, rust
- Domain
- backend, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100