magicbug / Cloudlog

Web based amateur radio logging application built using PHP & MySQL supports general station logging tasks from HF to Microwave with supporting applications to support CAT control.
http://www.cloudlog.co.uk
MIT License
465 stars 192 forks source link

Lotw synchronization issue #3029

Closed vitalijsl closed 6 months ago

vitalijsl commented 8 months ago

I have set up Lotw connection in Cloudlog and no errors are shown either in "Logbook of the Worl" page or in Cloudlog's "Debug information" page: Screenshot of "Logbook of the World" section in Cloudlog

When pressing "Manual Sync", nothing happens. Even no error or info message.

After enabling logging, I see the following output whenever manual sync is initialized: ERROR - 2024-03-25 17:49:20 --> Severity: Error --> Maximum execution time of 30 seconds exceeded /var/www/html/application/controllers/Lotw.php 965

I must mention that I have uploaded into Cloudlog quite a big ADIF file of >6000 entries. May it be the reason why the process times out? If so, how to resolve?

magicbug commented 8 months ago

You will need to increase the maximum execution time so that its more than 30seconds

This is the max_execution_time in the php.ini settings on the server.

vitalijsl commented 8 months ago

@magicbug Thank you for advice, I will try that. It's not a bug, but you must agree that it could have shown something. At least that the process times out.

f4cib commented 8 months ago

Same issue there after recovering whole LoTW QSO from ADIF. Most QSO are not flag as LoTW sent so I assume the script needs a looong time to execute. (>40k QSO) After modifying php.ini execution to 300, and even larger looks like it still takes into account the 30s. Was able to get a verbose by typing whole adress on my explorer i.e. : https://my_cloudlog_adress.com/index.php/lotw/lotw_upload Fatal error/var/www/html/my_cloudlog_adress.com/public_html/application/controllers/Lotw.php960 A PHP Error was encountered Severity: Error

Message: Maximum execution time of 30 seconds exceeded Filename: controllers/Lotw.php Line Number: 960

Edit: I had several php.ini in my config and the first one i've edited was the one pointed out by a php -i | grep php.ini After having edited the one in my apache2 folder i was able to execute the script. However, it did not worked by clicking on the Manual sync button, I had to type the above script adress to execute it And finally was able to get back a: F4CIB (Home QTH) No QSOs to Upload (but on Dashboard it displays 38291 QSO sent today !) Ouf ! :)