dev-osrose/osIROSE-new

Login Error: MySQL

Closed this issue · 14 comments

So, I have set up the server on Linux (Ubuntu 18.04) and the issue now im presented with when, we go to log in to the server, it returns this error server-side. I've tried reinstalling and rebuilding all again, even tried a fresh machine.

[04:37:23.738.738588 -08:00] [I] [net] [0] Client connected from: 213.127.87.146
[04:37:23.772.772017 -08:00] [E] [net] Error while accessing the database: MySQL error: Could not execute MySQL-statement: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''21232f297a57a5a743894a0e4a801fc3admin' at line 1 (statement was >>SELECT accounts.id,accounts.password,accounts.access,accounts.active,accounts.online,accounts.login_count FROM accounts WHERE (((accounts.account_type='user') AND (accounts.username='')) AND (accounts.password=SHA2(CONCAT('21232f297a57a5a743894a0e4a801fc3admin
[04:37:23.908.908640 -08:00] [I] [net] Socket 0 () disconnected.

Can you try with this client? https://cdn.discordapp.com/attachments/454345032846016519/625869971284557824/sha256_client_release_fixed.zip

The client was customized to switch to SHA256 but the release links on here haven't been updated yet as far as i know. Might be the issue.

Yes, this fixed the issue, however, I'm unable to select a server after it logged in.
I see a server but I can't click it.
The OK button shows that I'm pressing it but doesn't do anything.
Know how to fix this?

Sounds like a client bug but I would need more info. Can you confirm that you're click on the "channel" and not the "server"? There should be a server name in the left box and then a channel name in the right box.

If there is a channel in the right box and you can't click the channel and press OK then this is a client bug and a screenshot or short gif would be useful.

If there is no channel in the right box and you are clicking the server in the left box then the issue is in the networking setup of your server. It would mean the login server and character server/node server are not communicating.

Can u add me on discord?
discord: LiteDev#3711
Have a general error this time.

I have a similar issue, however when I try the sha256 client i no longer get a mysql error on the server however it immediately ingame gives a general error and disconnect on server what am i doing wrong? SlipStream#1779

@One0f4K1nd Can you post the any logs from the login server window?

I get this from TestConfig.sh

[==========] Running 4 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 1 test from SetupTesting
[ RUN ] SetupTesting.TestDefault
[ OK ] SetupTesting.TestDefault (4 ms)
[----------] 1 test from SetupTesting (4 ms total)

[----------] 3 tests from Config
[ RUN ] Config.TestDefault
[ OK ] Config.TestDefault (0 ms)
[ RUN ] Config.TestDatabase
/home/adam/git/osIROSE-new/src/tests/src/test_config.cpp:18: Failure
Expected: ""
To be equal to: dbb.password
Which is: "********"
[ FAILED ] Config.TestDatabase (0 ms)
[ RUN ] Config.TestServer
[ OK ] Config.TestServer (0 ms)
[----------] 3 tests from Config (0 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 2 test cases ran. (4 ms total)
[ PASSED ] 3 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Config.TestDatabase

had to disable ufw, now i can login to the server and osirose server listed but cannot select

ok so i have the same issue as the other guy with the mysql error, the channel does not show on the right
i also cannot find the output of the logs

21:16:55.546.546649 -05:00] [I] [server] --------------------------------
[21:16:55.546.546651 -05:00] [I] [server] osIROSE 2
[21:16:55.546.546652 -05:00] [I] [server] http://forum.dev-osrose.com/
[21:16:55.546.546653 -05:00] [I] [server] --------------------------------
[21:16:55.546.546664 -05:00] [I] [server] Git Branch/Tag/Revision: trunk/0.3.0/0258d33d
[21:16:55.551.551117 -05:00] [I] [server] Starting up server...
[21:16:55.551.551333 -05:00] [I] [server] --------------------------------
[21:16:55.551.551335 -05:00] [I] [server] osIROSE 2
[21:16:55.551.551336 -05:00] [I] [server] http://forum.dev-osrose.com/
[21:16:55.551.551337 -05:00] [I] [server] --------------------------------
[21:16:55.551.551345 -05:00] [I] [server] Git Branch/Tag/Revision: trunk/0.3.0/0258d33d
[21:16:55.553.553870 -05:00] [I] [server] Starting up server...
[21:16:55.554.554145 -05:00] [I] [server] --------------------------------
[21:16:55.554.554179 -05:00] [I] [server] osIROSE 2
[21:16:55.554.554206 -05:00] [I] [server] http://forum.dev-osrose.com/
[21:16:55.554.554230 -05:00] [I] [server] --------------------------------
[21:16:55.554.554259 -05:00] [I] [server] Git Branch/Tag/Revision: trunk/0.3.0/0258d33d
[21:17:00.851.851496 -05:00] [I] [net] Listening started on 127.0.0.1:29000
[21:17:00.851.851547 -05:00] [I] [net] Listening started on 127.0.0.1:29010
[21:17:01.103.103502 -05:00] [I] [net] Socket 0 is not connected, shutting down.
[21:17:02.442.442064 -05:00] [I] [net] Listening started on 127.0.0.1:29100
[21:17:02.442.442322 -05:00] [I] [net] Listening started on 127.0.0.1:29110
[21:17:03.081.081602 -05:00] [I] [net] Listening started on 127.0.0.1:29201
[21:17:03.726.726131 -05:00] [I] [net] ISC Server 0 Connected: [CHAR, osIROSE, 127.0.0.1:29100]

[21:17:03.726.726519 -05:00] [I] [net] Server connected from: 127.0.0.1
[21:17:04.600.600758 -05:00] [I] [net] Listening started on 127.0.0.1:29202
[21:17:05.780.780734 -05:00] [I] [net] Listening started on 127.0.0.1:29203
[21:17:07.195.195444 -05:00] [I] [net] Listening started on 127.0.0.1:29205
[21:17:08.448.448722 -05:00] [I] [net] Listening started on 127.0.0.1:29206
[21:17:10.058.058301 -05:00] [I] [net] Listening started on 127.0.0.1:29208
[21:17:11.311.311315 -05:00] [I] [net] Listening started on 127.0.0.1:29209
[21:17:12.926.926354 -05:00] [I] [net] Listening started on 127.0.0.1:29211
[21:17:14.691.691127 -05:00] [I] [net] Listening started on 127.0.0.1:29215
[21:17:16.363.363639 -05:00] [I] [net] Listening started on 127.0.0.1:29216
[21:17:18.245.245685 -05:00] [I] [net] Listening started on 127.0.0.1:29217
[21:17:20.110.110102 -05:00] [I] [net] Listening started on 127.0.0.1:29220
[21:17:21.586.586901 -05:00] [I] [net] Listening started on 127.0.0.1:29221
[21:17:23.325.325653 -05:00] [I] [net] Listening started on 127.0.0.1:29222
[21:17:24.781.781022 -05:00] [I] [net] Listening started on 127.0.0.1:29223
[21:17:26.391.391875 -05:00] [I] [net] Listening started on 127.0.0.1:29224
[21:17:27.762.762914 -05:00] [I] [net] Listening started on 127.0.0.1:29225
[21:17:29.406.406240 -05:00] [I] [net] Listening started on 127.0.0.1:29226
[21:17:31.276.276800 -05:00] [I] [net] Listening started on 127.0.0.1:29227
[21:17:33.233.233677 -05:00] [I] [net] Listening started on 127.0.0.1:29228
[21:17:35.037.037763 -05:00] [I] [net] Listening started on 127.0.0.1:29231
[21:17:36.547.547083 -05:00] [I] [net] Listening started on 127.0.0.1:29232
[21:17:38.185.185204 -05:00] [I] [net] Listening started on 127.0.0.1:29233
[21:17:39.823.823755 -05:00] [I] [net] Listening started on 127.0.0.1:29237
[21:17:41.621.621578 -05:00] [I] [net] Listening started on 127.0.0.1:29251
[21:17:43.796.796653 -05:00] [I] [net] Listening started on 127.0.0.1:29252
[21:17:44.481.481711 -05:00] [I] [net] [0] Client connected from: 127.0.0.1
[21:17:45.889.889736 -05:00] [I] [net] Listening started on 127.0.0.1:29253
[21:17:47.636.636964 -05:00] [I] [net] Listening started on 127.0.0.1:29254
[21:17:49.588.588584 -05:00] [I] [net] Listening started on 127.0.0.1:29255
[21:17:51.368.368037 -05:00] [I] [net] Listening started on 127.0.0.1:29256
[21:17:53.004.004742 -05:00] [I] [net] Listening started on 127.0.0.1:29257
[21:17:54.845.845786 -05:00] [I] [net] Listening started on 127.0.0.1:29259
[21:17:56.733.733490 -05:00] [I] [net] Listening started on 127.0.0.1:29261
[21:17:57.537.537903 -05:00] [I] [net] Socket 0 (admin) disconnected.
[21:17:58.419.419967 -05:00] [I] [net] Listening started on 127.0.0.1:29262
[21:17:59.733.733851 -05:00] [W] [server] EntitySystem::create_mob unable to get mob data for 411
[21:18:00.226.226333 -05:00] [I] [net] Listening started on 127.0.0.1:29263

Can you post logs from the login server/char server/world server. It should print to stdout.

EDIT Are you running them all from one script? Looks like the output is overwriting eachother

ok i will run seperately

that was the issue, i have to wait a few seconds in between each startup in sequence then the Athena channel came online, thanks and sorry to bother you, I'm able to login now.

No problem, glad it's working now.