Ticket #48176

database connection problems on vim.org

Open Date: 2023-06-07 00:40 Last Update: 2023-07-17 04:35

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

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.

Ticket History (3/5 Histories)

2023-06-07 00:40 Updated by: bram
  • New Ticket "database connection problems on vim.org" created
2023-06-08 00:14 Updated by: bram
Comment

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.

2023-06-15 23:06 Updated by: bram
Comment

Today it appears to work OK. No idea why, I did not make any changes.

2023-07-09 03:38 Updated by: None
Comment

FWIW, I'm getting this same error today.

(Apologies for the anonymous message, I'm having some problem creating an account here.)

2023-07-17 04:35 Updated by: bram
Comment

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.

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login