CuriosAI / sai

SAI: a fork of Leela Zero with variable komi.
GNU General Public License v3.0
103 stars 11 forks source link

http://sai.unich.it/submit-match 404 error #102

Open Cabu opened 4 years ago

Cabu commented 4 years ago

When the client try to access http://sai.unich.it/submit-match it receive a 404. I don't think it is normal :(

amato-gianluca commented 4 years ago

It isn't, but is this still happening?

Note that going to http://sai.unich.it/submit-match with he web browser and obtaining the 404 error IS normal.

--gianluca amato

On Sat, Jan 18, 2020 at 7:25 PM Cabu notifications@github.com wrote:

When the client try to access http://sai.unich.it/submit-match it receive a 404. I don't think it is normal :(

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sai-dev/sai/issues/102?email_source=notifications&email_token=AAGUR3HEMB3H3JCI3GTGPBLQ6NCRBA5CNFSM4KIUNXXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IHD4GPQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGUR3F3I5E3ABQQZHGIV3LQ6NCRBANCNFSM4KIUNXXA .

Cabu commented 4 years ago

I have an error 22 for each match autogp try to send with curl. That's why i have tried to access the url with my browser... image

amato-gianluca commented 4 years ago

SAI is regularly receiving new games, therefore it must be something related to your account. A couple of questions:

1) which version of SAI are you using? 2) does it used to work for you in the past?

--gianluca

On Sun, Jan 19, 2020 at 5:08 PM Cabu notifications@github.com wrote:

I have an error 22 for each match autogp try to send throug curl. That's why i have tried to access the url with my browser...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sai-dev/sai/issues/102?email_source=notifications&email_token=AAGUR3EJQ3JUHERIX2FKON3Q6R3GNA5CNFSM4KIUNXXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKV2LQ#issuecomment-576019758, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGUR3BI6JXWPSFUGR5QRADQ6R3GNANCNFSM4KIUNXXA .

Cabu commented 4 years ago

1) I use sai-0.17.5-gpu since I have started contributing around 10 days ago 2) It should have worked because It has played and registered 7714 games until now under the name Kabu

From curl documentation an error 22 CURLE_HTTP_RETURNED_ERROR (22) is when the HTTP server returns an error code that is >= 400.

When I do a curl.exe http://sai.unich.it/get-task/0, I receive: {"cmd":"selfplay","hash":"ae9ceeec4f141bf1dd077b42c849c9ef5bcd3705fc9d53940255000007ceee8e","required_client_version":"16","minimum_autogtp_version":"16","random_seed":"8352012539460419828","minimum_leelaz_version":"0.15","options_hash":"b9d280","options":{"playouts":"0","visits":"3500","resignation_percent":"5","noise":"true","randomcnt":"30","komi":"7","noise_value":"0.03","lambda":"0.1","other_options":"--nrsymm --restrict_tt --adv_features --chainlibs_feat --chainsize_feat --blunderthr 0.05 --randomtemp 1.0 --policy_temp 1.2 --recordvisits","dumbpass":"false"},"hash_gzip_hash":"d922a4a6ae603aa2d3a7bf4fdf1890df3ee70c5a856cbad7a2b36ec772c80440"}

But When I do it with my login and password (curl.exe http://sai.unich.it/get-task/0 -F username=Kabu -F password=xxxxxx) I receive: Invalid authentication

Vandertic commented 4 years ago

You should pass the hashed password when using curl directly. Instead you should give the bare password when using autogtp.

This said, I don't know what your problem could be, apart from having a wrong password.

You can create another username with the same e-mail if you want, or maybe @amato-gianluca can reset your password in some way?

Cabu commented 4 years ago

I am sure the login/password are correct because they are stored in the batch file I used before making sai.hta work on my computer, the sai.cfg used by sai.hta and my password manager and they all match.

But I have nonetheless created a new account and I still get the same error.

Cabu commented 4 years ago

I deleted the file curl_save5c32d27f869a4c53b0efd039ae50b11c.bin and everything is back to normal.

amato-gianluca commented 4 years ago

Good to know! Thanks for reporting your problem.

On Thu, Jan 23, 2020 at 11:07 AM Cabu notifications@github.com wrote:

I deleted the file curl_save5c32d27f869a4c53b0efd039ae50b11c.bin and everything is back to normal.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sai-dev/sai/issues/102?email_source=notifications&email_token=AAGUR3DN65UZJJFGGL5NI7DQ7FT7VA5CNFSM4KIUNXXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJW2XUY#issuecomment-577612755, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGUR3C26E7BUVSQOFCZOK3Q7FT7VANCNFSM4KIUNXXA .

Cabu commented 4 years ago

I got the same problem again. Deleting the temporary curl file resolved it. I don't have a way to reproduce the problem :(

nanzi commented 4 years ago

I guess 10 days before you met this issue, you had saved a match game and quit. 10 days later, the match sgf file was always rejected by the server, since match game would be 60/50 full. The server strategy is this: if a client request a match, but could not upload in time, the server will rearrange a new client to do a match. Sometimes I found a match game will be saved even I closed the console directly,not with a 'q' input.

egri-nagy commented 4 years ago

I have exactly the same problem now. I will check whether removing temporary files could help or not.

egri-nagy commented 4 years ago

Yes, removing the temporary files solves the problem, but I lost around 15 match games. I will watch closely how this happens.