nextcloud / notify_push

Update notifications for nextcloud clients
GNU Affero General Public License v3.0
225 stars 40 forks source link

Unix socket: websocket error: IO error: Broken pipe (os error 32) #100

Open solracsf opened 3 years ago

solracsf commented 3 years ago

journalctl is full of messages like these:

WARN [notify_push::connection] src/connection.rs:54: Invalid authentication message
WARN [notify_push::connection] src/connection.rs:54: Socket error during authentication
WARN [notify_push::connection] src/connection.rs:139: websocket error: IO error: Broken pipe (os error 32)

nginx

location ^~ /push/ {
    proxy_pass http://unix:/run/notify-push.sock;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "Upgrade";
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

systemd

[Unit]
Description = Push daemon for Nextcloud

[Service]
Environment = SOCKET_PATH=/run/notify-push.sock
ExecStart = /srv/apps/notify_push/bin/x86_64/notify_push /srv/config/config.php

[Install]
WantedBy = multi-user.target
ryester19 commented 3 years ago

The test client still authenticates and receives notifications just fine, so these warnings only appear to be cosmetic for me

solracsf commented 3 years ago

Nginx also complain about this:

send() failed (32: Broken pipe) while proxying upgraded connection,
request: "GET /push/ws HTTP/1.1", upstream: "http://unix:/run/notify-push.sock:/push/ws"

recv() failed (104: Connection reset by peer) while proxying upgraded connection,
request: "GET /push/ws HTTP/1.1", upstream: "http://unix:/run/notify-push.sock:/push/ws"
jkhsjdhjs commented 1 year ago

@solracsf Why did you close this issue? I'm still seeing this error and I also don't see any new commits that (attempt to) fix this.