Automatic Upgrade Fails

Ask your questions regarding TimeTrex installation here.
Post Reply
bgrorud
Posts: 6
Joined: Thu Mar 31, 2016 12:20 pm

Automatic Upgrade Fails

Post by bgrorud »

The past 2 upgrades, the automatic upgrade has failed. Examining the log files, I find the following relative lines -


DEBUG [L0396] [16235ms] Array: [Function](): File Upgrade URL:
string(87) "http://www.timetrex.com/direct_download ... taller.zip"
DEBUG [L0401] [16375ms]: [Function](): Got File Upgrade URL and size, breaking retry loop...0
DEBUG [L0419] [21719ms]: [Function](): Downloaded file: C:\TimeTrex\cache\UPGRADE.ZIP Size: 0 Bytes downloaded: Remote Size: 18472529
DEBUG [L0421] [21719ms]: [Function](): ERROR: File did not download correctly...
DEBUG [L0543] [21719ms]: [Function](): ERROR: UPGRADE.ZIP does not exist or is 0 bytes...
DEBUG [L0051] [21719ms] Array: SystemSettingFactory::isUniqueName(): Unique Name: auto_upgrade_failed
string(2) "13"
DEBUG [L0184] [21719ms]: SystemSettingFactory::setSystemSetting(): Key: auto_upgrade_failed Value: 1 isNew: 0


I am unsure how to proceed from here. If I update manually, it works. I copy and pasted the url and the download works. Any advice would be greatly appreciated.

-Brad
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Automatic Upgrade Fails

Post by shaunw »

Do you have any kind of firewall, proxy, or virus scanning software that may be blocking or intercepting the download process?
bgrorud
Posts: 6
Joined: Thu Mar 31, 2016 12:20 pm

Re: Automatic Upgrade Fails

Post by bgrorud »

It appears to just be an http download on port 80, and that is completely open. I copy and pasted the link "http://www.timetrex.com/direct_download ... taller.zip" into a web browser on that exact server, and the download completed successfully.

I could try investigating this further, if you think that is the likely scenario, but it doesn't appear so from what I can tell.

I thought it was odd, that the debug log shows the file being downloaded named - "TimeTrex_Community_Edition-manual-installer.zip", but the error references a file by the name of "UPGRADE.ZIP". (see debug log in original post)

-Brad
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Automatic Upgrade Fails

Post by shaunw »

The automated upgrade just renames whatever file it downloads to UPGRADE.ZIP, so that is normal.

I would try using curl or wget to see if you can download that file from the server itself on the command line. Its possible it could be a permission issue as well, if C:\TimeTrex\cache\UPGRADE.ZIP already exists and is not writable.
bgrorud
Posts: 6
Joined: Thu Mar 31, 2016 12:20 pm

Re: Automatic Upgrade Fails

Post by bgrorud »

Just in case others run into this, I believe I found the problem. The server running this was a Windows server and Internet Explorer Enhanced Security Configuration was set to on (IE ESC=On). I have turned it off and we shall see when the next new version is released.

-Brad
Post Reply