I'm having an issue with PHP uploads that started yesterday (I've been using them just fine for the past month or two). Uploads using GET work fine (e.g., realtimegauges.txt, realtime.txt) but larger files sent with POST are failing with a 403 forbidden error.
Cumulus (running on a raspberry PI is version Cumulus MX 3.28.3 b3280) and the server it's uploading to us running PHP 7.4.33.
Does anyone have any ideas how to debug this further. Thanks in advance? Below is a MXdiags log of a POST and a GET.
Code: Select all
2024-03-15 09:41:34.254 Upload Now: Starting process
2024-03-15 09:41:34.256 Upload Now: Flagging the graph data files for recreation and upload/copy
2024-03-15 09:41:34.257 Upload Now: Flagging graph data files for full upload rather than incremental
2024-03-15 09:41:34.258 Upload Now: Flagging the daily graph data files for recreation and upload/copy
2024-03-15 09:41:34.258 Upload Now: Starting the main update process in the background
2024-03-15 09:41:34.260 Upload Now: Process complete
2024-03-15 09:41:34.260 Interval: Creating standard web files
2024-03-15 09:41:34.262 Interval: Done creating standard Data file
2024-03-15 09:41:34.262 Interval: Creating graph data files
2024-03-15 09:41:34.262 Interval: Done creating graph data files
2024-03-15 09:41:34.263 Interval: Creating extra files
2024-03-15 09:41:34.263 Interval: Done creating extra files
2024-03-15 09:41:34.263 PHP[Int]: Upload process starting
2024-03-15 09:41:34.264 PHP[Int]: Extra Files upload starting
2024-03-15 09:41:34.265 PHP[Int]: Uploading Extra file: /home/pi/CumulusMX/web/CUtags.txt to: CUtags.php (Processed)
2024-03-15 09:41:35.205 PHP[Int]: Uploading to CUtags.php
2024-03-15 09:41:35.252 PHP[Int]: Sending via POST
2024-03-15 09:41:35.335 PHP[Int]: Upload to CUtags.php: Response text follows:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
2024-03-15 09:41:35.347 PHP[Int]: Sending via POST
2024-03-15 09:41:35.402 PHP[Int]: Upload to CUtags.php: Response text follows:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access this resource.</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
2024-03-15 09:41:35.403 PHP[Int]: HTTP Error uploading to CUtags.php: Response code = 403: Forbidden
2024-03-15 09:41:35.404 PHP[Int]: Standard files upload starting
2024-03-15 09:41:35.404 PHP[Int]: Uploading Extra file: /home/pi/CumulusMX/web/realtimegaugesT.txt to: realtimegauges.txt (Processed)
2024-03-15 09:41:35.416 PHP[Int]: Uploading to realtimegauges.txt
2024-03-15 09:41:35.418 PHP[Int]: Sending via GET
2024-03-15 09:41:35.472 PHP[Int]: Upload to realtimegauges.txt: Response code = 200: OK
2024-03-15 09:41:35.473 PHP[Int]: Graph files upload starting
2024-03-15 09:41:35.473 PHP[Int]: Uploading standard Data file: websitedata.json
2024-03-15 09:41:35.614 PHP[Int]: Uploading to websitedata.json
2024-03-15 09:41:35.628 PHP[Int]: Sending via POST
....
This upload failed....