Page 1 of 1

Slow message processing

Posted: Fri Aug 19, 2022 8:45 am
by parsonspr
Hi,

when sending requests it sits on Processing for a long time.

I have attached the logfile. Do you need anything else?

thanks,
Phil
timetrex.log
(543.05 KiB) Downloaded 324 times

Re: Slow message processing

Posted: Mon Aug 22, 2022 9:18 am
by shaunw
Your TimeTrex is unable to communicate with the update/notification server at https://www.timetrex.com, so it eventually gives up after 15 seconds or so and continues. You should make sure your TimeTrex server is able to communicate freely with www.timetrex.com to avoid such issues.

Re: Slow message processing

Posted: Wed Aug 24, 2022 1:55 am
by parsonspr
Thanks for this. Do you have a privacy policy that states exactly what information is being passed to timetrex.com? I was under the impression that if we hosted it locally that no information would need to be passed out of the network.

Re: Slow message processing

Posted: Wed Aug 24, 2022 8:12 am
by shaunw
You can find our privacy policy here: https://www.timetrex.com/terms

In terms of notifications themselves, the information simply gets passed through our servers to the necessary notification services (ie: Google, Apple, Mozzila [Firefox]). This prevents the need for every installation of TimeTrex to also require their own accounts and credentials to all those services directly. Either way though, for notifications to function at all, at least one third party will always be involved.

Your other option is to turn off all notifications within TimeTrex, which would also prevent the slowdowns you see when outgoing connections are blocked.

You could also block connections in a more efficient way as to result in an immediate connection error rather than hang open waiting for a timeout to occur.

Re: Slow message processing

Posted: Thu Aug 25, 2022 6:17 am
by parsonspr
Thanks for that.

Is it a particular part of the notification that needs to go to timetrex.com? I was under the impression that I'd set up email notifications to relay via our location exchange server:

[mail]
; Least setup, deliver email through TimeTrex's email relay via SOAP (HTTP port 80/443)
; Deliver email through remote SMTP server with the following settings.
delivery_method = smtp
; smtp_host=smtp.gmail.com
; smtp_port=587
; smtp_username=timetrex@gmail.com
; smtp_password=testpass123
; The domain that emails will be sent from, do not include the "@" or anything before it.
; *ONLY* specify this if "delivery_method" above is "smtp" or "mail"
email_domain = server01.wls.uk
; email_domain = mydomain.com
; The local part of the email address that emails will be sent from, do not include the "@" or anything after it.
; *ONLY* specify this if "delivery_method" above is "smtp"
email_local_part = timetrex
; email_local_part = DoNotReply
smtp_host = server01.wls.uk

Re: Slow message processing

Posted: Thu Aug 25, 2022 8:22 am
by shaunw
Notifications are real-time notifications sent to web-browsers and the mobile app. Not only do they allow for real-time notifications (such as when a message is received, a request is sent, an exception occurs, etc...) they also allow features like task queue handling and real-time data updates within the web UI. Over time they will be used more and more to make the web UI more interactive.

They are completely separate from emails, though some notifications may send emails too.

Re: Slow message processing

Posted: Thu Aug 25, 2022 8:50 am
by parsonspr
I have turned off the notifications other than email, but still appear to be getting a delay:
ttnotifications.PNG
timetrex.log
(26.61 KiB) Downloaded 310 times
does this still look like it's having issues contacting timetrex.com? should it be if I've sent the notification preferences? or are the notification preferences user specific?

thanks again,
Phil

Re: Slow message processing

Posted: Thu Aug 25, 2022 10:23 am
by shaunw
Logging isn't enabled on your system currently. If you go to Help -> About, click the more (three dot) icon at the top right, then click "Diagnostics: Enable", that will enable it, then replicate the slow operation then send the log again.

Re: Slow message processing

Posted: Tue Aug 30, 2022 3:29 am
by parsonspr
thanks, I have attached the log.
timetrex.log
(1.84 MiB) Downloaded 330 times

Re: Slow message processing

Posted: Tue Aug 30, 2022 9:36 am
by shaunw
According to the log, TimeTrex is still attempting to send push notifications to the registered devices and since those are being blocked, they are causing slow downs. You will need to ensure you have disabled push notifications in the preferences of every employee to avoid this, as sending requests can notify any/all of the superiors and authorizing requests can notify the employee.

Re: Slow message processing

Posted: Wed Aug 31, 2022 1:16 am
by parsonspr
Thank you. Can this be done from the administrator account? Or does each user need to do this individually?

Re: Slow message processing

Posted: Wed Aug 31, 2022 2:24 am
by parsonspr
actually I've found where to set it.

thanks for your help.