ho-dev / HattrickOrganizer

Assistant for Hattrick online football manager
https://ho-dev.github.io/HattrickOrganizer/
GNU Lesser General Public License v3.0
195 stars 79 forks source link

Error team download #735

Closed akasolace closed 3 years ago

akasolace commented 4 years ago

The database was ok with manual adding folder in %appdata%. Now two more problems cropped up (after changing to Beta r3266). While attempting download for main team: HO-P1 While attempting download for 2nd team: HO-P2

Originally posted by @KlausAH-Hattrick in https://github.com/akasolace/HO/issues/727#issuecomment-712386567

KlausAH-Hattrick commented 4 years ago

HO.zip

wsbrenk commented 4 years ago

Database contains finished matches but no matchdetails (lineup infos) of them.

akasolace commented 4 years ago

@wsbrenk If I understand correctly: 1) when downloading data, calculation of training preview is made 2) in his case match was finished but match details were not in the database and that throws an error

Now we still don't know why his database was not having match details. I guess training preview only look for information from last played game, if this is correct can't we have something like:

if ( mlt == null ) {
                            mlt = download_match_details(.....)
                        }

@wsbrenk what do you think ?

KlausAH-Hattrick commented 4 years ago

The downloading - first window - seems to complete, when I click on 'Save' then the errors come up as shown in the first two screenshots at top. Can I do sth to assist or help to resolve ?

wsbrenk commented 4 years ago

@KlausAH-Hattrick gave us his logs here

don't know why his connector logs problems while creating connection. if @KlausAH-Hattrick could give us the database of his first team we could try to debug.

@akasolace i think your idea to download match details could run into the same problems again

KlausAH-Hattrick commented 4 years ago

I have now first UNinstalled HO4 completely, also deleting the db in %appdata% (after saving a backup on external drive). Then fresh re-installed all from scratch, no problem, db directory 'HO' was created in %appdata%. I needed to authorise with HT again and after that I could also do the change as well as adding of team names in HO4 window (Database/User Administration). After that, when "downloading" the same/similar error messages came up - see picture below. Same with 2nd team, and in both cases opened HO4 as Administrator, all players were then shown on display in the window (however, after closing the mentioned error messages all time). With the 3rd team I opened HO4 NOT as Administrator, I could not get the download to work at all.

HO-P3 HO.zip

Hope this info can help somewhere, the new db I have attached as well. Any other assistance I can provide please let me know.

wsbrenk commented 4 years ago

@KlausAH-Hattrick if i started HO4 with your db folder, i could not reproduce your download problems. for me it looks like a net configuration problem. i'm not an expert on this, but could it be, that you may be suffering from a firewall or something like this?

wsbrenk commented 4 years ago

in his logs i found this: Caused by: java.net.ConnectException: Connection timed out: connect

akasolace commented 4 years ago

@wsbrenk @KlausAH-Hattrick the issue with downloading was it a one-time issue or is it recurring?

If it is recurring, do you have the same issue with a fresh install or only with the existing database?

KlausAH-Hattrick commented 4 years ago

The problem still persists, even with the fresh installation. Also I need to launch as Administrator, else the App would not work. I do not use Antivirus which could cause this, and I also have disabled the Windows Firewall. No change, problem remains. Getting really frusted now cos I cannot determine what's the problem or cause of it. Any further good tips to try ?

akasolace commented 4 years ago

@KlausAH-Hattrick so you always have the same error Caused by: java.net.ConnectException: Connection timed out: connect even on a fresh install ? Have you been succesfully using HO in the past ? If yes, do you know when your issues started? are you using HO behind a proxy ?

Also I need to launch as Administrator, else the App would not work.

What issue do you have if you don't run the app as administrator? which version of HO are you using exactly ?

KlausAH-Hattrick commented 3 years ago

All previous HO installations uninstalled, registry cleaned, fresh installation now of r3276. Firewall disabled, no proxy. Authorised 3 teams again with HT. Opened as Administrator. With 1st team only 2 error messages, after that all players and squad can be seen. 2nd team after 1st error comes NullpointerException and program closed, no players available. 3rd team lots of error messages but all players available, including squad, games and info on all other tabs. I can't figure out why 3 teams have so much different behaviour. Screenshots below, db.zip added. HO-P4 HO.zip

I'm out of ideas now.

akasolace commented 3 years ago

Authorised 3 teams again with HT.

you had to do that because you started with fresh database ?

I'm out of ideas now.

we will look into it. At the moment I am personnaly busy with other issues but this one is defintly on the list before next beta release ...

wsbrenk commented 3 years ago

LastMatchDate=2021 is OK.

KlausAH-Hattrick commented 3 years ago

Really appreciate your help. Wouldn't know what to do next to troubleshoot, as I'm not a programmer. So have to trust your advice. Just tell me what to do next or what I can do to help finding out.

KlausAH-Hattrick commented 3 years ago

Here some Logs from HO3 before. HO3 Logs.zip

wsbrenk commented 3 years ago

Was August 28th the date when download didn't succeed the first time? This log is extemly short. Do you remember anything that could have changed then?

akasolace commented 3 years ago

@wsbrenk have you try yourself with his DB? Are the downloads succesfull or do you have the same issue?

KlausAH-Hattrick commented 3 years ago

HO4-2710.zip Just tried again, now I get Nullpoint Exception with 1st team, the others download players but with several errors. Everytime things are different.

wsbrenk commented 3 years ago

@akasolace @KlausAH-Hattrick could download match details without any problems

data from october 22th:

image

KlausAH-Hattrick commented 3 years ago

Was there anything or any error in the datalogs that could point to a particular issue ?

wsbrenk commented 3 years ago

@KlausAH-Hattrick the logs were clean. everything was working as expected.

akasolace commented 3 years ago

@wsbrenk so it means it is a connexion issue from @KlausAH-Hattrick side?

KlausAH-Hattrick commented 3 years ago

If it works on your side sure the logs have no error. I mean was there was any error in the logs that could point to the problem in the db when I sent/uploaded - from the unsuccessful tries I had.

akasolace commented 3 years ago

@KlausAH-Hattrick are you using HO on your personal or on a corporate pc? Are you sure you are not behind a proxy/firewall? Have you installed or changed an antivirus program? Could you use HO! on a different PC ?

[Update]

I looked at previous ticket, and similar ticket was opened in June 2019 and it was because of an antivirus

Lol, I found that out when my data base for my anti virus software was not updating, so i went through all the process of reaching out to them and reinstalling it with the new version (which i wondered why it didn't do it automatically) but first thing after that was to try HO and it worked!

Could you try to run program like HT-history (https://github.com/manuelbarbe/ht-history/blob/master/HtHistory.Releases/HtHistory_0.1.24.msi) see if the connexion can be made?

KlausAH-Hattrick commented 3 years ago

Using personal PC, no Firewall (have disabled Firewall and tried to run, same result with problems), no proxy, no antivirus programm (except for IO-Bit Malwarefighter). The program HT-History downloaded, installed, authorised and run - no problem. I can see all Tabs, means Players, Match Archive and Transfers. Absolutely problemfree and easy. Next ? .... :)

akasolace commented 3 years ago

if you could download data with HT-history it rules out proxy/firewall issue.

@wsbrenk could download new data using your existing db, so it means your HO db is fine and that your authorization token is valid.

So could you try to run HO! without IO-Bit Malwarefighter ? because except an antivirus block I don't see what else could be the cause.

akasolace commented 3 years ago

@KlausAH-Hattrick also did you try with portable version ? Do you have the same result ?

KlausAH-Hattrick commented 3 years ago

Disabled Windows Firewall, uninstalled IO-Bit Malware Fighter, uninstalled small programs of past two months, installed the HO4-Portable version - results are the same as before with permanent error messages.

wsbrenk commented 3 years ago

@akasolace i remember that @KlausAH-Hattrick is running Windows 8.1 (see his logs). could it be, that openjdk14.01 has problems with such an old windows version?

akasolace commented 3 years ago

@KlausAH-Hattrick are you running the portable version with the embedded JDK ?

KlausAH-Hattrick commented 3 years ago

That's the one I used for installation: HO-4.0.1.3266-portable-win-BETA-JRE

akasolace commented 3 years ago

@KlausAH-Hattrick

Just tried again, open your db and click download: I had no issue

image

we can't reproduce the bug so it is complicated to go further. As it works for me it means your token is valid, your db is not corrupted and HO! is working. It has to do with your system config but we can't tell what it is. Somewhere somehow your system is blocking HO! from accessing internet.