database connection problems on vim.org
A user has reported that uploading a script does not work. This happens on "https://www.vim.org/scripts/add_script.php".
The error is "The package you uploaded ($package_name) is empty".
The user says that the file upload did work, the browser did not report an error. The message is given when in the PHP
script the "size" entry of the uploaded file is zero.
I have also seen other database related errors, they come and go. No clue when they happen. After a couple of hours later it works again.
The site was not changed, the script upload page was not changed for a year.
Can you please check the logs for vim.org for database related errors? Hopefully you can find a hint about what is wrong.
Additional information: Navigating to this page: https://www.vim.org/scripts/script_search_results.php
Shows the error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I hope you can reproduce this, and find more information in logs.
Today it appears to work OK. No idea why, I did not make any changes.
FWIW, I'm getting this same error today.
(Apologies for the anonymous message, I'm having some problem creating an account here.)
The problem persists. I can make a few requests without errors, then the database connection fails again.
I assume this is because other vim.org users have also generated database transactions.
I cannot locate a log file with the exact error message. This depends on how PHP is being used.
And how it is configured. You will have some engineers that know these details. For me it is like
"finding a small needle in a fairly big haystack" :-).
I have not made changes to the website since 2023-06-15 23:06.
If you have updated PHP or the configuration of the database connection, that would be the first
place to look.