#[Resolved] Fixed issues with composer and fixed large database problems.(This should be a tutorial)
1 messages · Page 1 of 1 (latest)
i was running
COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev --optimize-autoloader
i have followed all the steps with no problem
the php-redis extension is installed
@ocean path
OK crisis averted
The redis server was not running
suggestion : put in the documentation to check if redis-server is running and if not to start it with sudo service redis-server start
yep known issue
sorry :)
@past marsh
i dont really know what is the problem
i'm not really a support person
at least if there is a support person they should have enought information to help
i hope that sapphireservers are not down ?
existing customers have full access to their servers
Mmmh because they are on ptero
but here its the store
your store is down so ?
ho yep it is
i have backup if i do not find the solution soon
maybe you would like to have a test and a production environement in the futur
so you can update and prepare on the test one
and wen ready just replace the production one by the test one :)
it would enable you tu have a better uptime
i have upgraded the test environment with success
but i had an older version of the db
hmmm
The error shows that you're trying to modify the 'pterodactyl_id' column in the users table, setting it as varchar(191) not null
The error SQLSTATE[01000]: Warning: 1265 Data truncated indicates that the data you're trying to store is too long for the column's defined length
its a strange error
since you are a company i would tell you to avoid updating
let a few month or time to cpgg to fix all issues on v1
it seams that existing data in at least one row (specifically row 138) is longer than 191 characters
in pterodactyl_id ?
tf ?
i have seen multiple issues whit username being swaped whit ptero ID
ok i will check the db manually
would be nice that you report the bugs and that we fix the issue, but in the current state of cpgg and your uptime obligation i would not try to update this early
even if all the features looks really cool :)
yup could be nice
lmao
try less ?
wait
or just try to get the problematic row :
SELECT id, pterodactyl_id, CHAR_LENGTH(pterodactyl_id) as length
FROM users
WHERE id = 138;
me too
i'm not very good whit SQL query
but i dont see the problem here
do you have tools such as php my admin ?
ok i just saw the user
the account is a complete zombie
i cant find his email in the pterodactyl dash
the account was logged in for 0 seconds lmao
i guess... if the account is inactive and causing problem delete it
and all the NULLS should be his pterodactyl id and other info
how did this happened lmao
strange
i dont known xD
1 way to find out
you have a backup of the database before ?
and i also have a backup
okay
i also have a snapshot of the server incase something goes super wrong
okay
i will see all users that have ptero id NULL
SELECT id, name, email, pterodactyl_id
FROM users
WHERE pterodactyl_id IS NULL;
i mean... 35k users
avoid posting picture here even if you hide important info since some software can bypass censor on picture
and everyting is public
anyway
thats strange
even a black picture ?
yeah
ok
wen your sensoring, some software only tint it and do not fully replace the pixel
anyway
i dont really have a solution to your problem
what i would recommand is to wait for a more advanced member
and wait that cpgg fix all issues :)
it might take some month to find and fix everything
this is probably my issue with user managment
your issue ?
i dont known how that work
i guess it is similar to how the panel gets the server id from ptero
and i have encountered times when a "zombie" server with no id is made
it existed in cpgg but not in ptero
lmao that was totally the issue
the users where the issues ?
yes
zombie
users
ok now it is fixed
and my db is in a normal state again
2 in 1
gg
i would like to known how they apeared in the first place
i will try to find out
💎 Want Premium Support and a Shiny Role in Discord? Join our supporters on ctrlpanel.gg and enjoy unique perks! 🙌 Patreon | Ko-fi | GitHub Sponsors
i am
lol [i know it is a bot (i am stupid) ]
thanks :D we will also look into it
[Resolved] Fixed issues with composer and fixed large database problems.(This should be a tutorial)
happy that we found a solutions :)
I have already realized that CtrlPanel does not work without Redis. I knew it, even though everyone was trying to convince me otherwise, lol
And I understood why everything worked in my tests
In Ubuntu Desktop 24.04, Redis Server is installed by default
That's why, even though I didn't install it, everything worked for me
TLDR ?
Redis server is required
Also my DB had Problems
My control panel is literally running without Redis right now
And updating it worked, besides the broken migration stuff, find
It's not.