New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default web client not getting any notifications/not connecting to websocket ? #62
Comments
It should be used automatically for notifications in the web interface if notify_push is setup. Is there anything in the notify_push log when you reload the page? |
no there's nothing in the debug log only contains server side events (file uploads, etc..)
i get plenty of debug output so that part seems to work
the binary used by the service is the one in the the only 'complex' setup i have is:
webserver:
|
oh and of course i have zero hits on
i dont see anything directly related to notify_push in the browser console either, be it information/debug/log types.. oh and that's with firefox 87 beta on openbsd, but i get the same with firefox 86 on windows 7. The only 'strange' thing i see from time to time, more or less every time i ran the self testing, 65 seconds later i get this in the debug log:
but that doesnt seem related to a real user connection, i guess it's linked to self-test connection being not properly torn down ? |
I would also be interested in a test case from the web client. If there is anything I can test, I will do it to provide additional input. |
i've retested with 0.1.7, and it's still the same thing,
but nothing seem to come from the web UI. i see zero websocket connection in the browser console either. besides enabling the application, is there something else to do in nextcloud to get the js client to connect to the websocket ? enabling something around the notifications ? my test user has push notifications for file modifications enabled in its preferences. what js part client-side should initiate the websocket connection to |
looking at bit more, it really seems everything server side is properly configured, as
so it looks to me that everything serverside works, it's just that nothing in the web client consumes/uses the push API it yet ? i dont see any mention of the nodejs lib (https://www.npmjs.com/package/@nextcloud/notify_push) included in the nextcloud/server repository, but reading the announcement at https://nextcloud.com/blog/nextcloud-faster-than-ever-introducing-files-high-performance-back-end/ it says
but i'm not seeing those improvements after having setupped everything ? or it's only working in chrome ? in certain apps ? |
ok, i think i got it. the but the once i had so, in the end, maybe a bug should be filed against in the meantime, closing this issue, |
Dunno if this issue is similar to #50 or #59 but opening a new one to avoid squatting them..
i've successfully setup notify_push, can connect to it via an app password and
test_client
,i see update notifications in the notify_push debug output when uploading a file,
i see pings being sent to
test_client
i see that there's a tcp connection between notify_push and my front nginx reverse proxy (172.20.97.21 is the external IP, 10.0.7.1 is the internal NAT'ed IP of the reverse proxy)
and a tcp connection between my backend nginx server and notify_push (two nginx stacked)
i also see some valid metrics:
my instance uses
user_ldap
anduser_cas
modules, auth via webdav and web works fine.but strangely, i dont see usage by the web client interface. no wss connection between my web browser and notify_push (checked in the network tab of dev console), while i would expect to see a permanent connection..
i only see some ajax pings from time to time on https://fqdn/ocs/v2.php/apps/user_status/api/v1/user_status and https://fqdn/apps/user_status/heartbeat.
Not knowing if it was related or not (as the doc doesnt mention a clear dependency on it ?) i went to the activity app parameters for my user and clicked 'push' so that every event should create 'something', but i only see events (file creations, shares between users) in
notify_push
debug output, nothing on the web client.So... in what workflow/usecase is
notify_push
used, and how to enable it for web client ? my understanding was that the desktop clients was using another mechanism, but i'm not sure anymore now...The text was updated successfully, but these errors were encountered: