Forums

Huge probleme, form dont send and load indefinitely

Hello, I'm experiencing a significant issue with my client's website, and it's the first time I've encountered this problem.

When submitting the reservation form, the page loads but nothing happens.

I can see that the first image file is created in /media/, but it remains at 0 bytes.

I don't understand the issue, as I feel I've followed all the usual procedures correctly.

Could you please shed some light on this problem?

The issue specifically is: - Form submission appears to start - Page keeps loading indefinitely - First image file is created in media directory - But file size remains at 0 bytes - No error messages are displayed

Any help in resolving this would be greatly appreciated. Best regards, Dylan Saint-Jalmes

Technical details: - Python 3.10 - Django 4.2.13 - Using ImageField for file uploads - Form includes multiple file uploads (driver's license, ID card) - Using default file upload handlers - Issue only occurs in production on PythonAnywhere

The only log error: 2024-11-05 21:22:53,847: OSError: write error

Hi @SuperGuirlande, it looks like you were caught up in a outtage on a particular server which hosts your files. Unfortunately it seems like there's a gap in our alerting and nobody was woken up to deal with the issue so it carried on for some time before fixing itself. It looks like it's functioning correctly now but as I've just been notified , we don't currently have any more information about what went wrong. I'll let you know when I know more

Thank you for your response. However, the issue is still ongoing on my side. I deployed the application more than 12 hours ago, and it has worked only once since then. The application is now completely non-functional, which is particularly concerning as I have already delivered the site to my client. Could you please confirm that this is indeed an issue on your end? This situation is quite urgent as it's affecting a production environment with real clients. Best regards

What's the domain name of the app you're having issues with?

webapp-2336210.pythonanywhere.com www.moorea-rent-car-scooter.com

I test 5 minutes ago, the problem is still there

Following up on your last response, I would like to provide more details about the issue:

The form submission works, but only intermittently When it fails, the page keeps loading indefinitely The file upload starts (I can see the first file being created in the media folder) However, the upload never completes and no database entry is created This happens randomly: sometimes it works (about 1 time out of 10), most times it doesn't The same code works perfectly fine in my local environment Server logs show that the form is valid but the process seems to hang during file upload

Best regards

We recently experienced an outage on one of our servers, which affected some of your files. Unfortunately, due to a gap in our alerting system, we weren’t notified in time, so the issue persisted until it resolved on its own.

This outage specifically impacted SQLite databases, as they require exclusive access and a lock to function correctly. When multiple processes attempt to access an SQLite database, only one can do so at a time, meaning a lock must be in place to prevent data issues. During the outage, this locking process was disrupted.

We've now addressed the root cause and improved our alerting system to ensure prompt action if anything similar happens in the future.

We apologize for the disruption and thank you for your patience as we continue to improve our service.