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
Live Update Error #74
Comments
We use SignalR to update attachments and job logs in every client automatically whenever anyone makes a change. This message (while not terribly friendly) occurs whenever the device loses connection to the server - as a warning that you're disconnected and wont be updated. We should investigate making these messages more friendly - and perhaps try to recover from this state gracefully. |
That makes sense :) probably a more user friendly error would be good, or even just a page refresh. |
When the live connection to the server is interrupted some ui elements are disabled. If the connection fails (due to errors or failed reconnection) a dialog instructs the user to check their connection and refresh the browser. Relates to Device, Job and User pages (logs and attachments).
Implemented in bbe4ccc |
Still getting constant disconnected images when editing job details, even when only person in the job. Using any web browser. |
The changes wouldn't have any effect on the availability of the application, but provides a more friendly error message when disconnection does occur. The message appears under the following scenarios:
In the past (before v2) these error messages were ignored and features on the page failed silently. Attempts could be made to reconnect automatically, however the state between client and server will fall out of sync (the client may miss messages while disconnected) - so the decision was made to inform the end-user to refresh the page. To diagnose why you are "constantly" receiving these messages:
Most common causes:
|
Thanks Gary, I myself don't get this message by my colleagues do. I use Firefox and they get the message in any browser they use. I will get them to try update what they can and see if any messages appear in the logging in Disco. They are getting the messages every 30 seconds or so when trying to edit or view jobs. As for the Disco server itself, it is running 3 cores with 4 GB RAM, which isn't even using all the allocated resources. Should this be sufficient enough? |
I have managed to get one of my team members to screen capture the error with the javascript debugging, please see the picture attached below. Would running multiple tabs of Disco cause this message to appear? I have just been told that they are using multiple tabs open at the same time to work on multiple jobs. I do not do this myself, which is probably why I am not getting the errors. As for the server itself, it is running Windows Server 2008 R2, with IIS 7. I am wondering if it could be a issue with IIS maybe? |
Running multiple tabs could be the cause, see this post for the browser concurrent-connection/per-server limits: These limits are in place for various (good) reasons as discussed elsewhere. Rather than keeping lots of tabs open, can you encourage your colleagues to use Job Queues (new in v2) to keep track of their current jobs. This will also ensure their current tasks are persisted if the browser crashes, the machine reboots, etc. |
Gary, This is still an issue for us, mainly my colleagues. Debugging hasn't helped with any further information. I have just opened the Noticeboard on our TV we have to monitor jobs and every ~10 seconds it is saying it's disconnected and trying to reconnect. Nothing is appearing in the system log which you have said to check. So I really don't know what the issue could be. It is really odd that it isn't happening for me, never has. I believe we are all using the same browser, Firefox (latest versions), even on the TV. Do you have any possible causes for this? EDIT: I have tried increasing server resources and it's made no difference. |
Michael, As mentioned above, unless resources were greatly constrained (“very limited resources”), adding more CPU/RAM/Network capacity will have no effect. The errors captured by your colleague indicate the server (potentially a proxy if present) is denying the requests as You mention that this also occurs on the Noticeboards and displays “refresh errors.” The noticeboards operate differently that other pages; when they lose connection they wait for 10 seconds then try and refresh the whole page (see code). If you are getting errors when simply refreshing the page then this is an entirely different issue. If you are getting errors when the page refreshes, diagnose these errors first. Previously, the following recommendations were made:
Here are some additional things to try:
Please make sure you’ve considered ALL (9) of these diagnostic suggestions. If you are still experiencing issues after providing results from the each of the above suggestions we might be able to organise a TeamViewer session and do some remote diagnostics. |
Gary, Sorry for the delay. I have gone through all trouble shooting steps now and can give you the following results.
|
This issue is stale. |
Randomly getting a popup error in browser with the following message. Have tried different browsers and computers.
The text was updated successfully, but these errors were encountered: