-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
error - Server Error in Diagnotics section after migration 4.4.0 to 4.6.0 #1514
Comments
Your first errors from the logs (about Now, regarding the errors about duplicate entry
In principle, we have code in place that should transparently deal with duplicate entries like that, but that code has recently been refactored and perhaps a bug managed to creep in... |
I confirm the second issue (with duplicate entries). @nagmat84, it appears that in the |
Thank you so much! I made a big clean up and turned force_32bit_ids to 0 (don't know why it was on 1) all is working fine an smooth know. Big thanks to you again. |
Reopening as there is a bug that we need to fix for 32-bit PHP users, but I'm glad that it doesn't affect you. |
huho... I've uploaded 200 photos without problem and now even a single photo crash with this error while importing from server
EDIT: Manual import do the same error |
I am on it.
Is this just a vague thought or or a substantiated analysis? I stepped through the code (not in the debugger yet) and deep down |
I have a fix in place. The problem was not the type of exception, but a change from integer values to string values for error codes. Could anybody, please, please, please tell the Laravel guys that PHP supports type annotation for some years now and that type safety is a good thing. 🤬 |
Hello again I still have to set force_32bit_ids to 1 otherwise I have this error My PHP is 64bits |
The question is what is your MySQL? The error ("numeric value out of range") indicates that your PHP version is 64 bit (otherwise it wouldn't be able to create that huge numbers in the first place) but that MySQL is only 32bit and thus cannot handle the 64bit values which PHP is throwing at it. This is also the reason why you need to set |
SHOW VARIABLES LIKE "%version%"; return : in_predicate_conversion_threshold | 1000 So 64 bit everywhere no? |
Looks like it indeed. Is this is a shared hosting setup? We've seen some weird issues like this in such environments. Anyway, what's the output of:
Is the type |
Very weird that it worked for you yesterday and you were able to upload 200 photos but now it just fails... Has anything changed in the meantime? |
Yes, it's really weird, and yes it's a shared hosting environment so I don't control parameters. bigint is unsigned :( : legacy_id | bigint(20) unsigned | NO | UNI | NULL | Can I change do something or I stay with force_32bit_ids? Thanks |
That looks fine and the width of the column (20) is also correct. I am running out of idea here. Just another wild guess: Does your PHP process communicate with the MySQL daemon correctly or are there other things in between like a load balancer, DB proxy etc., pp? Is PHP and the MySQL daemon running in different Docker images, VMs etc. or do they share the same execution environment? Could there anything in between which might be unable to handle 64bit? I have never heard about anybody using such things for real, but who knows.
Unless we find out what is having problems with 64bit integers, there isn't much you can change. And even if we would find out I doubt that you could do much about it as your are on a shared hoster . I would recommend to stay with The setting is only relevant for generating the legacy IDs which have been used by Lychee 4.4.x and below. They are not used anymore. We only have kept generating them in case if there was a fundamental problem with 4.5 and we had to ask users to migrate down from 4.5 to 4.4.x again. We decided to keep generating these IDs for about a year which will end spring next year. I guess at that point we will stop generating the legacy IDs and then the option |
Thanks a lot. I don't think they're gonna give me all this informations as I choose shared hosting (my bad). Next time I'll take a dedicated server. But for that project it's only a personal photos gallery (15000+) I thought shared hosting was enough. Keep doing great job with Lychee it's a really powerful application. |
I wish. 😢
Télécharger BlueMail pour Android
Le 10 sept. 2022, 12:16, à 12:16, Matthias Nagel ***@***.***> a écrit:
…I have a fix in place. The problem was not the type of exception, but a
change from integer values to string values for error codes. Could
anybody, please, please, please tell the Laravel guys that PHP supports
type annotation for some years now and that type safety is a good
thing. 🤬
--
Reply to this email directly or view it on GitHub:
#1514 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Hello. I made a manual migration from 4.4.0 to 4.6.0 all seem to working fine except the diagnostics section wich show error - Server Error message and blank page.
logs report that error :
Found another issue when uploading pictures
I use MariaDB 10.3.36, PHP 8.1
The text was updated successfully, but these errors were encountered: