Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot sign into account after updating from 2.1 to 2.2 #1092

Open
RealMysticalMan opened this issue Feb 25, 2024 · 32 comments
Open

Cannot sign into account after updating from 2.1 to 2.2 #1092

RealMysticalMan opened this issue Feb 25, 2024 · 32 comments

Comments

@RealMysticalMan
Copy link

RealMysticalMan commented Feb 25, 2024

After I applied the 20-12-2023 sql in pma and pasted the necessary 2.2 php's into the httpdocs folder through FTP, I used HxD to replace the regular Geometry Dash 2.2 hex urls with my gdps url. The problem is, I cannot sign into my account. I can view account's data and load levels, but I cannot sign into my own account even with the correct password. Nobody shows up on the leaderboards either. All the levels load correctly and all other information loads just fine, I have no clue what could be causing this problem.

@MegaSa1nt
Copy link
Contributor

Try regenerating gjp2

@RealMysticalMan
Copy link
Author

RealMysticalMan commented Feb 25, 2024

I did that and it still didn't let me log in and didn't fix the issues. Other people also have the same problem in the same GDPS made by me, not able to log in to account and all progress including created levels gets deleted when you exit the game as an unregistered user. Daily chests also don't work. I think it would have to be something on the server's end causing this but I don't know what it could be.

@RealMysticalMan
Copy link
Author

Anything else I can do to fix? By the way, the problem is the same for the mobile and PC.

@VoomiTo421
Copy link

I have the same problem too.. I did fixed it on pc by creating a new account with the password you want, copying the hashed code from the password and the gjp2 column of the new account to the account you want to connect to. Then once it's done, normally in the game you can now connect to your account with the "new" password and it'll work. To me it said "Account disabled" and I somehow fixed it don't know really how but it worked on pc (mobile Idk).

@VoomiTo421
Copy link

Try regenerating gjp2

And how do you regenerate gjp2 ? What is the gjp2 column mean really ?

@MegaSa1nt
Copy link
Contributor

And how do you regenerate gjp2 ? What is the gjp2 column mean really ?

GJP2 is XOR encrypted password, you can generate it by trying to activate your account in tools page (set GJP2 to null first if not)

@VoomiTo421
Copy link

And how do you regenerate gjp2 ? What is the gjp2 column mean really ?

GJP2 is XOR encrypted password, you can generate it by trying to activate your account in tools page (set GJP2 to null first if not)

I went to the server tools, then "activate account.php", but when I put the account username correctly and the password 12345677 ($2y$10$Qbpn4X9.8st6cOCkyu14juA7rNkzYDjBz1/rOqWuvNBcR8bmseHD2) it tells me "Invalid password or nonexistant account. Try again"

@VoomiTo421
Copy link

It's a little bit annoying because my friends can't save/load their account since they can't even login because "account disabled"...

@MegaSa1nt
Copy link
Contributor

It's a little bit annoying because my friends can't save/load their account since they can't even login because "account disabled"...

It means they tried to login too many times

@VoomiTo421
Copy link

It's a little bit annoying because my friends can't save/load their account since they can't even login because "account disabled"...

It means they tried to login too many times

And it does fix after like a certain amount of time ?

@MegaSa1nt
Copy link
Contributor

And it does fix after like a certain amount of time ?

Yes, wait 1-2 hours

@RealMysticalMan
Copy link
Author

Sorry for a late reply but you can sign into a brand new account, but if you log out and try signing back in again, it doesn't work. And you cannot log in to existing accounts.

@VoomiTo421
Copy link

And it does fix after like a certain amount of time ?

Yes, wait 1-2 hours

I did put the new password 12345677 ("$2y$10$Qbpn4X9.8st6cOCkyu14juA7rNkzYDjBz1/rOqWuvNBcR8bmseHD2") and set gjp2 null on the same account, then I went to the activate account tools and it Worked ! I succesfully connected to the account.

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

@VoomiTo421
Copy link

And it does fix after like a certain amount of time ?

Yes, wait 1-2 hours

In the CVOLTON github thing, in the folder "data" there is this file named ".htaccess" but the file has only inside "Deny from all" and the description says "new account save data system". So do I need to modify that line of code from "deny from all" to "accept from all" ?

@MegaSa1nt
Copy link
Contributor

In the CVOLTON github thing, in the folder "data" there is this file named ".htaccess" but the file has only inside "Deny from all" and the description says "new account save data system". So do I need to modify that line of code from "deny from all" to "accept from all" ?

No, don't touch it.

@MegaSa1nt
Copy link
Contributor

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

Set 777 permissions recursively to data folder

@VoomiTo421
Copy link

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

Set 777 permissions recursively to data folder

Done ! But to me it still says "Backup failed. Please try again later. Save size is within limits." and to my friend it still says ""Backup failed. Please try again later."

@VoomiTo421
Copy link

My CCGameManager.dat, CCGameManager2.dat, CCLocalLevels.dat and CCLocalLevels2.dat size combined are no more than 6Mo. The save size limit I guess it's like 50Mb or 128Mb ?

@VoomiTo421
Copy link

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

Set 777 permissions recursively to data folder

Is it recommended to set 777 permissions to all folders ? And could it be that we cant save our accounts because there are still some .phps from the 2.1 gdps ? Basically everything works in the 2.2 gdps but not the accounts save system...

@MegaSa1nt
Copy link
Contributor

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

Set 777 permissions recursively to data folder

Is it recommended to set 777 permissions to all folders ? And could it be that we cant save our accounts because there are still some .phps from the 2.1 gdps ? Basically everything works in the 2.2 gdps but not the accounts save system...

try to update everything

@VoomiTo421
Copy link

The problem is that we can't save and not even load our previous saves.. "Sync failed, please try again later"

Set 777 permissions recursively to data folder

Is it recommended to set 777 permissions to all folders ? And could it be that we cant save our accounts because there are still some .phps from the 2.1 gdps ? Basically everything works in the 2.2 gdps but not the accounts save system...

try to update everything

Done but it still don't work.. same error message ("Backup Failed. Please try again later. Save size within limits.")

@VoomiTo421
Copy link

Currently looking in the logs and I saw this after saving 3 times in a row with that error. Looking in the files now to see.
image

@VoomiTo421
Copy link

Currently looking in the logs and I saw this after saving 3 times in a row with that error. Looking in the files now to see. image

I changed a thing in the line 9 of connection.php, now it doesn't shows any error but still doesn't work (can't save, "backup failed. please try again later. sive size is within limits")

@VoomiTo421
Copy link

It still says some errors on getGJLevels.php when I save, same as the picture above, but when I complete a platformer level which is not rated this happens :
image
Error on StarsCount and Platformer count ?

@VoomiTo421
Copy link

@MegaSa1nt Sorry to disturb you, do you know somethings I could try to change to get the save system work ? Like maybe change a setting in a .php ? Or change other things about the server, the user ? Or other possible solutions you got under your hands ?

@VoomiTo421
Copy link

https://stackoverflow.com/questions/63301495/pdoexception-packets-out-of-order-expected-0-received-1-packet-size-23/65040732#65040732 try this

Didn't work either.. Before update we didn't have any problems, but after the 2.2 update we can't save and load data.. We don't understand why it doesn't work for us.

@VoomiTo421
Copy link

VoomiTo421 commented May 20, 2024

Php is on 8.1.2, the max_allowed_paquet is on 4096M. And the error is still the same . My Data files are like 6Mb and even with a fresh account we can't save.
image

@VoomiTo421
Copy link

@MegaSa1nt We re-re-reupdated the server, imported all sql etc all in Readme.md done correctly.

But still the save don't work .....

Only errors ON SAVING are these :
"PHP Warning: Undefined variable $starsCount in /var/www/html/s3/incl/scores/updateGJUserScore.php on line 100
PHP Warning: Undefined variable $platformerCount in /var/www/html/s3/incl/scores/updateGJUserScore.php on line 100"

The cron tool seems to not work too "Please Wait...",
Gauntlets don't load too...

@MegaSa1nt
Copy link
Contributor

Try using my core: https://github.com/MegaSa1nt/GMDprivateServer

@VoomiTo421
Copy link

Try using my core: https://github.com/MegaSa1nt/GMDprivateServer

Do we have to change the sql by yours ? Or we keep the new ones and yours ?

@yannordi
Copy link

fix for me was to change in incl/misc/getAccountURL.php :
this

<?php
if((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443) $https = 'https';
else $https = 'http';
echo dirname($https."://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]");
?>

by this :

<?php
$url = (isset($_SERVER['HTTPS'])) . "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
echo dirname($url);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants