Forum > Pazaak Cantina Online: Login not possible

naerian
Joined: Dec 09
2011-12-01, 21:11
I try to login to my account, but it just does nothing, any idea, what's happening?

BTW, great idea with the PCO! I didn't monitor PC for some time, but it's good to see you didn't abandon it :D

If you plan on making some translations - just PM me and I'll be on my way to making Polish one ;)

DarthRevan
Joined: Nov 09
2011-12-01, 21:35
Great to see you around here again :)
I'll contact you if I decide to make translations.

If nothing happens when logging in, please turn on your browser's debugging window, reload the page and try again. The debugging window will tell us what error happens.
In Firefox, the debugging window can be shown by pressing CTRL+SHIFT+K
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-01, 21:53
Strangely, my Chrome 15 doesn't show any errors. I've also tried some basic debugging with no success.

DarthRevan
Joined: Nov 09
2011-12-02, 10:32
Does it work in other browsers for you?
Do you have any firewall that blocks access to www.pazaak.org:8080?
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-02, 16:10
Nah, tried portable Firefox 8 and still nothing happens. Also, I use standard Win7 firewall and everything seems to be okay.

I have one more thing to check, I'll report here later

naerian
Joined: Dec 09
2011-12-02, 16:14
Oh wow, just opened up developer's console in this firefox portable.
Look, what I've found:
[16:13:25.842] The connection to ws://www.pazaak.org:8080/ was interrupted while the page was loading. @ http://www.pazaak.org/game/script.js:2116

Vazir
Joined: Dec 11
2011-12-02, 22:22
I have the same message as naerian in Firefox 8. Also tried in Opera 11 and I keep getting message "You have been disconnected from the Server" while loading. Websockets enabled.

DarthRevan
Joined: Nov 09
2011-12-03, 00:33
I moved your thread as it seems to be a big issue.

Am I seeing it right, that both of you can't login as a guest too?

In line 2110/2116 the connection to the websocket server is made. When this connection cannot be established, you don't even see the login window. Do you see the login window or does the error show up at the loading page (black background)?

Perhaps it is a connection timeout. I have increased the connection timeout limit, so perhaps the error is already gone.
BTW: Firefox 8 has got the bug, that pressing the ESC key cancels any existing websocket connection.

I tested Pazaak Cantina Online today in Firefox 8.0 and Chrome 15.0.874.121. Everything is working fine here. Weird. Perhaps an installed plugin in the browser is the cause. You could also try to temporarily disable all plugins..
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-03, 01:11
I see the login prompt, but when i Click Login nothing happens. Also, extensiens doesn't seem to work.

DarthRevan
Joined: Nov 09
2011-12-03, 02:14
What happens if you click on 'Login as a guest'?
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-03, 09:26
Still nothing.

I guess it must be something with connection, I'll analyze some of your code, and maybe I'll come up withb something.

BTW, I looked into script.js and I must say, I like your coding style ;)

Vazir
Joined: Dec 11
2011-12-03, 11:01
When I'm using Opera to login prompt doesn't even show up. In Firefox there is logging window, but I can't log in as Guest, or with my account data, buttons don't work.

Vazir
Joined: Dec 11
2011-12-03, 11:02
Correction. Now it works, I can see lobby! Hurray!:D

naerian
Joined: Dec 09
2011-12-03, 11:09
Hmmm, I'll try registering a new account if it's something related to my old one.

Aurea-Sidera
Joined: Dec 11
2011-12-03, 12:16
I can't log in as well. :/
Atton Rand: "Feels like my last time on Telos."
Bao-Dur: "Crashed a shuttle that time, too?"
Atton Rand: "No, pazaak."

DarthRevan
Joined: Nov 09
2011-12-03, 19:12
Please try to login at the debug version.
There will be some alert boxes after clicking on the login button (both guest and registered user).

Please report, what these alert boxes print.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-03, 19:14
Ok, I've got these debug numbers:
1.1
1.2
1.3
3.1
3.2
3.3
1.4

naerian
Joined: Dec 09
2011-12-03, 19:15
Oh, forgot the guest numbers:
2.1
3.1
3.2
3.3
2.2

Vazir
Joined: Dec 11
2011-12-03, 19:22
I've tried that debug game and although the game works for me in Firefox I get the same debug messages as naerian. Both account-like and guest profiles. I can get to the lobby, although there aren't many people and couldn't test the match itself, since I always enter the empty lobby room. I'l check in Opera, since it doesn't work for me in that browser and post debug messages later.

Vazir
Joined: Dec 11
2011-12-03, 19:24
Ok, I can't post any debug messages in Opera, because I still get message "You have been disconnected from the server" when I try to connect to the server.

DarthRevan
Joined: Nov 09
2011-12-05, 12:51
Hm, unfortunately I cannot reproduce this problem..
I modified the debug version of the game. Please try again (with the browser's developer console enabled) and post the alert box results.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-05, 19:31
Chrome. Messages:
Before send()
After send()

No errors in the console.

Firefox: The same

DarthRevan
Joined: Nov 09
2011-12-06, 13:57
Thank you, naerian!
It seems that the javascript at the client side is working properly. Therefore I added some extra debug messages to the server.

Please try to login again and post the alert box results as well as your IP address, so that I can identify you in the server logs.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-10, 15:53
Tried to log in a moment ago.
Before send()
After send()

my ip is *.*.*.*, but please remove it from this post, after you got it.

DarthRevan
Joined: Nov 09
2011-12-11, 23:20
I found 3 times the following sequence:

New client connected: *.*.*.*
Client *.*.*.* received Handshake
Client *.*.*.* responded to Hybi10 Handshake
Client *.*.*.* sends WebSocket data
Client *.*.*.* disconnected

This means, your browser connected successfully to the server. After responding to the Hybi10 Handshake, the login request should be received. Instead, the server tries to send data to your browser. This is incorrect behavior of the server. After that, the connection is closed by a legal protocol operation.

It's very strange that the browser apparently doesn't receive the data sent by the server, because there would be an alert box that shows it. Additionally, an error message should be shown when the connection is closed..

I added some more detailed debug messages so that I can see, what data is sent by the server. Thus I would appreciate if you could test it again (please post your current IP address).
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-11, 23:25
Just tried it a second ago. Same ip.

DarthRevan
Joined: Nov 09
2011-12-12, 12:10
The data that the server tries to send is a notification about a SocketTimeoutException. It is strange that a timeout exception occurs and that the error message isn't received by the browser.

Once again, I added more debug info to the server. Please try it again.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-12, 20:12
Ok, did it again second ago.

cc88
Joined: Dec 11
2011-12-13, 23:47
I'm having a similar problem and get the same error messages when using chrome.
Using safari I can't get connection and using mozilla i get the same errors as chrome.

However I can log in and play games on my ipod touch.

If you can help fix this, the help would be appreciated.

Thanks
cc

DarthRevan
Joined: Nov 09
2011-12-14, 10:49
OK, I tracked it down to java.net.SocketInputStream.read

This function tries to read the data that your browser sends.
But after 899.971 seconds (15 minutes) the connection times out because the above function never gets data from the browser. After these 15 minutes, the server sends an timeout notification to the browser and disconnects. This is intended. But why doesn't the server receive the data the browser sends?

It is strange that the websocket handshake is no problem (browser sends handshake data to server and then server sends handshake data to browser).

Anyway, the browser should display an error message after 15 minutes.
Please open Pazaak Cantina Online and just stay on the login window without acting. After 15 minutes there should be the timeout notification message.
Then, open Pazaak Cantina Online and try to login and although if nothing happens, after 15 minutes there should be the timeout notification.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-14, 17:00
Ok, I did both things in a row

DarthRevan
Joined: Nov 09
2011-12-15, 12:46
@cc88:
Do you have the latest versions of the browsers?
Are you able to login with any browser other than safari mobile on your iPod?
The debug game always shows the messages, even if you can actually login.

@naerian:
So you did see the "You have been disconnected from the server because you were idle for 15 minutes." messages?

I looked through the server logs: Your browser sends a valid handshake and receives a valid handshake. Thus, the browser shows after the handshake the login panel.
But then, the server just doesn't receive any data. After 15 minutes the server closes the connection (intended).

Because the timeout exception is thrown at low level (native method) I think the failure is on the browser's side.

It could be, that the browser waits for more data to be sent (e.g. for efficiency). That means, the javascript has to tell the browser explicitly to flush the data immediately after sending the message. According to the WebSocket API (http://dev.w3.org/html5/websockets) it is not possible to tell the browser to flush the data..

However one can test, if data has been buffered. I added a function in the debug game which shows every 10 seconds how much data is buffered. This value should always be zero.

Please try to login again.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

naerian
Joined: Dec 09
2011-12-15, 13:03
Yes, I saw both of them.

Also, when I try to login to debug game, it shows debug amount of 0 every 10 seconds, so it's okay, I guess.

DarthRevan
Joined: Nov 09
2011-12-15, 17:22
The buffer is apparently not the problem. I have no idea what's going wrong here.. Maybe you could try to use another device (e.g. notebook or tablet or even smartphone) and test if it works with this device.

I will take the debug game offline because it has no use at the moment.

Currently I am working on Pazaak Cantina v2, which will use the same multiplayer system that is used in Pazaak Cantina Online. So you will be able to play multiplayer Pazaak games with Pazaak Cantina soon.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

cc88
Joined: Dec 11
2011-12-15, 22:57
I definitely have the latest versions of the browsers as I downloaded them specifically to try the cantina on.

I have not been able to log in on any other device than my iPod. Might try to log in at college tomorrow.

luisma_415
Joined: Apr 10
2011-12-30, 17:41
I was looking through the forum to see if I could find an answer to my question. I was able to find half of the answer in this post.

You see, my problem is that I am also getting the "You are disconnected from the server" message whenever I try to play Cantina online. From what I understand, you are working on that.

Now, a bigger problem that I have is that when I try to log into my account on the download/desktop version of the game, I get a similar message. What I do is, I hit "Use existing account" and to where I'm prompted to enter my "name" and "password" and right under, the server address is "http://www.pazaak.org/server.php".
Well, when I enter my username and my password, I get the following message: "The requested function is not available on the server".

I just thought I'd let you know about this. I don't know if anyone else has this problem, for I haven't seen this on the forums.

Any help?

DarthRevan
Joined: Nov 09
2012-01-05, 14:59
I am writing a new desktop version at the moment, which uses the same server as Pazaak Cantina Online. The old server would interfere with the new server in regards to the statistics. So I disabled the old server completely.
Until the next release, only non-online accounts are possible in Pazaak Cantina.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

Exon
Joined: Jan 12
2012-01-15, 18:31
I can't login as well :S

I enter my username and password and hit the login button but it just doesn't respond and neither does the login as guest. The register and recover your password seem to function normaly. I tried to debug but no info shows up.

Zed
Joined: Feb 12
2012-02-22, 05:44
I was having this same issue - neither Firefox nor Chrome could play the game, the debug console in Firefox was giving an error along the lines of "Connection to ws://www.pazaak.org:8080/ was interrupted while the page was loading".

I solved it by disabling the Web Shield in avast! antivirus (right-click tray icon, select 'Open avast! user interface', select 'Web Shield" under "REAL-TIME SHIELDS" and click the "Stop" button).

Unfortunately, I tried adding various combinations of "http://www.pazaak.org/*" and "ws://www.pazaak.org:8080" to the Web Shield exclusions list, with no success. Seems like the only option is indeed to stop the Web Shield entirely for the duration of your Pazaak game.

DarthRevan
Joined: Nov 09
2012-02-22, 13:04
Thank you for posting this info!
You could also try to add pazaak.org:8080 (without the www.)
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)

DarthRevan
Joined: Nov 09
2012-06-08, 23:18
I just updated the Pazaak Cantina Server. This will fix many errors when using Pazaak Cantina Online.
Details are given in the Pazaak Cantina Online Development thread.
Developer of Pazaak Cantina.
Definition: 'Love' is making a shot to the knees of a target 120 kilometers away using an Aratech sniper rifle with a tri-light scope (HK-47)