Skip to content
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

On posting to new site getting 500 response #538

Closed
neilh10 opened this issue Dec 16, 2021 · 14 comments
Closed

On posting to new site getting 500 response #538

neilh10 opened this issue Dec 16, 2021 · 14 comments
Assignees

Comments

@neilh10
Copy link

neilh10 commented Dec 16, 2021

For a new site I've created, it only seems to get a response of 500.
https://monitormywatershed.org/sites/tu_rc_test08/
The new site creation had some errors in the process of setting it up, but seems to be functional - #537
However the data does seem to be showing up as seen by the Sequence Number incrementing.

The mayfly test08 POST looks like this

[2021-12-15 13:12:20.167] Connected Internet
[2021-12-15 13:12:20.189] 
[2021-12-15 13:12:20.189] pubDQTR Sending data to [ 0 ] data.envirodiy.org
[2021-12-15 13:12:20.769] POST /api/data-stream/ HTTP/1.1
[2021-12-15 13:12:20.769] Host: data.envirodiy.org
[2021-12-15 13:12:20.769] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-15 13:12:20.769] Content-Length: 466
[2021-12-15 13:12:20.769] Content-Type: application/json
[2021-12-15 13:12:20.769] 
[2021-12-15 13:12:20.769] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-15T13:12:11-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":1,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":2000.000,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":0.223,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1358,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.715,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-26}
[2021-12-15 13:12:20.769] 
[2021-12-15 13:12:22.612] -- Response Code -- 500 waited  506 mS Timeout 5000

.....
and every POST

[2021-12-15 15:50:13.409] Connected Internet
[2021-12-15 15:50:13.439] 
[2021-12-15 15:50:13.439] pubDQTR Sending data to [ 0 ] data.envirodiy.org
[2021-12-15 15:50:13.895] POST /api/data-stream/ HTTP/1.1
[2021-12-15 15:50:13.895] Host: data.envirodiy.org
[2021-12-15 15:50:13.895] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-15 15:50:13.895] Content-Length: 467
[2021-12-15 15:50:13.895] Content-Type: application/json
[2021-12-15 15:50:13.895] 
[2021-12-15 15:50:13.895] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-15T15:50:00-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":80,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":2000.000,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":5.807,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1797,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.806,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-30}
[2021-12-15 15:50:13.895] 
[2021-12-15 15:50:18.937] -- Response Code -- 500 waited  3696 mS Timeout 5000
@aufdenkampe
Copy link
Member

@neilh10, thanks for this detailed report. We'll look into it.

ptomasula added a commit that referenced this issue Dec 16, 2021
There is was code running that still referenced the now removed TSA catalog database. This results in a 500 response being return for certain operations and indicated in #537 and #538
@neilh10
Copy link
Author

neilh10 commented Dec 16, 2021

thanks.
For test08 site I've only been getting 500.
It was off overnight and now started it again. (time PST)

[2021-12-16 11:10:07.982] Connected Internet
[2021-12-16 11:10:08.021] 
[2021-12-16 11:10:08.021] pubDQTR Sending data to [ 0 ] data.envirodiy.org
[2021-12-16 11:10:08.466] POST /api/data-stream/ HTTP/1.1
[2021-12-16 11:10:08.466] Host: data.envirodiy.org
[2021-12-16 11:10:08.466] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-16 11:10:08.466] Content-Length: 468
[2021-12-16 11:10:08.466] Content-Type: application/json
[2021-12-16 11:10:08.467] 
[2021-12-16 11:10:08.467] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-16T11:10:00-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":15,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":1992.183,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":-0.447,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1748,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.351,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-30}
[2021-12-16 11:10:08.491] 
[2021-12-16 11:10:13.367] -- Response Code -- 500 waited  3543 mS Timeout 5000

@ptomasula
Copy link
Member

This is the same cause as #537. See #537 for explanation.

@neilh10
Copy link
Author

neilh10 commented Dec 16, 2021

I'm still getting the problem on posting to test08.
The data is showing on https://monitormywatershed.org/sites/tu_rc_test08/
however only getting "-- Response Code -- 500 waited 3590 mS Timeout 5000"
typical timeout is about 3.6secs, occasionally 4.4Secs

Should I rebuild another site?
thanks

[2021-12-16 13:28:12.807] Connected Internet
[2021-12-16 13:28:12.839]
[2021-12-16 13:28:12.839] pubDQTR Sending data to [ 0 ] data.envirodiy.org
[2021-12-16 13:28:13.241] POST /api/data-stream/ HTTP/1.1
[2021-12-16 13:28:13.241] Host: data.envirodiy.org
[2021-12-16 13:28:13.304] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-16 13:28:13.304] Content-Length: 468
[2021-12-16 13:28:13.304] Content-Type: application/json
[2021-12-16 13:28:13.304]
[2021-12-16 13:28:13.304] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-16T13:28:00-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":84,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":1951.758,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":-0.447,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1675,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.518,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-30}
[2021-12-16 13:28:13.304]
[2021-12-16 13:28:18.255] -- Response Code -- 500 waited 3602 mS Timeout 5000

@ptomasula
Copy link
Member

Thanks @neilh10, I'll reopen this and take a closer look.

@ptomasula ptomasula reopened this Dec 16, 2021
@ptomasula
Copy link
Member

ptomasula commented Dec 16, 2021

@neilh10

Thanks for following up on this. I didn't understand the initial scope of this issue, but I think I've sorted it now.

This was a database related issue. Some where (I assume in the migration process) the resultid for '3bebd4a3-8b54-4f92-ba55-5fd2fd021358' went missing from the timeseriesresults table. A missing resultid meant that the query, associated with the post request you included above, would return an exception for a foreign key violation.

Per our implementation of the fix to #510, you now receive a 500 response when the post encounters an exception. Good to know the solution is working and the post will no longer silently fail by returning a 201.

This issue looks to have been relatively narrow in impact. There were only 2 sensors affected.
tu_rc_test08: 3bebd4a3-8b54-4f92-ba55-5fd2fd021358
TIMUTest: 5ea735b4-d99f-43f3-b8eb-deb462378b7c

Let me know if you're still seeing 500 responses, but I think I can close this one for now.

@neilh10
Copy link
Author

neilh10 commented Dec 16, 2021

@ptomasula this site was only created yesterday, so something in perhaps in the site creation process.

So good to hear #510 is working correctly responding with "500 Internal Server Error"

For my test site test08
The new record POST is succeeding with a 201 ~~ Hurrah~~
I'm now getting a secondary 500 - I could create a new issue on this, but maybe its similar.

So the new record POST is succeddeding,
however then it tries to POST all the records that haven't succeeded with a 201,
and that is returning a 500

So just looking at the SampleNumber in the trace below
201 --> "8c57835f-a32f-4d62-82dc-0ba09f04cf52":132,"
500 --> "8c57835f-a32f-4d62-82dc-0ba09f04cf52":1,"

[2021-12-16 15:12:12.760] Connected Internet
[2021-12-16 15:12:12.798]
[2021-12-16 15:12:12.798] pubDQTR Sending data to [ 0 ] data.envirodiy.org
[2021-12-16 15:12:13.261] POST /api/data-stream/ HTTP/1.1
[2021-12-16 15:12:13.261] Host: data.envirodiy.org
[2021-12-16 15:12:13.261] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-16 15:12:13.261] Content-Length: 469
[2021-12-16 15:12:13.261] Content-Type: application/json
[2021-12-16 15:12:13.261]
[2021-12-16 15:12:13.261] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-16T15:12:00-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":132,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":1904.410,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":-0.670,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1529,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.503,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-29}
[2021-12-16 15:12:13.261]
[2021-12-16 15:12:18.125] -- Response Code -- 201 waited 3615 mS Timeout 5000
[2021-12-16 15:12:18.241] Sent 1 readings in 5.43 sec. Queued readings= 380
[2021-12-16 15:12:18.626] POST /api/data-stream/ HTTP/1.1
[2021-12-16 15:12:18.626] Host: data.envirodiy.org
[2021-12-16 15:12:18.695] TOKEN: 0cf7c40a-232e-457d-87d6-cea5c0757fec
[2021-12-16 15:12:18.695] Content-Length: 466
[2021-12-16 15:12:18.695] Content-Type: application/json
[2021-12-16 15:12:18.695]
[2021-12-16 15:12:18.695] {"sampling_feature":"236c674b-69b9-43af-b0d6-33d67b870ecc","timestamp":"2021-12-15T13:12:11-08:00","8c57835f-a32f-4d62-82dc-0ba09f04cf52":1,"1f2c9e91-3aa6-44d7-9312-160d04fbf877":2000.000,"65e0a9e5-cc8a-4ed6-8d28-127b5ec5e8e9":0.223,"a0e41a66-875a-44fc-9e2f-02c6e25f6063":4.1358,"3bebd4a3-8b54-4f92-ba55-5fd2fd021358":4.715,"43bcda9b-2973-4639-af2c-f0b6bb3fa44b":-9999.00000,"ff4d732d-88d8-4a1b-b499-16417603edfe":-9999.00,"7182846e-46e0-4a10-b110-9bc32de4aca9":-26}
[2021-12-16 15:12:18.695]
[2021-12-16 15:12:21.062] -- Response Code -- 500 waited 494 mS Timeout 5000

@ptomasula
Copy link
Member

@neilh10 Thanks for the additional information.

Good to know this was a site that was created yesterday. I'll review the site creation code and verify that is it correctly populating the tables. This behavior might be related to the dead TSA code above, but either way that's a good thought as to the cause.

I think the 500 response for the secondary post is also related to the handling of #510. The data in that post appears to already be on the server. For example sensor a0e41a66-875a-44fc-9e2f-02c6e25f6063 already has a record at 2021-12-15T13:12:11-08:00

When that second POST request is processed, the query will return a primary key violation because the combination of sensoruuid and timestamp are non-unique (because they are already in the database). This cause the code for #510, which handles any database related exception, to return a 500 response.

Maybe more sophisticated exception handling is needed, like returning a different 500 code for duplicate primary keys.

@neilh10
Copy link
Author

neilh10 commented Dec 17, 2021

@ptomasula thanks for the diagnosis.
I really appreciate that #510 is a solid foundation that was missing.

So that was my guess for the second POST that it was matching it to what's in the database. Why would that be identified problem?.
I would think, and I've been advocating for over a year, that the reliable delivery algorithm be fleshed out #485

Shouldn't the logic be to say yes its received, and then its in the database, so return everything successful.
From the external view its not a 500 series "Server Error" response.
It maybe an that it responds differently just so its clear that the record was in the database.
I'm not an expert in response codes, but from https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
perhaps a "208 Already Reported"

From communications theory, the communications channels are imperfect, and there is always a chance no matter how perfect everything is designed that the source Mayfly may not get a 201 to everything it posts.

I've floated discussions for #485 and #524 very standard issues in multi computer systems.
I implement an algorithm that if the Mayfly gets a 201 it accepts that it has been successfully transferred from the Mayfly to the MMW database, for any other responses, including no response "timeouts", (channel went down, server computer overloaded) it puts it into a queue to retry later.
So for me providing I can get a unique response that says it is in the database, either a 201 or some other value, that is documented, I'll be happy and can make my algorithm work.
So much appreciate the work - should I open another ticket on this as its a visible issue?

ptomasula added a commit that referenced this issue Dec 17, 2021
Previous implementation of #510 meant that any database related exception would result in 500. As suggested in #538, duplicate data being sent to the server does not necessarily constitute an error from the external perspective. This commit introduce code that pass on exceptions for primary key violations (duplicate resultid and datetime) and will still return a 201.
@ptomasula
Copy link
Member

Thanks @neilh10

I agree with you and have revised the logic to pass over exceptions for duplicate primary keys. It will instead, as a shortish term fix, return a 201 response when duplicates are passed. There might be, as you pointed out, a more appropriate and informative response code like 208 that we should be returning instead. Though we'll probably need to wait until we clean up the code base a bit further to implement more advanced logic. Hopefully this solution gets your algorithm up and working for now.

I'm also glad you are thinking about algorithm stability. I think keeping #485 and #524 open as a place holder for that discussion makes sense.

@neilh10
Copy link
Author

neilh10 commented Dec 17, 2021

@ptomasula ~~~yeah~~~~ working
I've turned on my Mayfly test08 and for its list of QUE0.txt its pushing it to MMW.

My test08 systems is now receiving an occasional 504's, (possibly less than 1 in 200), and thats probably everything working correctly
so these aren't show stoppers so far, and its uploading its queue successfully.

My test06 system is still however now receiving too many 504's to be workable. It was working before the upgrade. Possibly an issue to do with #504 lurking here. See below.

For the record test08 is my desk based Mayfly 0.5b ModularSensors based 0.30.0 my fork build, that is running over wiFi S6B with my fork of TinyGSM 0.11.5
It has a typical wait time of about 1.5Sec, occasionally going to 2.6Sec with a timeout of 5sec.
It is set to take a reading every 2min (agressive testing) and upload that reading immediately
It attempts to upload the latest reading + any queue of up to 100 readings.
This is managed on the Mayfly's uSD disk with a ms_cfg.ini file and entries
[PROVIDER_MMW]
CLOUD_ID=data.enviroDIY.org
TIMER_POST_TOUT_MS=5000; Gateway Timeout (ms)
TIMER_POST_PACE_MS=3000; Pacing between POSTs
REGISTRATION_TOKEN=0af40c10-cbd5-4a7d-b78c-79ca06553e54 ; registration token
SAMPLING_FEATURE= 1e77a2de-11a7-4f4c-9237-668384eb3a18 ; Sampling feature

[NETWORK]
COLLECT_READINGS=0 ; Number of readings to collect before send 0to30
SEND_OFFSET_MIN=0 ;minutes to wait after collection complete 0-30

My test06 is a longer term stability, using Mayfly 0.5b ModularSensors version 0.32.2 over an LTE CAT-M1 verizon modem.
I started it on [2021-12-04 12:47:36] and have almost a continuous record there during the upgrade with the same ModularSensors build

I re- started it [2021-12-16 11:47:39]
Its set to take a reading every 2minutes, store 5 readings, and then POST them all.
[NETWORK]
NETWORK COLLECT_READINGS=5
NETWORK SEND_OFFSET_MIN=0
NETWORK POST_MAX_NUM=100
[PROVIDER_MMW]
CLOUD_ID=data.enviroDIY.org
REGISTRATION_TOKEN=e89538ae-7ff0-4897-a396-9b10c0fadfc3 ; registration token Test06
SAMPLING_FEATURE= 31461753-cd5d-4ed0-99f7-17713c5e1e0e ; Sampling feature
TIMER_POST_TOUT_MS=5000; Gateway Timeout (ms)
TIMER_POST_PACE_MS=3000; Pacing between POSTs

Here is the latest POST - which is consistent with its previous few cycles (its POSTing over verizon every 10minutes, with 5 readings each time)
[2021-12-17 12:36:11] Waiting up to 15000 ms for Digi XBee3 Cellular LTE-M to respond to AT commands...
[2021-12-17 12:36:12] Connecting to the Internet with Digi XBee3 Cellular LTE-M
[2021-12-17 12:36:21] WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 12:36:25] Connected Internet
[2021-12-17 12:36:25] ... Watchdog low barksUntilReset 51 expected 52
[2021-12-17 12:36:26]
[2021-12-17 12:36:26] pubDQTR Sending data to [ 0 ] data.enviroDIY.org
[2021-12-17 12:36:26] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:36:26] Host: data.enviroDIY.org
[2021-12-17 12:36:26] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:36:26] Content-Length: 457
[2021-12-17 12:36:26] Content-Type: application/json
[2021-12-17 12:36:26]
[2021-12-17 12:36:26] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:28:00-08:00","b404d204-f127-44d4-869c-50c058412999":732,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0846,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.094,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07281,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.96,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.15,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:36:26]
[2021-12-17 12:36:32] -- Response Code -- 201 waited 3879 mS Timeout 5000
[2021-12-17 12:36:35] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:36:35] Host: data.enviroDIY.org
[2021-12-17 12:36:35] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:36:35] Content-Length: 457
[2021-12-17 12:36:35] Content-Type: application/json
[2021-12-17 12:36:35]
[2021-12-17 12:36:35] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:30:00-08:00","b404d204-f127-44d4-869c-50c058412999":733,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.109,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07194,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.92,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.17,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:36:35]
[2021-12-17 12:36:41] WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 12:36:42] -- Response Code -- 504 waited 5000 mS Timeout 5000
[2021-12-17 12:36:42] ... Watchdog low barksUntilReset 51 expected 52
[2021-12-17 12:36:43] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:36:43] Host: data.enviroDIY.org
[2021-12-17 12:36:43] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:36:43] Content-Length: 457
[2021-12-17 12:36:43] Content-Type: application/json
[2021-12-17 12:36:43]
[2021-12-17 12:36:43] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:32:00-08:00","b404d204-f127-44d4-869c-50c058412999":734,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.124,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07203,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.88,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.23,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:36:43]
[2021-12-17 12:36:50] -- Response Code -- 504 waited 5000 mS Timeout 5000
[2021-12-17 12:36:51] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:36:51] Host: data.enviroDIY.org
[2021-12-17 12:36:51] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:36:51] Content-Length: 457
[2021-12-17 12:36:51] Content-Type: application/json
[2021-12-17 12:36:51]
[2021-12-17 12:36:51] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:34:00-08:00","b404d204-f127-44d4-869c-50c058412999":735,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.078,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07265,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.85,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.26,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:36:51]
[2021-12-17 12:36:58] -- Response Code -- 504 waited 5000 mS Timeout 5000
[2021-12-17 12:36:59] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:36:59] Host: data.enviroDIY.org
[2021-12-17 12:36:59] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:36:59] Content-Length: 457
[2021-12-17 12:36:59] Content-Type: application/json
[2021-12-17 12:36:59]
[2021-12-17 12:36:59] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:36:00-08:00","b404d204-f127-44d4-869c-50c058412999":736,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.124,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07234,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.82,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.29,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:36:59]
[2021-12-17 12:37:06] -- Response Code -- 504 waited 5000 mS Timeout 5000
[2021-12-17 12:37:06] Sent 5 readings in 40.81 sec. Queued readings= 6015

Its getting 504's from the 2nd post. So trying to decode it, I believe I'm opening the TCP/IP doing all POSTs for new readings this cycle even if non-201 is received, and then closing the TCP/IP.
Based on the SequenceNumber visible in https://monitormywatershed.org/sites/tu_rc_test06/ they all appear to be getting into the MMW database, however the response is 504.

@neilh10
Copy link
Author

neilh10 commented Dec 17, 2021

oops I take it back test06 is uploading now

[2021-12-17 12:46:11] Waiting up to 15000 ms for Digi XBee3 Cellular LTE-M to respond to AT commands...
[2021-12-17 12:46:12] Connecting to the Internet with Digi XBee3 Cellular LTE-M
[2021-12-17 12:46:21] WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 12:46:22] Connected Internet
[2021-12-17 12:46:22] ... Watchdog low barksUntilReset 51 expected 52
[2021-12-17 12:46:22]
[2021-12-17 12:46:22] pubDQTR Sending data to [ 0 ] data.enviroDIY.org
[2021-12-17 12:46:22] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:46:22] Host: data.enviroDIY.org
[2021-12-17 12:46:22] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:46:22] Content-Length: 457
[2021-12-17 12:46:22] Content-Type: application/json
[2021-12-17 12:46:22]
[2021-12-17 12:46:22] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:38:00-08:00","b404d204-f127-44d4-869c-50c058412999":737,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0846,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.063,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07255,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.80,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.33,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:46:22]
[2021-12-17 12:46:26] -- Response Code -- 201 waited 2132 mS Timeout 5000
[2021-12-17 12:46:29] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:46:29] Host: data.enviroDIY.org
[2021-12-17 12:46:29] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:46:29] Content-Length: 457
[2021-12-17 12:46:29] Content-Type: application/json
[2021-12-17 12:46:29]
[2021-12-17 12:46:29] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:40:00-08:00","b404d204-f127-44d4-869c-50c058412999":738,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.154,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07288,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.78,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":6.38,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:46:29]
[2021-12-17 12:46:35] -- Response Code -- 201 waited 3782 mS Timeout 5000
[2021-12-17 12:46:38] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:46:38] Host: data.enviroDIY.org
[2021-12-17 12:46:38] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:46:38] Content-Length: 457
[2021-12-17 12:46:38] Content-Type: application/json
[2021-12-17 12:46:38]
[2021-12-17 12:46:38] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:42:00-08:00","b404d204-f127-44d4-869c-50c058412999":739,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.124,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07244,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.76,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":6.40,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:46:38]
[2021-12-17 12:46:44] WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 12:46:44] -- Response Code -- 201 waited 4192 mS Timeout 5000
[2021-12-17 12:46:44] ... Watchdog low barksUntilReset 51 expected 52
[2021-12-17 12:46:47] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:46:47] Host: data.enviroDIY.org
[2021-12-17 12:46:47] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:46:47] Content-Length: 457
[2021-12-17 12:46:47] Content-Type: application/json
[2021-12-17 12:46:47]
[2021-12-17 12:46:47] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:44:00-08:00","b404d204-f127-44d4-869c-50c058412999":740,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.094,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07233,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.76,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.45,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:46:48]
[2021-12-17 12:46:52] -- Response Code -- 201 waited 2494 mS Timeout 5000
[2021-12-17 12:46:55] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:46:55] Host: data.enviroDIY.org
[2021-12-17 12:46:55] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:46:55] Content-Length: 457
[2021-12-17 12:46:55] Content-Type: application/json
[2021-12-17 12:46:55]
[2021-12-17 12:46:55] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T12:46:00-08:00","b404d204-f127-44d4-869c-50c058412999":741,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0992,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.063,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07216,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.74,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.49,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 12:46:55]
[2021-12-17 12:46:59] -- Response Code -- 201 waited 2470 mS Timeout 5000
[2021-12-17 12:47:02] Sent 5 readings in 40.65 sec. Queued readings= 6015
[2021-12-17 12:47:06] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:47:06] Host: data.enviroDIY.org
[2021-12-17 12:47:06] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:47:06] Content-Length: 458
[2021-12-17 12:47:06] Content-Type: application/json
[2021-12-17 12:47:06]
[2021-12-17 12:47:06] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-04T21:10:00-08:00","b404d204-f127-44d4-869c-50c058412999":160,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8601,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.836,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03535,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":10.53,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":9.98,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 12:47:06]
[2021-12-17 12:47:09] WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 12:47:09] -- Response Code -- 201 waited 1962 mS Timeout 5000
[2021-12-17 12:47:09] ... Watchdog low barksUntilReset 51 expected 52
[2021-12-17 12:47:13] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:47:13] Host: data.enviroDIY.org
[2021-12-17 12:47:13] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:47:13] Content-Length: 458
[2021-12-17 12:47:13] Content-Type: application/json
[2021-12-17 12:47:13]
[2021-12-17 12:47:13] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-04T21:12:00-08:00","b404d204-f127-44d4-869c-50c058412999":161,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8601,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.896,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03573,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":10.52,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":9.97,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 12:47:13]
[2021-12-17 12:47:17] -- Response Code -- 201 waited 2579 mS Timeout 5000

....

[2021-12-17 12:57:58] POST /api/data-stream/ HTTP/1.1
[2021-12-17 12:57:58] Host: data.enviroDIY.org
[2021-12-17 12:57:58] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 12:57:58] Content-Length: 457
[2021-12-17 12:57:58] Content-Type: application/json
[2021-12-17 12:57:58]
[2021-12-17 12:57:58] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-05T01:40:00-08:00","b404d204-f127-44d4-869c-50c058412999":244,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8430,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.821,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03405,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":9.17,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":9.39,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 12:57:58]
[2021-12-17 12:58:02] -- Response Code -- 201 waited 2446 mS Timeout 5000

still going strong. Something cleared - thankyou thankyou

@neilh10
Copy link
Author

neilh10 commented Dec 17, 2021

It POSTED 5+100 readings successfully,
[2021-12-17 13:10:11] then on next access of POSTing 5 readings all '504', and response time right on the timeout of 5seconds.

[2021-12-17 13:20:12] after that of the first 5 readings, 3 got 504's and the last was 201 - so its uploaded 100 records out of the QUE ok.

So it seems to me there is something indeterminate happening, just don't know how to characterize it.

I checked the paceing and its 1000mSec, so maybe I should change it to 3000mSec to see if it makes a difference.
TIMER_POST_PACE_MS=1000; Pacing between POSTs

[2021-12-17 13:10:11] Waiting up to 15000 ms for Digi XBee3 Cellular LTE-M to respond to AT commands...
[2021-12-17 13:10:12] Connecting to the Internet with Digi XBee3 Cellular LTE-M
[2021-12-17 13:10:21]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:10:22] Connected Internet
[2021-12-17 13:10:22] ... Watchdog low barksUntilReset 51  expected 52
[2021-12-17 13:10:22] 
[2021-12-17 13:10:22] pubDQTR Sending data to [ 0 ] data.enviroDIY.org
[2021-12-17 13:10:22] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:10:22] Host: data.enviroDIY.org
[2021-12-17 13:10:22] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:10:22] Content-Length: 457
[2021-12-17 13:10:22] Content-Type: application/json
[2021-12-17 13:10:22] 
[2021-12-17 13:10:22] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:02:00-08:00","b404d204-f127-44d4-869c-50c058412999":742,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0943,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.078,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07270,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.78,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.73,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:10:22] 
[2021-12-17 13:10:30] -- Response Code -- 504 waited  5011 mS Timeout 5000


[2021-12-17 13:20:12] Connecting to the Internet with Digi XBee3 Cellular LTE-M
[2021-12-17 13:20:21]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:20:25] Connected Internet
[2021-12-17 13:20:25] ... Watchdog low barksUntilReset 51  expected 52
[2021-12-17 13:20:25] 
[2021-12-17 13:20:25] pubDQTR Sending data to [ 0 ] data.enviroDIY.org
[2021-12-17 13:20:25] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:20:25] Host: data.enviroDIY.org
[2021-12-17 13:20:25] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:20:25] Content-Length: 457
[2021-12-17 13:20:25] Content-Type: application/json
[2021-12-17 13:20:25] 
[2021-12-17 13:20:25] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:12:00-08:00","b404d204-f127-44d4-869c-50c058412999":747,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0870,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.109,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07236,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.84,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.87,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:20:25] 
[2021-12-17 13:20:32] -- Response Code -- 504 waited  5012 mS Timeout 5000
[2021-12-17 13:20:33] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:20:33] Host: data.enviroDIY.org
[2021-12-17 13:20:33] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:20:33] Content-Length: 457
[2021-12-17 13:20:33] Content-Type: application/json
[2021-12-17 13:20:33] 
[2021-12-17 13:20:33] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:14:00-08:00","b404d204-f127-44d4-869c-50c058412999":748,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0919,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.154,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07271,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.86,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.90,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:20:33] 
[2021-12-17 13:20:40] -- Response Code -- 201 waited  5002 mS Timeout 5000
[2021-12-17 13:20:44] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:20:44] Host: data.enviroDIY.org
[2021-12-17 13:20:44] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:20:44] Content-Length: 457
[2021-12-17 13:20:44] Content-Type: application/json
[2021-12-17 13:20:44] 
[2021-12-17 13:20:44] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:16:00-08:00","b404d204-f127-44d4-869c-50c058412999":749,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0943,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.063,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07274,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.87,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.049,"9a848614-1dc2-4372-890b-68d2b48d9407":6.90,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:20:44] 
[2021-12-17 13:20:50]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:20:51] -- Response Code -- 504 waited  5012 mS Timeout 5000
[2021-12-17 13:20:51] ... Watchdog low barksUntilReset 51  expected 52
[2021-12-17 13:20:51] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:20:51] Host: data.enviroDIY.org
[2021-12-17 13:20:51] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:20:51] Content-Length: 457
[2021-12-17 13:20:51] Content-Type: application/json
[2021-12-17 13:20:51] 
[2021-12-17 13:20:51] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:18:00-08:00","b404d204-f127-44d4-869c-50c058412999":750,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0943,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.139,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07262,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.89,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.92,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:20:51] 
[2021-12-17 13:20:59] -- Response Code -- 504 waited  5011 mS Timeout 5000
[2021-12-17 13:21:00] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:21:00] Host: data.enviroDIY.org
[2021-12-17 13:21:00] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:21:00] Content-Length: 457
[2021-12-17 13:21:00] Content-Type: application/json
[2021-12-17 13:21:00] 
[2021-12-17 13:21:00] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-17T13:20:00-08:00","b404d204-f127-44d4-869c-50c058412999":751,"32b6fb1f-4688-4fb0-ada7-323753536c08":4.0943,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":4.169,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.07279,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":7.90,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":6.96,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-81}
[2021-12-17 13:21:00] 
[2021-12-17 13:21:07] -- Response Code -- 201 waited  5000 mS Timeout 5000
[2021-12-17 13:21:10] Sent 5 readings in 45.34 sec. Queued readings= 5924
[2021-12-17 13:21:13] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:21:13] Host: data.enviroDIY.org
[2021-12-17 13:21:13] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:21:13] Content-Length: 457
[2021-12-17 13:21:13] Content-Type: application/json
[2021-12-17 13:21:13] 
[2021-12-17 13:21:13] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-05T02:30:00-08:00","b404d204-f127-44d4-869c-50c058412999":260,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8406,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.912,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03343,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":9.54,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.048,"9a848614-1dc2-4372-890b-68d2b48d9407":9.53,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 13:21:13] 
[2021-12-17 13:21:16]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:21:17] -- Response Code -- 201 waited  2144 mS Timeout 5000
[2021-12-17 13:21:17] ... Watchdog low barksUntilReset 51  expected 52
[2021-12-17 13:21:21] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:21:21] Host: data.enviroDIY.org
[2021-12-17 13:21:21] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:21:21] Content-Length: 457
[2021-12-17 13:21:21] Content-Type: application/json
[2021-12-17 13:21:21] 
[2021-12-17 13:21:21] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-05T02:32:00-08:00","b404d204-f127-44d4-869c-50c058412999":261,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8406,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.972,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03384,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":9.55,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.048,"9a848614-1dc2-4372-890b-68d2b48d9407":9.53,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 13:21:21] 
[2021-12-17 13:21:25] -- Response Code -- 201 waited  2579 mS Timeout 5000
... 
[2021-12-17 13:30:21] POST /api/data-stream/ HTTP/1.1
[2021-12-17 13:30:21] Host: data.enviroDIY.org
[2021-12-17 13:30:21] TOKEN: e89538ae-7ff0-4897-a396-9b10c0fadfc3
[2021-12-17 13:30:21] Content-Length: 457
[2021-12-17 13:30:21] Content-Type: application/json
[2021-12-17 13:30:21] 
[2021-12-17 13:30:21] {"sampling_feature":"31461753-cd5d-4ed0-99f7-17713c5e1e0e","timestamp":"2021-12-05T06:16:00-08:00","b404d204-f127-44d4-869c-50c058412999":331,"32b6fb1f-4688-4fb0-ada7-323753536c08":3.8284,"be84dc61-86dd-4ff9-9c44-f1d25bd78f6b":3.927,"a4361b13-a4b4-4d53-b1c8-1398d73ceeec":0.03294,"b40cdca7-22c5-4d6e-91db-4eb77ebf2179":8.89,"e5a6b171-ae06-4fc0-bc3f-68820f9e448c":-0.050,"9a848614-1dc2-4372-890b-68d2b48d9407":8.77,"83fb7c9a-9af5-4bff-874a-d780045c19f0":-69}
[2021-12-17 13:30:21] 
[2021-12-17 13:30:27]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:30:29] -- Response Code -- 504 waited  5012 mS Timeout 5000
[2021-12-17 13:30:29] ... Watchdog low barksUntilReset 51  expected 52
[2021-12-17 13:30:38]  WATCHDOG ISR barksUntilReset 51 <--WatchDogAVR
[2021-12-17 13:30:47]  WATCHDOG ISR barksUntilReset 50 <--WatchDogAVR
[2021-12-17 13:30:57]  WATCHDOG ISR barksUntilReset 49 <--WatchDogAVR
[2021-12-17 13:31:06]  WATCHDOG ISR barksUntilReset 48 <--WatchDogAVR
[2021-12-17 13:31:15]  WATCHDOG ISR barksUntilReset 47 <--WatchDogAVR
[2021-12-17 13:31:25]  WATCHDOG ISR barksUntilReset 46 <--WatchDogAVR
[2021-12-17 13:31:28] seQCF Que for next pass unsent records 5852

so completed the upload.

@aufdenkampe
Copy link
Member

@neilh10, think it is worth changing your host to monitormywatershed.org, and also removing any references to our old IP address, as it seems that maybe even your newer sites are somehow being affected by maintenance on LimnoTech servers and not fully benefiting from AWS 99.999% uptime.

See my explanation here.
#542 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants