diff --git a/put_test.sh b/Trash/nginx/put_test.sh similarity index 100% rename from put_test.sh rename to Trash/nginx/put_test.sh diff --git a/auth_debug.log b/auth_debug.log new file mode 100644 index 0000000..436a891 --- /dev/null +++ b/auth_debug.log @@ -0,0 +1,28 @@ +DEBUG: authenticate_request ENTRY - method: upload, hash: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58 +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +DEBUG: authenticate_request ENTRY - method: upload, hash: b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820 +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"ee2631b20eaa4644827686119e3bf4d51caa70dfa0b48bd771e7d11a22620cfb","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755687299,"tags":[["t","upload"],["x","b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820"],["expiration","1755690899"]],"content":"","sig":"edb88c03d25ac22423c0d2f7cfdd5b9bba4b9780ab0d68471799150bb3548348b85886451c0fd260c1bacd38c75e96ad6ae0c9de61acb7e04a20f4338abf7419"} +DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "ee2631b20eaa4644827686119e3bf4d51caa70dfa0b48bd771e7d11a22620cfb", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755687299, + "tags": [["t", "upload"], ["x", "b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820"], ["expiration", "1755690899"]], + "content": "", + "sig": "edb88c03d25ac22423c0d2f7cfdd5b9bba4b9780ab0d68471799150bb3548348b85886451c0fd260c1bacd38c75e96ad6ae0c9de61acb7e04a20f4338abf7419" +} diff --git a/auth_debug_comprehensive.log b/auth_debug_comprehensive.log new file mode 100644 index 0000000..9b39288 --- /dev/null +++ b/auth_debug_comprehensive.log @@ -0,0 +1,202 @@ +═══════════════════════════════════════════════════════════════════ +🔧 COMPREHENSIVE NOSTR EVENT VALIDATION DEBUG TEST 🔧 +═══════════════════════════════════════════════════════════════════ +🔍 STEP INIT-1: Initializing nostr library +✅ SUCCESS: Nostr library initialized +ℹ️ INFO: Testing Authorization header: +Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +═══════════════════════════════════════════════════════════════════ +🔍 STEP PARSE-1: Parsing Authorization header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=616): eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYw... +DEBUG: Base64 decode result - decoded_len=461 +DEBUG: Successfully decoded JSON (length=461): {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: Authorization header parsed successfully +ℹ️ INFO: Decoded JSON: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +🔍 STEP PARSE-2: Parsing JSON string +✅ SUCCESS: JSON parsing successful +═══════════════════════════════════════════════════════════════════ +🔍 STEP ANALYZE-1: Analyzing event field details +ℹ️ INFO: Field 'kind': +ℹ️ INFO: Type: Number +ℹ️ INFO: Value: 24242 +ℹ️ INFO: Field 'id': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6' +ℹ️ INFO: Length: 64 +ℹ️ INFO: Field 'pubkey': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798' +ℹ️ INFO: Length: 64 +ℹ️ INFO: Field 'created_at': +ℹ️ INFO: Type: Number +ℹ️ INFO: Value: 1755685428 +ℹ️ INFO: Field 'tags': +ℹ️ INFO: Type: Array +ℹ️ INFO: Size: 3 +ℹ️ INFO: Field 'content': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '' +ℹ️ INFO: Length: 0 +ℹ️ INFO: Field 'sig': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead' +ℹ️ INFO: Length: 128 +🔍 STEP MAIN-1: Running detailed structure validation +═══════════════════════════════════════════════════════════════════ +🔍 STEP STRUCT-1: Starting detailed structure validation +✅ SUCCESS: Event is valid JSON object +🔍 STEP STRUCT-2: Checking required field existence +✅ SUCCESS: Field 'id' exists +✅ SUCCESS: Field 'pubkey' exists +✅ SUCCESS: Field 'created_at' exists +✅ SUCCESS: Field 'kind' exists +✅ SUCCESS: Field 'tags' exists +✅ SUCCESS: Field 'content' exists +✅ SUCCESS: Field 'sig' exists +🔍 STEP STRUCT-3: Validating field types +✅ SUCCESS: Field 'id' is string +✅ SUCCESS: Field 'pubkey' is string +✅ SUCCESS: Field 'created_at' is number +✅ SUCCESS: Field 'kind' is number +✅ SUCCESS: Field 'tags' is array +✅ SUCCESS: Field 'content' is string +✅ SUCCESS: Field 'sig' is string +🔍 STEP STRUCT-4: Validating hex string lengths +ℹ️ INFO: ID string: '9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6' (length: 64) +✅ SUCCESS: ID string length is correct (64 chars) +ℹ️ INFO: Pubkey string: '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798' (length: 64) +✅ SUCCESS: Pubkey string length is correct (64 chars) +ℹ️ INFO: Signature string: '95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead' (length: 128) +✅ SUCCESS: Signature string length is correct (128 chars) +🔍 STEP STRUCT-5: Validating hex characters +ℹ️ INFO: Checking ID hex characters... +✅ SUCCESS: ID hex characters are valid (lowercase) +ℹ️ INFO: Checking pubkey hex characters... +✅ SUCCESS: Pubkey hex characters are valid (lowercase) +ℹ️ INFO: Checking signature hex characters... +✅ SUCCESS: Signature hex characters are valid (lowercase) +🔍 STEP STRUCT-6: Validating timestamp +ℹ️ INFO: Created_at timestamp: 1755685428 +✅ SUCCESS: Timestamp is valid: 2025-08-20 10:23:48 UTC +🔍 STEP STRUCT-7: Validating kind +ℹ️ INFO: Event kind: 24242 +✅ SUCCESS: Kind is valid: 24242 +🔍 STEP STRUCT-8: Validating tags array structure +ℹ️ INFO: Tags array has 3 elements +ℹ️ INFO: Tag[0] has 2 elements +ℹ️ INFO: Tag[0][0]: 't' +ℹ️ INFO: Tag[0][1]: 'upload' +ℹ️ INFO: Tag[1] has 2 elements +ℹ️ INFO: Tag[1][0]: 'x' +ℹ️ INFO: Tag[1][1]: '84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b' +ℹ️ INFO: Tag[2] has 2 elements +ℹ️ INFO: Tag[2][0]: 'expiration' +ℹ️ INFO: Tag[2][1]: '1755689028' +✅ SUCCESS: Tags array structure is valid +🔍 STEP STRUCT-9: Validating content +ℹ️ INFO: Content: '' (length: 0) +✅ SUCCESS: Content is valid string +✅ SUCCESS: Structure validation completed successfully +✅ SUCCESS: Detailed structure validation PASSED +🔍 STEP MAIN-2: Running detailed signature validation +═══════════════════════════════════════════════════════════════════ +🔍 STEP CRYPTO-1: Starting detailed signature validation +🔍 STEP CRYPTO-2: Creating serialization array +✅ SUCCESS: Serialization array created +🔍 STEP CRYPTO-3: Converting to JSON string +✅ SUCCESS: JSON serialization string created +ℹ️ INFO: Serialization string (length 208): [0,"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",1755685428,24242,[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],""] +🔍 STEP CRYPTO-4: Computing SHA256 hash +✅ SUCCESS: SHA256 hash computed +ℹ️ INFO: Event hash (32 bytes): + 0000: 95 61 60 5b 10 62 ce 37 e9 5a b9 b8 1d 30 0d 9a |.a`[.b.7.Z...0..| + 0010: d5 bf b9 c5 44 ae 39 5e 1e b4 1f 00 0c 7d 89 f6 |....D.9^.....}..| +🔍 STEP CRYPTO-5: Verifying event ID +ℹ️ INFO: Calculated ID: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +ℹ️ INFO: Provided ID: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +✅ SUCCESS: Event ID verification passed +🔍 STEP CRYPTO-6: Preparing signature verification +🔍 STEP CRYPTO-7: Converting hex strings to bytes +✅ SUCCESS: Pubkey hex converted to bytes +ℹ️ INFO: Pubkey bytes (32 bytes): + 0000: 79 be 66 7e f9 dc bb ac 55 a0 62 95 ce 87 0b 07 |y.f~....U.b.....| + 0010: 02 9b fc db 2d ce 28 d9 59 f2 81 5b 16 f8 17 98 |....-.(.Y..[....| +✅ SUCCESS: Signature hex converted to bytes +ℹ️ INFO: Signature bytes (64 bytes): + 0000: 95 31 6a b7 5f 8d 02 bb 99 5a 12 48 c2 74 b9 9f |.1j._....Z.H.t..| + 0010: 9b c5 dc 0a f5 64 9e 69 49 01 5d 06 99 04 d4 bd |.....d.iI.].....| + 0020: f3 a3 c7 94 27 ac 82 45 69 86 a2 e9 37 b1 d2 5b |....'..Ei...7..[| + 0030: 6d 2e e8 ee 1e 44 6a 84 9c b1 97 74 df 94 8e ad |m....Dj....t....| +🔍 STEP CRYPTO-8: Parsing public key into secp256k1 format +✅ SUCCESS: Public key parsed into secp256k1 format +🔍 STEP CRYPTO-9: Verifying Schnorr signature +✅ SUCCESS: Schnorr signature verification PASSED! +✅ SUCCESS: Detailed signature validation PASSED +═══════════════════════════════════════════════════════════════════ +🔍 STEP COMPARE-1: Running standard nostr_validate_event for comparison +ℹ️ INFO: nostr_validate_event result: 0 (Success) +✅ SUCCESS: Standard validation PASSED - matches detailed validation +🔍 STEP COMPARE-2: Running server-style authentication (exact mirror of server code) +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring main.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=616): eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYw... +DEBUG: Base64 decode result - decoded_len=461 +DEBUG: Successfully decoded JSON (length=461): {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755685428 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: 64 +ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: 64 +ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: 0 (Success) +✅ SUCCESS: Crypto verification PASSED +ℹ️ INFO: Testing complete validation... +ℹ️ INFO: nostr_validate_event returned: 0 (Success) +✅ SUCCESS: Complete validation PASSED +✅ SUCCESS: Server-style authentication successful, returning NOSTR_SUCCESS +ℹ️ INFO: server_style_authentication result: 0 (Success) +✅ SUCCESS: Server-style validation PASSED +═══════════════════════════════════════════════════════════════════ +✅ SUCCESS: 🎉 ALL DETAILED VALIDATIONS PASSED! Event is completely valid. +✅ Structure validation: PASSED +✅ Signature validation: PASSED +✅ Standard validation: PASSED +✅ Server-style validation: PASSED +═══════════════════════════════════════════════════════════════════ +✅ SUCCESS: 🔍 DETAILED COMPARISON COMPLETE +✅ SUCCESS: 🎯 ALL VALIDATION METHODS AGREE: Event is valid +═══════════════════════════════════════════════════════════════════ diff --git a/auth_debug_detailed.log b/auth_debug_detailed.log new file mode 100644 index 0000000..7305810 --- /dev/null +++ b/auth_debug_detailed.log @@ -0,0 +1,145 @@ +═══════════════════════════════════════════════════════════════════ +🔧 COMPREHENSIVE NOSTR EVENT VALIDATION DEBUG TEST 🔧 +═══════════════════════════════════════════════════════════════════ +🔍 STEP INIT-1: Initializing nostr library +✅ SUCCESS: Nostr library initialized +ℹ️ INFO: Testing Authorization header: +Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +═══════════════════════════════════════════════════════════════════ +🔍 STEP PARSE-1: Parsing Authorization header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=616): eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYw... +DEBUG: Base64 decode result - decoded_len=461 +DEBUG: Successfully decoded JSON (length=461): {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: Authorization header parsed successfully +ℹ️ INFO: Decoded JSON: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +🔍 STEP PARSE-2: Parsing JSON string +✅ SUCCESS: JSON parsing successful +═══════════════════════════════════════════════════════════════════ +🔍 STEP ANALYZE-1: Analyzing event field details +ℹ️ INFO: Field 'kind': +ℹ️ INFO: Type: Number +ℹ️ INFO: Value: 24242 +ℹ️ INFO: Field 'id': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6' +ℹ️ INFO: Length: 64 +ℹ️ INFO: Field 'pubkey': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798' +ℹ️ INFO: Length: 64 +ℹ️ INFO: Field 'created_at': +ℹ️ INFO: Type: Number +ℹ️ INFO: Value: 1755685428 +ℹ️ INFO: Field 'tags': +ℹ️ INFO: Type: Array +ℹ️ INFO: Size: 3 +ℹ️ INFO: Field 'content': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '' +ℹ️ INFO: Length: 0 +ℹ️ INFO: Field 'sig': +ℹ️ INFO: Type: String +ℹ️ INFO: Value: '95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead' +ℹ️ INFO: Length: 128 +🔍 STEP MAIN-1: Running detailed structure validation +═══════════════════════════════════════════════════════════════════ +🔍 STEP STRUCT-1: Starting detailed structure validation +✅ SUCCESS: Event is valid JSON object +🔍 STEP STRUCT-2: Checking required field existence +✅ SUCCESS: Field 'id' exists +✅ SUCCESS: Field 'pubkey' exists +✅ SUCCESS: Field 'created_at' exists +✅ SUCCESS: Field 'kind' exists +✅ SUCCESS: Field 'tags' exists +✅ SUCCESS: Field 'content' exists +✅ SUCCESS: Field 'sig' exists +🔍 STEP STRUCT-3: Validating field types +✅ SUCCESS: Field 'id' is string +✅ SUCCESS: Field 'pubkey' is string +✅ SUCCESS: Field 'created_at' is number +✅ SUCCESS: Field 'kind' is number +✅ SUCCESS: Field 'tags' is array +✅ SUCCESS: Field 'content' is string +✅ SUCCESS: Field 'sig' is string +🔍 STEP STRUCT-4: Validating hex string lengths +ℹ️ INFO: ID string: '9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6' (length: 64) +✅ SUCCESS: ID string length is correct (64 chars) +ℹ️ INFO: Pubkey string: '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798' (length: 64) +✅ SUCCESS: Pubkey string length is correct (64 chars) +ℹ️ INFO: Signature string: '95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead' (length: 128) +✅ SUCCESS: Signature string length is correct (128 chars) +🔍 STEP STRUCT-5: Validating hex characters +ℹ️ INFO: Checking ID hex characters... +✅ SUCCESS: ID hex characters are valid (lowercase) +ℹ️ INFO: Checking pubkey hex characters... +✅ SUCCESS: Pubkey hex characters are valid (lowercase) +ℹ️ INFO: Checking signature hex characters... +✅ SUCCESS: Signature hex characters are valid (lowercase) +🔍 STEP STRUCT-6: Validating timestamp +ℹ️ INFO: Created_at timestamp: 1755685428 +✅ SUCCESS: Timestamp is valid: 2025-08-20 10:23:48 UTC +🔍 STEP STRUCT-7: Validating kind +ℹ️ INFO: Event kind: 24242 +✅ SUCCESS: Kind is valid: 24242 +🔍 STEP STRUCT-8: Validating tags array structure +ℹ️ INFO: Tags array has 3 elements +ℹ️ INFO: Tag[0] has 2 elements +ℹ️ INFO: Tag[0][0]: 't' +ℹ️ INFO: Tag[0][1]: 'upload' +ℹ️ INFO: Tag[1] has 2 elements +ℹ️ INFO: Tag[1][0]: 'x' +ℹ️ INFO: Tag[1][1]: '84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b' +ℹ️ INFO: Tag[2] has 2 elements +ℹ️ INFO: Tag[2][0]: 'expiration' +ℹ️ INFO: Tag[2][1]: '1755689028' +✅ SUCCESS: Tags array structure is valid +🔍 STEP STRUCT-9: Validating content +ℹ️ INFO: Content: '' (length: 0) +✅ SUCCESS: Content is valid string +✅ SUCCESS: Structure validation completed successfully +✅ SUCCESS: Detailed structure validation PASSED +🔍 STEP MAIN-2: Running detailed signature validation +═══════════════════════════════════════════════════════════════════ +🔍 STEP CRYPTO-1: Starting detailed signature validation +🔍 STEP CRYPTO-2: Creating serialization array +✅ SUCCESS: Serialization array created +🔍 STEP CRYPTO-3: Converting to JSON string +✅ SUCCESS: JSON serialization string created +ℹ️ INFO: Serialization string (length 208): [0,"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",1755685428,24242,[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],""] +🔍 STEP CRYPTO-4: Computing SHA256 hash +✅ SUCCESS: SHA256 hash computed +ℹ️ INFO: Event hash (32 bytes): + 0000: 95 61 60 5b 10 62 ce 37 e9 5a b9 b8 1d 30 0d 9a |.a`[.b.7.Z...0..| + 0010: d5 bf b9 c5 44 ae 39 5e 1e b4 1f 00 0c 7d 89 f6 |....D.9^.....}..| +🔍 STEP CRYPTO-5: Verifying event ID +ℹ️ INFO: Calculated ID: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +ℹ️ INFO: Provided ID: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +✅ SUCCESS: Event ID verification passed +🔍 STEP CRYPTO-6: Preparing signature verification +🔍 STEP CRYPTO-7: Converting hex strings to bytes +✅ SUCCESS: Pubkey hex converted to bytes +ℹ️ INFO: Pubkey bytes (32 bytes): + 0000: 79 be 66 7e f9 dc bb ac 55 a0 62 95 ce 87 0b 07 |y.f~....U.b.....| + 0010: 02 9b fc db 2d ce 28 d9 59 f2 81 5b 16 f8 17 98 |....-.(.Y..[....| +✅ SUCCESS: Signature hex converted to bytes +ℹ️ INFO: Signature bytes (64 bytes): + 0000: 95 31 6a b7 5f 8d 02 bb 99 5a 12 48 c2 74 b9 9f |.1j._....Z.H.t..| + 0010: 9b c5 dc 0a f5 64 9e 69 49 01 5d 06 99 04 d4 bd |.....d.iI.].....| + 0020: f3 a3 c7 94 27 ac 82 45 69 86 a2 e9 37 b1 d2 5b |....'..Ei...7..[| + 0030: 6d 2e e8 ee 1e 44 6a 84 9c b1 97 74 df 94 8e ad |m....Dj....t....| +🔍 STEP CRYPTO-8: Parsing public key into secp256k1 format +✅ SUCCESS: Public key parsed into secp256k1 format +🔍 STEP CRYPTO-9: Verifying Schnorr signature +✅ SUCCESS: Schnorr signature verification PASSED! +✅ SUCCESS: Detailed signature validation PASSED +═══════════════════════════════════════════════════════════════════ +🔍 STEP COMPARE-1: Running standard nostr_validate_event for comparison +ℹ️ INFO: nostr_validate_event result: 0 (Success) +✅ SUCCESS: Standard validation PASSED - matches detailed validation +═══════════════════════════════════════════════════════════════════ +✅ SUCCESS: 🎉 ALL VALIDATIONS PASSED! Event is completely valid. +✅ Structure validation: PASSED +✅ Signature validation: PASSED +✅ Standard validation: PASSED +═══════════════════════════════════════════════════════════════════ diff --git a/blobs/49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e.txt b/blobs/49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e.txt new file mode 100644 index 0000000..aef7030 --- /dev/null +++ b/blobs/49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e.txt @@ -0,0 +1 @@ +test data for debug \ No newline at end of file diff --git a/blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt b/blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt new file mode 100644 index 0000000..30d74d2 --- /dev/null +++ b/blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/build/ginxsom-fcgi b/build/ginxsom-fcgi index 8e91478..e3e4a00 100755 Binary files a/build/ginxsom-fcgi and b/build/ginxsom-fcgi differ diff --git a/build/main.o b/build/main.o index 4dc0dfb..31b0150 100644 Binary files a/build/main.o and b/build/main.o differ diff --git a/db/ginxsom.db b/db/ginxsom.db index 97c7a5e..e7fa8cc 100644 Binary files a/db/ginxsom.db and b/db/ginxsom.db differ diff --git a/debug.log b/debug.log new file mode 100644 index 0000000..e69de29 diff --git a/debug_hash_data.log b/debug_hash_data.log new file mode 100644 index 0000000..408319f --- /dev/null +++ b/debug_hash_data.log @@ -0,0 +1,28 @@ +=== HASH DEBUG SESSION === +Content length: 296 +File data to hash: 5465737420626c6f6220636f6e74656e7420666f722047696e78736f6d20426c6f73736f6d207365727665720a54696d657374616d703a20323032352d30382d32305430393a33333a32362d30343a30300a52616e646f6d20646174613a20323465336130393961313333323063653530396562323334663735663334663733656239393966616133373764346361636231343165616536313933396665370a54657374206d6573736167653a2048656c6c6f2066726f6d207075745f746573742e7368210a0a546869732066696c65206973207573656420746f2074657374207468652075706c6f61642066756e6374696f6e616c6974790a6f66207468652047696e78736f6d20426c6f73736f6d2073657276657220696d706c656d656e746174696f6e2e0a +File data as string: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:33:26-04:00 +Random data: 24e3a099a13320ce509eb234f75f34f73eb999faa377d4cacb141eae61939fe7 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +Calculated SHA-256: 97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e +=== END DEBUG SESSION === + +=== HASH DEBUG SESSION === +Content length: 296 +File data to hash: 5465737420626c6f6220636f6e74656e7420666f722047696e78736f6d20426c6f73736f6d207365727665720a54696d657374616d703a20323032352d30382d32305430393a33393a32372d30343a30300a52616e646f6d20646174613a20383039303533333161616530366665333533313961366630666266383566636165313966663139346561643962643664363062393237636432303035616130330a54657374206d6573736167653a2048656c6c6f2066726f6d207075745f746573742e7368210a0a546869732066696c65206973207573656420746f2074657374207468652075706c6f61642066756e6374696f6e616c6974790a6f66207468652047696e78736f6d20426c6f73736f6d2073657276657220696d706c656d656e746174696f6e2e0a +File data as string: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:39:27-04:00 +Random data: 80905331aae06fe35319a6f0fbf85fcae19ff194ead9bd6d60b927cd2005aa03 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +Calculated SHA-256: 87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62 +=== END DEBUG SESSION === + diff --git a/debug_validation.log b/debug_validation.log new file mode 100644 index 0000000..cb304c1 --- /dev/null +++ b/debug_validation.log @@ -0,0 +1,10 @@ +=== STRUCTURE VALIDATION DEBUG === +nostr_validate_event_structure result: 0 (Success) +=== END STRUCTURE DEBUG === + +=== CRYPTO VALIDATION DEBUG === +nostr_verify_event_signature result: -32 (Event has invalid public key) +CRYPTO VALIDATION FAILED! +Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: 64) +=== END CRYPTO DEBUG === + diff --git a/fcgi-wrapper.sh b/fcgi-wrapper.sh new file mode 100755 index 0000000..d3900fb --- /dev/null +++ b/fcgi-wrapper.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# FastCGI wrapper script to redirect stderr to log file +exec 2>>logs/fcgi-stderr.log +echo "FastCGI wrapper starting at $(date)" >&2 +exec ./build/ginxsom-fcgi "$@" \ No newline at end of file diff --git a/file_put.sh b/file_put.sh index 8672a18..1ac1a79 100755 --- a/file_put.sh +++ b/file_put.sh @@ -120,6 +120,8 @@ calculate_hash() { log_info "Calculating SHA-256 hash..." HASH=$(sha256sum "${TEST_FILE}" | cut -d' ' -f1) + + log_success "Data to hash: ${TEST_FILE}" log_success "File hash: ${HASH}" } diff --git a/logs/access.log b/logs/access.log index b565fc3..4a2a135 100644 --- a/logs/access.log +++ b/logs/access.log @@ -179,3 +179,51 @@ 127.0.0.1 - - [19/Aug/2025:14:32:12 -0400] "PUT /upload HTTP/1.1" 401 242 "-" "curl/8.15.0" 127.0.0.1 - - [19/Aug/2025:14:37:30 -0400] "PUT /upload HTTP/1.1" 401 242 "-" "curl/8.15.0" 127.0.0.1 - - [19/Aug/2025:14:47:34 -0400] "PUT /upload HTTP/1.1" 200 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:23:49 -0400] "PUT /upload HTTP/1.1" 200 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:39:45 -0400] "PUT /upload HTTP/1.1" 502 166 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:39:45 -0400] "GET /f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:40:50 -0400] "PUT /upload HTTP/1.1" 502 166 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:40:50 -0400] "GET /bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:41:26 -0400] "HEAD /84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b HTTP/1.1" 404 0 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:45:33 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:45:33 -0400] "GET /ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:46:15 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:46:15 -0400] "GET /2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:48:02 -0400] "PUT /upload HTTP/1.1" 502 166 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:49:28 -0400] "PUT /upload HTTP/1.1" 200 321 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:49:47 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:51:41 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:54:59 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:06:54:59 -0400] "GET /b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:18:55 -0400] "PUT /upload HTTP/1.1" 502 166 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:18:55 -0400] "GET /854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:19:52 -0400] "HEAD /9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 HTTP/1.1" 404 0 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:23:47 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:27:24 -0400] "PUT /upload HTTP/1.1" 502 166 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:37:36 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:38:36 -0400] "PUT /upload HTTP/1.1" 401 224 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:53:48 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:53:48 -0400] "GET /9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:58:27 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:07:58:27 -0400] "GET /ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:04:29 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:04:29 -0400] "GET /5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:05:14 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:05:14 -0400] "GET /92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:05:46 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:08:02 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:11:48 -0400] "PUT /upload HTTP/1.1" 200 260 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:13:05 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:13:05 -0400] "GET /bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:14:03 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:14:03 -0400] "GET /22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:15:46 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:15:46 -0400] "GET /c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:19:38 -0400] "PUT /upload HTTP/1.1" 200 261 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:22:38 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:22:38 -0400] "GET /73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:28:16 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:28:16 -0400] "GET /23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2 HTTP/1.1" 404 162 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:31:55 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:33:26 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" +127.0.0.1 - - [20/Aug/2025:09:39:27 -0400] "PUT /upload HTTP/1.1" 401 150 "-" "curl/8.15.0" diff --git a/logs/error.log b/logs/error.log index 1939991..1ed1457 100644 --- a/logs/error.log +++ b/logs/error.log @@ -25885,3 +25885,18772 @@ DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"195bf3 2025/08/20 06:17:08 [debug] 596585#596585: setproctitle: "nginx: worker process" 2025/08/20 06:17:08 [debug] 596585#596585: worker cycle 2025/08/20 06:17:08 [debug] 596585#596585: epoll timer: -1 +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:5 ev:0001 d:00007B8241768010 +2025/08/20 06:23:49 [debug] 596585#596585: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:23:49 [debug] 596585#596585: posix_memalign: 000063BBFB3AC840:512 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 accept: 127.0.0.1:44990 fd:6 +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer add: 6: 60000:252222118 +2025/08/20 06:23:49 [debug] 596585#596585: *1 reusable connection: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:23:49 [debug] 596585#596585: timer delta: 400497 +2025/08/20 06:23:49 [debug] 596585#596585: worker cycle +2025/08/20 06:23:49 [debug] 596585#596585: epoll timer: 60000 +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:6 ev:0001 d:00007B82417681E0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http wait request handler +2025/08/20 06:23:49 [debug] 596585#596585: *1 malloc: 000063BBFB3AF0A0:1024 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: eof:0, avail:-1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: fd:6 1024 of 1024 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: avail:112 +2025/08/20 06:23:49 [debug] 596585#596585: *1 reusable connection: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB3CBA30:4096 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http process request line +2025/08/20 06:23:49 [debug] 596585#596585: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http uri: "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http args: "" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http exten: "" +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB3C1DA0:4096 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http process request header line +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Host: localhost:9001" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Accept: */*" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Content-Type: text/plain" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Content-Disposition: attachment; filename="test_blob_1755685428.txt"" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header: "Content-Length: 296" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http header done +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer del: 6: 252222118 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 rewrite phase: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: "/health" +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:23:49 [debug] 596585#596585: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:23:49 [debug] 596585#596585: *1 using configuration "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http cl:296 max:104857600 +2025/08/20 06:23:49 [debug] 596585#596585: *1 rewrite phase: 3 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "PUT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script regex: "^(PUT)$" +2025/08/20 06:23:49 [notice] 596585#596585: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script if +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script if: false +2025/08/20 06:23:49 [debug] 596585#596585: *1 post rewrite phase: 4 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 5 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 6 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 7 +2025/08/20 06:23:49 [debug] 596585#596585: *1 access phase: 8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 access phase: 9 +2025/08/20 06:23:49 [debug] 596585#596585: *1 access phase: 10 +2025/08/20 06:23:49 [debug] 596585#596585: *1 post access phase: 11 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 12 +2025/08/20 06:23:49 [debug] 596585#596585: *1 generic phase: 13 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http client request body preread 184 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http request body content length filter +2025/08/20 06:23:49 [debug] 596585#596585: *1 http body new buf t:1 f:0 000063BBFB3AF3E8, pos 000063BBFB3AF3E8, size: 184 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http read client request body +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: eof:0, avail:112 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: fd:6 112 of 112 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: avail:0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http client request body recv 112 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http body new buf t:1 f:0 000063BBFB3C2830, pos 000063BBFB3C2830, size: 112 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http client request body rest 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http init upstream, client timer: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB3B6150:4096 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "QUERY_STRING" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REQUEST_METHOD" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "PUT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "CONTENT_TYPE" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "text/plain" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "296" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SCRIPT_NAME" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REQUEST_URI" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "DOCUMENT_URI" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "./blobs" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "HTTP/1.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "http" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "CGI/1.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "nginx/" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "1.18.0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REMOTE_ADDR" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "127.0.0.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REMOTE_PORT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "44990" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REMOTE_PORT: 44990" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SERVER_ADDR" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "127.0.0.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SERVER_PORT" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "9001" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SERVER_NAME" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "localhost" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "200" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script var: "./blobs" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755685428.txt"" +2025/08/20 06:23:49 [debug] 596585#596585: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http cleanup add: 000063BBFB3C2B80 +2025/08/20 06:23:49 [debug] 596585#596585: *1 get rr peer, try: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 stream socket 10 +2025/08/20 06:23:49 [debug] 596585#596585: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:23:49 [debug] 596585#596585: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 06:23:49 [debug] 596585#596585: *1 connected +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream connect: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB395F20:128 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream send request +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream send request body +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer buf fl:0 s:1304 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer buf fl:0 s:184 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer buf fl:0 s:8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer buf fl:0 s:112 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer buf fl:0 s:8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer in: 000063BBFB3C2C10 +2025/08/20 06:23:49 [debug] 596585#596585: *1 writev: 1616 of 1616 +2025/08/20 06:23:49 [debug] 596585#596585: *1 chain writer out: 0000000000000000 +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer add: 10: 60000:252222118 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http request count:2 blk:0 +2025/08/20 06:23:49 [debug] 596585#596585: timer delta: 0 +2025/08/20 06:23:49 [debug] 596585#596585: worker cycle +2025/08/20 06:23:49 [debug] 596585#596585: epoll timer: 60000 +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:6 ev:0004 d:00007B82417681E0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http run request: "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream check client, write event:1, "/upload" +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:10 ev:0004 d:00007B82417682C8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream request: "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream dummy handler +2025/08/20 06:23:49 [debug] 596585#596585: timer delta: 2 +2025/08/20 06:23:49 [debug] 596585#596585: worker cycle +2025/08/20 06:23:49 [debug] 596585#596585: epoll timer: 59998 +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:10 ev:2005 d:00007B82417682C8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream request: "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream process header +2025/08/20 06:23:49 [debug] 596585#596585: *1 malloc: 000063BBFB3B7160:4096 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: eof:1, avail:-1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: fd:10 3480 of 4096 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 06 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 0D +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 76 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 02 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record length: 3446 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "LOG: [2025-08-20 06:23:49] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "LOG: [2025-08-20 06:23:49] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request ENTRY - method: upload, hash: 84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - calling parse_authorization_header" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj..." +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"}" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB3B8170:4096 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - Event fields before validation:" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: kind: 24242" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: created_at: 1755685428" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - calling nostr_validate_event" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - Pre-validation pubkey analysis:" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Length: DEBUG: Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57)" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: Character validation test: ALL VALID (lowercase hex)" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - nostr_validate_event returned: -32" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - Nostr event validation FAILED: -32 (Event has invalid public key)" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "DEBUG: authenticate_request - Pubkey length: Status: 401 Unauthorized" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi parser: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi header done +2025/08/20 06:23:49 [debug] 596585#596585: *1 posix_memalign: 000063BBFB3B9180:4096 @16 +2025/08/20 06:23:49 [debug] 596585#596585: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:23:49 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:23:49] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +LOG: [2025-08-20 06:23:49] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b +DEBUG: authenticate_request ENTRY - method: upload, hash: 84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x +2025/08/20 06:23:49 [debug] 596585#596585: *1 write new buf t:1 f:0 000063BBFB3B91A0, pos 000063BBFB3B91A0, size: 3442 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter: l:0 f:0 s:3442 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter limit 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 writev: 3442 of 3442 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter 0000000000000000 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http cacheable: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream process upstream +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe read upstream: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe preread: 239 +2025/08/20 06:23:49 [debug] 596585#596585: *1 readv: eof:1, avail:0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 readv: 1, last:616 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe recv chain: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe buf free s:0 t:1 f:0 000063BBFB3B7160, pos 000063BBFB3B7E09, size: 239 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe length: -1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 input buf #0 000063BBFB3B7E09 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 06 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record length: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi closed stdout +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 03 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 01 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 08 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record byte: 00 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi record length: 8 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http fastcgi sent end request +2025/08/20 06:23:49 [debug] 596585#596585: *1 input buf 000063BBFB3B7E09 213 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe write downstream: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe write downstream flush in +2025/08/20 06:23:49 [debug] 596585#596585: *1 http output filter "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http copy filter: "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http postpone filter "/upload?" 000063BBFB3C2BF0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http chunk: 213 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write new buf t:1 f:0 000063BBFB3B8FB0, pos 000063BBFB3B8FB0, size: 4 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write new buf t:1 f:0 000063BBFB3B7160, pos 000063BBFB3B7E09, size: 213 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write new buf t:0 f:0 0000000000000000, pos 000063BBF1BAC2E8, size: 2 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter: l:0 f:0 s:219 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http copy filter: 0 "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 pipe write downstream done +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer: 10, old: 252222118, new: 252222120 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream exit: 0000000000000000 +2025/08/20 06:23:49 [debug] 596585#596585: *1 finalize http upstream request: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 finalize http fastcgi request +2025/08/20 06:23:49 [debug] 596585#596585: *1 free rr peer 1 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 close http upstream connection: 10 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB395F20, unused: 48 +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer del: 10: 252222118 +2025/08/20 06:23:49 [debug] 596585#596585: *1 reusable connection: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http upstream temp fd: -1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http output filter "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http copy filter: "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http postpone filter "/upload?" 00007FFC50BA13A0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http chunk: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write old buf t:1 f:0 000063BBFB3B8FB0, pos 000063BBFB3B8FB0, size: 4 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write old buf t:1 f:0 000063BBFB3B7160, pos 000063BBFB3B7E09, size: 213 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write old buf t:0 f:0 0000000000000000, pos 000063BBF1BAC2E8, size: 2 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 write new buf t:0 f:0 0000000000000000, pos 000063BBF1BAC2E5, size: 5 file: 0, size: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter: l:1 f:0 s:224 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter limit 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 writev: 224 of 224 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http write filter 0000000000000000 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http copy filter: 0 "/upload?" +2025/08/20 06:23:49 [debug] 596585#596585: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 set http keepalive handler +2025/08/20 06:23:49 [debug] 596585#596585: *1 http close request +2025/08/20 06:23:49 [debug] 596585#596585: *1 http log handler +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3B7160 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3CBA30, unused: 3 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3C1DA0, unused: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3B6150, unused: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3B8170, unused: 58 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3B9180, unused: 622 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3AF0A0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 hc free: 0000000000000000 +2025/08/20 06:23:49 [debug] 596585#596585: *1 hc busy: 0000000000000000 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 tcp_nodelay +2025/08/20 06:23:49 [debug] 596585#596585: *1 reusable connection: 1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer add: 6: 65000:252227120 +2025/08/20 06:23:49 [debug] 596585#596585: *1 post event 000063BBFB3FD770 +2025/08/20 06:23:49 [debug] 596585#596585: timer delta: 0 +2025/08/20 06:23:49 [debug] 596585#596585: posted event 000063BBFB3FD770 +2025/08/20 06:23:49 [debug] 596585#596585: *1 delete posted event 000063BBFB3FD770 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http keepalive handler +2025/08/20 06:23:49 [debug] 596585#596585: *1 malloc: 000063BBFB3AF0A0:1024 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: eof:0, avail:0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3AF0A0 +2025/08/20 06:23:49 [debug] 596585#596585: worker cycle +2025/08/20 06:23:49 [debug] 596585#596585: epoll timer: 65000 +2025/08/20 06:23:49 [debug] 596585#596585: epoll: fd:6 ev:2005 d:00007B82417681E0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 http keepalive handler +2025/08/20 06:23:49 [debug] 596585#596585: *1 malloc: 000063BBFB3AF0A0:1024 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: eof:1, avail:-1 +2025/08/20 06:23:49 [debug] 596585#596585: *1 recv: fd:6 0 of 1024 +2025/08/20 06:23:49 [info] 596585#596585: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 06:23:49 [debug] 596585#596585: *1 close http connection: 6 +2025/08/20 06:23:49 [debug] 596585#596585: *1 event timer del: 6: 252227120 +2025/08/20 06:23:49 [debug] 596585#596585: *1 reusable connection: 0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3AF0A0 +2025/08/20 06:23:49 [debug] 596585#596585: *1 free: 000063BBFB3AC840, unused: 120 +2025/08/20 06:23:49 [debug] 596585#596585: timer delta: 2 +2025/08/20 06:23:49 [debug] 596585#596585: worker cycle +2025/08/20 06:23:49 [debug] 596585#596585: epoll timer: -1 +2025/08/20 06:39:33 [notice] 596584#596584: signal 15 (SIGTERM) received from 600292, exiting +2025/08/20 06:39:33 [debug] 596584#596584: wake up, sigio 0 +2025/08/20 06:39:33 [debug] 596584#596584: child: 0 596585 e:0 t:0 d:0 r:1 j:0 +2025/08/20 06:39:33 [debug] 596584#596584: termination cycle: 50 +2025/08/20 06:39:33 [debug] 596584#596584: sigsuspend +2025/08/20 06:39:33 [debug] 596585#596585: epoll: fd:7 ev:0001 d:00007B82417680F8 +2025/08/20 06:39:33 [debug] 596585#596585: channel handler +2025/08/20 06:39:33 [debug] 596585#596585: channel: 32 +2025/08/20 06:39:33 [debug] 596585#596585: channel command: 4 +2025/08/20 06:39:33 [debug] 596585#596585: channel: -2 +2025/08/20 06:39:33 [debug] 596585#596585: timer delta: 944187 +2025/08/20 06:39:33 [notice] 596585#596585: exiting +2025/08/20 06:39:33 [debug] 596585#596585: flush files +2025/08/20 06:39:33 [debug] 596585#596585: run cleanup: 000063BBFB3FAA80 +2025/08/20 06:39:33 [debug] 596585#596585: run cleanup: 000063BBFB3EDA18 +2025/08/20 06:39:33 [debug] 596585#596585: cleanup resolver +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3FBDE0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3EEBE0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3CDB50 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3CCA40 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3C6A10 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3C5950 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3C4890 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3C37D0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3BB170 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3B2140, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3BC580, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3C7A20, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3CEB60, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3D2B70, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3D6B80, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3DAB90, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3DEBA0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3E2BB0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3E6BC0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3EABD0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3EFDB0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3F3DC0, unused: 0 +2025/08/20 06:39:33 [debug] 596585#596585: free: 000063BBFB3F7DD0, unused: 4920 +2025/08/20 06:39:33 [notice] 596585#596585: exit +2025/08/20 06:39:33 [notice] 596584#596584: signal 17 (SIGCHLD) received from 596585 +2025/08/20 06:39:33 [notice] 596584#596584: worker process 596585 exited with code 0 +2025/08/20 06:39:33 [debug] 596584#596584: shmtx forced unlock +2025/08/20 06:39:33 [debug] 596584#596584: wake up, sigio 3 +2025/08/20 06:39:33 [debug] 596584#596584: reap children +2025/08/20 06:39:33 [debug] 596584#596584: child: 0 596585 e:1 t:1 d:0 r:1 j:0 +2025/08/20 06:39:33 [notice] 596584#596584: exit +2025/08/20 06:39:33 [debug] 596584#596584: close listening 0.0.0.0:9001 #5 +2025/08/20 06:39:33 [debug] 596584#596584: run cleanup: 000063BBFB3EDA18 +2025/08/20 06:39:33 [debug] 596584#596584: cleanup resolver +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3FBDE0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3EEBE0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3CDB50 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3CCA40 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3C6A10 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3C5950 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3C4890 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3C37D0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3BB170 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3B2140, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3BC580, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3C7A20, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3CEB60, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3D2B70, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3D6B80, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3DAB90, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3DEBA0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3E2BB0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3E6BC0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3EABD0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3EFDB0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3F3DC0, unused: 0 +2025/08/20 06:39:33 [debug] 596584#596584: free: 000063BBFB3F7DD0, unused: 4951 +2025/08/20 06:39:36 [debug] 600333#600333: bind() 0.0.0.0:9001 #5 +2025/08/20 06:39:36 [debug] 600333#600333: counter: 000078E5400EB080, 1 +2025/08/20 06:39:36 [debug] 600334#600334: bind() 0.0.0.0:9001 #5 +2025/08/20 06:39:36 [notice] 600334#600334: using the "epoll" event method +2025/08/20 06:39:36 [debug] 600334#600334: counter: 00007874A870C080, 1 +2025/08/20 06:39:36 [notice] 600334#600334: nginx/1.18.0 (Ubuntu) +2025/08/20 06:39:36 [notice] 600334#600334: OS: Linux 6.12.10-76061203-generic +2025/08/20 06:39:36 [notice] 600334#600334: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 06:39:36 [debug] 600335#600334: write: 6, 00007FFC3A90CE30, 7, 0 +2025/08/20 06:39:36 [debug] 600335#600335: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 06:39:36 [notice] 600335#600335: start worker processes +2025/08/20 06:39:36 [debug] 600335#600335: channel 6:7 +2025/08/20 06:39:36 [notice] 600335#600335: start worker process 600336 +2025/08/20 06:39:36 [debug] 600335#600335: sigsuspend +2025/08/20 06:39:36 [debug] 600336#600336: add cleanup: 000056D57978AA80 +2025/08/20 06:39:36 [debug] 600336#600336: malloc: 000056D57973DBD0:8 +2025/08/20 06:39:36 [debug] 600336#600336: notify eventfd: 9 +2025/08/20 06:39:36 [debug] 600336#600336: testing the EPOLLRDHUP flag: success +2025/08/20 06:39:36 [debug] 600336#600336: malloc: 000056D579750590:6144 +2025/08/20 06:39:36 [debug] 600336#600336: malloc: 00007874A8504010:237568 +2025/08/20 06:39:36 [debug] 600336#600336: malloc: 000056D57978D6B0:98304 +2025/08/20 06:39:36 [debug] 600336#600336: malloc: 000056D5797A56C0:98304 +2025/08/20 06:39:36 [debug] 600336#600336: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 06:39:36 [debug] 600336#600336: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 06:39:36 [debug] 600336#600336: setproctitle: "nginx: worker process" +2025/08/20 06:39:36 [debug] 600336#600336: worker cycle +2025/08/20 06:39:36 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:39:45 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:39:45 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *1 accept: 127.0.0.1:41008 fd:6 +2025/08/20 06:39:45 [debug] 600336#600336: *1 event timer add: 6: 60000:253178398 +2025/08/20 06:39:45 [debug] 600336#600336: *1 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 8326 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http wait request handler +2025/08/20 06:39:45 [debug] 600336#600336: *1 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *1 recv: eof:0, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 recv: fd:6 84 of 1024 +2025/08/20 06:39:45 [debug] 600336#600336: *1 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http process request line +2025/08/20 06:39:45 [debug] 600336#600336: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http uri: "/health" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http args: "" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http exten: "" +2025/08/20 06:39:45 [debug] 600336#600336: *1 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http process request header line +2025/08/20 06:39:45 [debug] 600336#600336: *1 http header: "Host: localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http header: "Accept: */*" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http header done +2025/08/20 06:39:45 [debug] 600336#600336: *1 event timer del: 6: 253178398 +2025/08/20 06:39:45 [debug] 600336#600336: *1 generic phase: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 rewrite phase: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 test location: "/health" +2025/08/20 06:39:45 [debug] 600336#600336: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:39:45 [debug] 600336#600336: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *1 using configuration "/health" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http cl:-1 max:104857600 +2025/08/20 06:39:45 [debug] 600336#600336: *1 rewrite phase: 3 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http set discard body +2025/08/20 06:39:45 [debug] 600336#600336: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:39:45 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:39:45 [debug] 600336#600336: *1 write new buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 196 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http write filter: l:0 f:0 s:196 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http output filter "/health?" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http copy filter: "/health?" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http postpone filter "/health?" 00007FFC3A90C9C0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 write old buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 196 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 write new buf t:0 f:0 0000000000000000, pos 000056D579779B42, size: 3 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http write filter: l:1 f:0 s:199 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http write filter limit 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 writev: 199 of 199 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http write filter 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http copy filter: 0 "/health?" +2025/08/20 06:39:45 [debug] 600336#600336: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 set http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *1 http close request +2025/08/20 06:39:45 [debug] 600336#600336: *1 http log handler +2025/08/20 06:39:45 [debug] 600336#600336: *1 free: 000056D57975BA30, unused: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 free: 000056D579751DA0, unused: 2736 +2025/08/20 06:39:45 [debug] 600336#600336: *1 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 hc free: 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *1 hc busy: 0000000000000000 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 tcp_nodelay +2025/08/20 06:39:45 [debug] 600336#600336: *1 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 event timer add: 6: 65000:253183398 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:2001 d:00007874A85041E0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *1 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *1 recv: eof:1, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *1 recv: fd:6 0 of 1024 +2025/08/20 06:39:45 [info] 600336#600336: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 06:39:45 [debug] 600336#600336: *1 close http connection: 6 +2025/08/20 06:39:45 [debug] 600336#600336: *1 event timer del: 6: 253183398 +2025/08/20 06:39:45 [debug] 600336#600336: *1 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *1 free: 000056D57973C840, unused: 136 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:39:45 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:39:45 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 accept: 127.0.0.1:41010 fd:6 +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer add: 6: 60000:253178719 +2025/08/20 06:39:45 [debug] 600336#600336: *2 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 320 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http wait request handler +2025/08/20 06:39:45 [debug] 600336#600336: *2 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: eof:0, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: fd:6 1024 of 1024 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: avail:112 +2025/08/20 06:39:45 [debug] 600336#600336: *2 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http process request line +2025/08/20 06:39:45 [debug] 600336#600336: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http uri: "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http args: "" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http exten: "" +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http process request header line +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Host: localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Accept: */*" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxM2I1NTU3ZWQwYjBkMzgzOWM1YmQ0YmNjMTg4NDIwMWRhNDIzYmVmZDU5YmVlMTI2MmU2MjA0ZTFhMzYyNjNmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODYzODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJmMTVhODc4NDNiOWU0ZTA2ZTM1OWIwOGQ1ODRlZWQ0MmIyZmUzMjE0NjQzMWNmMDAxMjRhOTZkNGVmOTdlOWQzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTk4NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImY1OTc1Y2Q5YmY4ZTU1ZWM4ODExZjFjOGI4ZmYyMmFkN2E3ZGE3NjY2ZGZkNDI2YzI4NjUyNmE5ODNiNGNmYmUwZWE0NWM1NDMyOTZiOWI2NWE0MDg3MzhiOWM5ZmUzYjNjYzAzZGQ1NmI0NDQ5NjMxMDNjMzYzYjUyMzNlMmMwIn0=" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Content-Type: text/plain" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755686385.txt"" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header: "Content-Length: 296" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http header done +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer del: 6: 253178719 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 rewrite phase: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: "/health" +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *2 using configuration "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http cl:296 max:104857600 +2025/08/20 06:39:45 [debug] 600336#600336: *2 rewrite phase: 3 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "PUT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script regex: "^(PUT)$" +2025/08/20 06:39:45 [notice] 600336#600336: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script if +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script if: false +2025/08/20 06:39:45 [debug] 600336#600336: *2 post rewrite phase: 4 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 5 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 6 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 7 +2025/08/20 06:39:45 [debug] 600336#600336: *2 access phase: 8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 access phase: 9 +2025/08/20 06:39:45 [debug] 600336#600336: *2 access phase: 10 +2025/08/20 06:39:45 [debug] 600336#600336: *2 post access phase: 11 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 12 +2025/08/20 06:39:45 [debug] 600336#600336: *2 generic phase: 13 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http client request body preread 184 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http request body content length filter +2025/08/20 06:39:45 [debug] 600336#600336: *2 http body new buf t:1 f:0 000056D57973F3E8, pos 000056D57973F3E8, size: 184 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http read client request body +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: eof:0, avail:112 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: fd:6 112 of 112 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: avail:0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http client request body recv 112 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http body new buf t:1 f:0 000056D579752830, pos 000056D579752830, size: 112 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http client request body rest 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http init upstream, client timer: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D579746150:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "QUERY_STRING" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REQUEST_METHOD" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "PUT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "CONTENT_TYPE" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "text/plain" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "296" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SCRIPT_NAME" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REQUEST_URI" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "DOCUMENT_URI" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "./blobs" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "HTTP/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "http" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "CGI/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "nginx/" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "1.18.0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REMOTE_ADDR" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "127.0.0.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REMOTE_PORT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "41010" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REMOTE_PORT: 41010" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SERVER_ADDR" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "127.0.0.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SERVER_PORT" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SERVER_NAME" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "localhost" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "200" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script var: "./blobs" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxM2I1NTU3ZWQwYjBkMzgzOWM1YmQ0YmNjMTg4NDIwMWRhNDIzYmVmZDU5YmVlMTI2MmU2MjA0ZTFhMzYyNjNmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODYzODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJmMTVhODc4NDNiOWU0ZTA2ZTM1OWIwOGQ1ODRlZWQ0MmIyZmUzMjE0NjQzMWNmMDAxMjRhOTZkNGVmOTdlOWQzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTk4NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImY1OTc1Y2Q5YmY4ZTU1ZWM4ODExZjFjOGI4ZmYyMmFkN2E3ZGE3NjY2ZGZkNDI2YzI4NjUyNmE5ODNiNGNmYmUwZWE0NWM1NDMyOTZiOWI2NWE0MDg3MzhiOWM5ZmUzYjNjYzAzZGQ1NmI0NDQ5NjMxMDNjMzYzYjUyMzNlMmMwIn0=" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755686385.txt"" +2025/08/20 06:39:45 [debug] 600336#600336: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http cleanup add: 000056D579752B80 +2025/08/20 06:39:45 [debug] 600336#600336: *2 get rr peer, try: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 stream socket 10 +2025/08/20 06:39:45 [debug] 600336#600336: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:39:45 [debug] 600336#600336: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 06:39:45 [debug] 600336#600336: *2 connected +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream connect: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D579725F20:128 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream send request +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream send request body +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer buf fl:0 s:1304 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer buf fl:0 s:184 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer buf fl:0 s:8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer buf fl:0 s:112 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer buf fl:0 s:8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer in: 000056D579752C10 +2025/08/20 06:39:45 [debug] 600336#600336: *2 writev: 1616 of 1616 +2025/08/20 06:39:45 [debug] 600336#600336: *2 chain writer out: 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer add: 10: 60000:253178719 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http request count:2 blk:0 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:0004 d:00007874A85041E1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http run request: "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream check client, write event:1, "/upload" +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:10 ev:0004 d:00007874A85042C8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream request: "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream dummy handler +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 2 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 59998 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:10 ev:2005 d:00007874A85042C8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream request: "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http upstream process header +2025/08/20 06:39:45 [debug] 600336#600336: *2 malloc: 000056D579747160:4096 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: eof:1, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: fd:10 4096 of 4096 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: avail:616 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 01 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 06 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 00 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 01 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 12 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 45 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 03 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record byte: 00 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi record length: 4677 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "LOG: [2025-08-20 06:39:45] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxM2I1NTU3ZWQwYjBkMzgzOWM1YmQ0YmNjMTg4NDIwMWRhNDIzYmVmZDU5YmVlMTI2MmU2MjA0ZTFhMzYyNjNmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODYzODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJmMTVhODc4NDNiOWU0ZTA2ZTM1OWIwOGQ1ODRlZWQ0MmIyZmUzMjE0NjQzMWNmMDAxMjRhOTZkNGVmOTdlOWQzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTk4NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImY1OTc1Y2Q5YmY4ZTU1ZWM4ODExZjFjOGI4ZmYyMmFkN2E3ZGE3NjY2ZGZkNDI2YzI4NjUyNmE5ODNiNGNmYmUwZWE0NWM1NDMyOTZiOWI2NWE0MDg3MzhiOWM5ZmUzYjNjYzAzZGQ1NmI0NDQ5NjMxMDNjMzYzYjUyMzNlMmMwIn0=" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "LOG: [2025-08-20 06:39:45] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request ENTRY - method: upload, hash: f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - calling parse_authorization_header" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxM2I1NTU3ZWQwYjBk..." +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"13b5557ed0b0d3839c5bd4bcc1884201da423befd59bee1262e6204e1a36263f","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755686385,"tags":[["t","upload"],["x","f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3"],["expiration","1755689985"]],"content":"","sig":"f5975cd9bf8e55ec8811f1c8b8ff22ad7a7da7666dfd426c286526a983b4cfbe0ea45c543296b9b65a408738b9c9fe3b3cc03dd56b444963103c363b5233e2c0"}" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D579748170:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Parsed JSON: {" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "kind": 24242," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "id": "13b5557ed0b0d3839c5bd4bcc1884201da423befd59bee1262e6204e1a36263f"," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "created_at": 1755686385," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "tags": [["t", "upload"], ["x", "f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3"], ["expiration", "1755689985"]]," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "content": ""," +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: " "sig": "f5975cd9bf8e55ec8811f1c8b8ff22ad7a7da7666dfd426c286526a983b4cfbe0ea45c543296b9b65a408738b9c9fe3b3cc03dd56b444963103c363b5233e2c0"" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "}: " +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Event fields before validation:" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: id: 13b5557ed0b0d3839c5bd4bcc1884201da423befd59bee1262e6204e1a36263f" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: sig: f5975cd9bf8e55ec8811f1c8b8ff22ad7a7da7666dfd426c286526a983b4cfbe0ea45c543296b9b65a408738b9c9fe3b3cc03dd56b444963103c363b5233e2c0" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: kind: 24242" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: created_at: 1755686385" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Detailed pubkey analysis:" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39)" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - calling nostr_validate_event" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Pre-validation pubkey analysis:" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Length: DEBUG: Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57)" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: Character validation test: ALL VALID (lowercase hex)" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Starting detailed validation analysis" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Testing structure validation..." +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success)" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi header: "DEBUG: authenticate_request - Structure validation PASSED" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http fastcgi parser: -2 +2025/08/20 06:39:45 [debug] 600336#600336: *2 upstream split a header line in FastCGI records +2025/08/20 06:39:45 [error] 600336#600336: *2 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http next upstream, 8 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free rr peer 1 4 +2025/08/20 06:39:45 [debug] 600336#600336: *2 finalize http upstream request: 502 +2025/08/20 06:39:45 [debug] 600336#600336: *2 finalize http fastcgi request +2025/08/20 06:39:45 [debug] 600336#600336: *2 close http upstream connection: 10 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579725F20, unused: 48 +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer del: 10: 253178719 +2025/08/20 06:39:45 [debug] 600336#600336: *2 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http finalize request: 502, "/upload?" a:1, c:1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http special response: 502, "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 HTTP/1.1 502 Bad Gateway +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:39:45 GMT +Content-Type: text/html +Content-Length: 166 +Connection: keep-alive + +2025/08/20 06:39:45 [debug] 600336#600336: *2 write new buf t:1 f:0 000056D579749068, pos 000056D579749068, size: 166 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http write filter: l:0 f:0 s:166 +2025/08/20 06:39:45 [debug] 600336#600336: *2 posix_memalign: 000056D579749180:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http output filter "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http copy filter: "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http postpone filter "/upload?" 000056D579752BF0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 write old buf t:1 f:0 000056D579749068, pos 000056D579749068, size: 166 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E5A40, size: 104 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6C80, size: 62 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http write filter: l:1 f:0 s:332 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http write filter limit 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 writev: 332 of 332 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http write filter 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http copy filter: 0 "/upload?" +2025/08/20 06:39:45 [debug] 600336#600336: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 set http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *2 http close request +2025/08/20 06:39:45 [debug] 600336#600336: *2 http log handler +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579747160 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D57975BA30, unused: 3 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579751DA0, unused: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579746150, unused: 2 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579748170, unused: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D579749180, unused: 3722 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 hc free: 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *2 hc busy: 0000000000000000 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 tcp_nodelay +2025/08/20 06:39:45 [debug] 600336#600336: *2 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer add: 6: 65000:253183722 +2025/08/20 06:39:45 [debug] 600336#600336: *2 post event 000056D57978D770 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:39:45 [debug] 600336#600336: posted event 000056D57978D770 +2025/08/20 06:39:45 [debug] 600336#600336: *2 delete posted event 000056D57978D770 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *2 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: eof:0, avail:0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:2005 d:00007874A85041E1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *2 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: eof:1, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *2 recv: fd:6 0 of 1024 +2025/08/20 06:39:45 [info] 600336#600336: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 06:39:45 [debug] 600336#600336: *2 close http connection: 6 +2025/08/20 06:39:45 [debug] 600336#600336: *2 event timer del: 6: 253183722 +2025/08/20 06:39:45 [debug] 600336#600336: *2 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *2 free: 000056D57973C840, unused: 120 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 2 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:39:45 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:39:45 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *4 accept: 127.0.0.1:41014 fd:6 +2025/08/20 06:39:45 [debug] 600336#600336: *4 event timer add: 6: 60000:253178735 +2025/08/20 06:39:45 [debug] 600336#600336: *4 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 11 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http wait request handler +2025/08/20 06:39:45 [debug] 600336#600336: *4 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *4 recv: eof:0, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 recv: fd:6 142 of 1024 +2025/08/20 06:39:45 [debug] 600336#600336: *4 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http process request line +2025/08/20 06:39:45 [debug] 600336#600336: *4 http request line: "GET /f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3 HTTP/1.1" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http uri: "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http args: "" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http exten: "" +2025/08/20 06:39:45 [debug] 600336#600336: *4 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http process request header line +2025/08/20 06:39:45 [debug] 600336#600336: *4 http header: "Host: localhost:9001" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http header: "Accept: */*" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http header done +2025/08/20 06:39:45 [debug] 600336#600336: *4 event timer del: 6: 253178735 +2025/08/20 06:39:45 [debug] 600336#600336: *4 generic phase: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 rewrite phase: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 test location: "/health" +2025/08/20 06:39:45 [debug] 600336#600336: *4 test location: "/debug/list" +2025/08/20 06:39:45 [debug] 600336#600336: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http cl:-1 max:104857600 +2025/08/20 06:39:45 [debug] 600336#600336: *4 rewrite phase: 3 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http script var +2025/08/20 06:39:45 [debug] 600336#600336: *4 http script var: "GET" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http script value: "DELETE" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http script not equal +2025/08/20 06:39:45 [debug] 600336#600336: *4 http script if +2025/08/20 06:39:45 [debug] 600336#600336: *4 http finalize request: 404, "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" a:1, c:1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http special response: 404, "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http set discard body +2025/08/20 06:39:45 [debug] 600336#600336: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:39:45 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:39:45 [debug] 600336#600336: *4 write new buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 164 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http write filter: l:0 f:0 s:164 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http output filter "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http copy filter: "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http postpone filter "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" 000056D579752310 +2025/08/20 06:39:45 [debug] 600336#600336: *4 write old buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 164 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6580, size: 100 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6C80, size: 62 file: 0, size: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http write filter: l:1 f:0 s:326 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http write filter limit 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 writev: 326 of 326 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http write filter 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http copy filter: 0 "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" +2025/08/20 06:39:45 [debug] 600336#600336: *4 http finalize request: 0, "/f15a87843b9e4e06e359b08d584eed42b2fe32146431cf00124a96d4ef97e9d3?" a:1, c:1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 set http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *4 http close request +2025/08/20 06:39:45 [debug] 600336#600336: *4 http log handler +2025/08/20 06:39:45 [debug] 600336#600336: *4 free: 000056D57975BA30, unused: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 free: 000056D579751DA0, unused: 2456 +2025/08/20 06:39:45 [debug] 600336#600336: *4 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 hc free: 0000000000000000 +2025/08/20 06:39:45 [debug] 600336#600336: *4 hc busy: 0000000000000000 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 tcp_nodelay +2025/08/20 06:39:45 [debug] 600336#600336: *4 reusable connection: 1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 event timer add: 6: 65000:253183735 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:39:45 [debug] 600336#600336: epoll: fd:6 ev:2001 d:00007874A85041E0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 http keepalive handler +2025/08/20 06:39:45 [debug] 600336#600336: *4 malloc: 000056D57973F0A0:1024 +2025/08/20 06:39:45 [debug] 600336#600336: *4 recv: eof:1, avail:-1 +2025/08/20 06:39:45 [debug] 600336#600336: *4 recv: fd:6 0 of 1024 +2025/08/20 06:39:45 [info] 600336#600336: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 06:39:45 [debug] 600336#600336: *4 close http connection: 6 +2025/08/20 06:39:45 [debug] 600336#600336: *4 event timer del: 6: 253183735 +2025/08/20 06:39:45 [debug] 600336#600336: *4 reusable connection: 0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 free: 000056D57973F0A0 +2025/08/20 06:39:45 [debug] 600336#600336: *4 free: 000056D57973C840, unused: 136 +2025/08/20 06:39:45 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:39:45 [debug] 600336#600336: worker cycle +2025/08/20 06:39:45 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:40:50 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:40:50 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *5 accept: 127.0.0.1:35090 fd:6 +2025/08/20 06:40:50 [debug] 600336#600336: *5 event timer add: 6: 60000:253243554 +2025/08/20 06:40:50 [debug] 600336#600336: *5 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 64818 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http wait request handler +2025/08/20 06:40:50 [debug] 600336#600336: *5 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *5 recv: eof:0, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 recv: fd:6 84 of 1024 +2025/08/20 06:40:50 [debug] 600336#600336: *5 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http process request line +2025/08/20 06:40:50 [debug] 600336#600336: *5 http request line: "GET /health HTTP/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http uri: "/health" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http args: "" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http exten: "" +2025/08/20 06:40:50 [debug] 600336#600336: *5 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http process request header line +2025/08/20 06:40:50 [debug] 600336#600336: *5 http header: "Host: localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http header: "Accept: */*" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http header done +2025/08/20 06:40:50 [debug] 600336#600336: *5 event timer del: 6: 253243554 +2025/08/20 06:40:50 [debug] 600336#600336: *5 generic phase: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 rewrite phase: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 test location: "/health" +2025/08/20 06:40:50 [debug] 600336#600336: *5 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *5 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:40:50 [debug] 600336#600336: *5 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *5 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *5 using configuration "/health" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http cl:-1 max:104857600 +2025/08/20 06:40:50 [debug] 600336#600336: *5 rewrite phase: 3 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http set discard body +2025/08/20 06:40:50 [debug] 600336#600336: *5 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:40:50 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:40:50 [debug] 600336#600336: *5 write new buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 196 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http write filter: l:0 f:0 s:196 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http output filter "/health?" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http copy filter: "/health?" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http postpone filter "/health?" 00007FFC3A90C9C0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 write old buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 196 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 write new buf t:0 f:0 0000000000000000, pos 000056D579779B42, size: 3 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http write filter: l:1 f:0 s:199 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http write filter limit 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 writev: 199 of 199 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http write filter 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http copy filter: 0 "/health?" +2025/08/20 06:40:50 [debug] 600336#600336: *5 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 set http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *5 http close request +2025/08/20 06:40:50 [debug] 600336#600336: *5 http log handler +2025/08/20 06:40:50 [debug] 600336#600336: *5 free: 000056D57975BA30, unused: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 free: 000056D579751DA0, unused: 2736 +2025/08/20 06:40:50 [debug] 600336#600336: *5 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 hc free: 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *5 hc busy: 0000000000000000 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 tcp_nodelay +2025/08/20 06:40:50 [debug] 600336#600336: *5 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 event timer add: 6: 65000:253248554 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:2001 d:00007874A85041E1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *5 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *5 recv: eof:1, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *5 recv: fd:6 0 of 1024 +2025/08/20 06:40:50 [info] 600336#600336: *5 client 127.0.0.1 closed keepalive connection +2025/08/20 06:40:50 [debug] 600336#600336: *5 close http connection: 6 +2025/08/20 06:40:50 [debug] 600336#600336: *5 event timer del: 6: 253248554 +2025/08/20 06:40:50 [debug] 600336#600336: *5 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *5 free: 000056D57973C840, unused: 136 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:40:50 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:40:50 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 accept: 127.0.0.1:42428 fd:6 +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer add: 6: 60000:253243829 +2025/08/20 06:40:50 [debug] 600336#600336: *6 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 274 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http wait request handler +2025/08/20 06:40:50 [debug] 600336#600336: *6 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: eof:0, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: fd:6 1024 of 1024 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: avail:112 +2025/08/20 06:40:50 [debug] 600336#600336: *6 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http process request line +2025/08/20 06:40:50 [debug] 600336#600336: *6 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http uri: "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http args: "" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http exten: "" +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http process request header line +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Host: localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Accept: */*" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIyMjI3MzU5M2ZmNmQyNDZiNWI5ZjE0ZTAyYjJlNTY0Njc5OTIzNDgwNGE1ODNkYmEzYWE5YThlNTU2OTQ3NjRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY0NTAsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYmUyYjMzYmZiNDgyMTVmNzIzZjgwNGEwN2NiM2VkMTc1MTViYjgwMGQ4ZGVkZTQ4N2YyZWE1NjY0OWU5NzA5Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDA1MCJdXSwiY29udGVudCI6IiIsInNpZyI6IjlkOGYxMmE1Y2E3Y2ZhM2IyNTAxZDUzZmJiYjAwMzI5NmRlMTNkNTQ5ODQxYzQ0OWNjODk0NWQxNzA5MDMyM2Y0MmYzMGEwOTkyOWNiN2QxNzhlZjE2ODI4YTljN2ZhMTM3MWFjNzc5ZDRlZTFkMzZlNzg0NjFkNmM0OGE4NDE5In0=" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Content-Type: text/plain" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Content-Disposition: attachment; filename="test_blob_1755686450.txt"" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header: "Content-Length: 296" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http header done +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer del: 6: 253243829 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 rewrite phase: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: "/health" +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *6 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *6 using configuration "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http cl:296 max:104857600 +2025/08/20 06:40:50 [debug] 600336#600336: *6 rewrite phase: 3 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "PUT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script regex: "^(PUT)$" +2025/08/20 06:40:50 [notice] 600336#600336: *6 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script if +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script if: false +2025/08/20 06:40:50 [debug] 600336#600336: *6 post rewrite phase: 4 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 5 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 6 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 7 +2025/08/20 06:40:50 [debug] 600336#600336: *6 access phase: 8 +2025/08/20 06:40:50 [debug] 600336#600336: *6 access phase: 9 +2025/08/20 06:40:50 [debug] 600336#600336: *6 access phase: 10 +2025/08/20 06:40:50 [debug] 600336#600336: *6 post access phase: 11 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 12 +2025/08/20 06:40:50 [debug] 600336#600336: *6 generic phase: 13 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http client request body preread 184 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http request body content length filter +2025/08/20 06:40:50 [debug] 600336#600336: *6 http body new buf t:1 f:0 000056D57973F3E8, pos 000056D57973F3E8, size: 184 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http read client request body +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: eof:0, avail:112 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: fd:6 112 of 112 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: avail:0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http client request body recv 112 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http body new buf t:1 f:0 000056D579752830, pos 000056D579752830, size: 112 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http client request body rest 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http init upstream, client timer: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D579746150:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "QUERY_STRING" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "QUERY_STRING: " +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REQUEST_METHOD" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "PUT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "CONTENT_TYPE" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "text/plain" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "CONTENT_LENGTH" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "296" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SCRIPT_NAME" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REQUEST_URI" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "DOCUMENT_URI" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "./blobs" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "HTTP/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REQUEST_SCHEME" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "http" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "CGI/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "nginx/" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "1.18.0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REMOTE_ADDR" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "127.0.0.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REMOTE_PORT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "42428" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REMOTE_PORT: 42428" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SERVER_ADDR" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "127.0.0.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SERVER_PORT" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SERVER_NAME" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "localhost" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "REDIRECT_STATUS" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "200" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script var: "./blobs" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http script copy: "/ginxsom.fcgi" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIyMjI3MzU5M2ZmNmQyNDZiNWI5ZjE0ZTAyYjJlNTY0Njc5OTIzNDgwNGE1ODNkYmEzYWE5YThlNTU2OTQ3NjRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY0NTAsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYmUyYjMzYmZiNDgyMTVmNzIzZjgwNGEwN2NiM2VkMTc1MTViYjgwMGQ4ZGVkZTQ4N2YyZWE1NjY0OWU5NzA5Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDA1MCJdXSwiY29udGVudCI6IiIsInNpZyI6IjlkOGYxMmE1Y2E3Y2ZhM2IyNTAxZDUzZmJiYjAwMzI5NmRlMTNkNTQ5ODQxYzQ0OWNjODk0NWQxNzA5MDMyM2Y0MmYzMGEwOTkyOWNiN2QxNzhlZjE2ODI4YTljN2ZhMTM3MWFjNzc5ZDRlZTFkMzZlNzg0NjFkNmM0OGE4NDE5In0=" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755686450.txt"" +2025/08/20 06:40:50 [debug] 600336#600336: *6 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http cleanup add: 000056D579752B80 +2025/08/20 06:40:50 [debug] 600336#600336: *6 get rr peer, try: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 stream socket 10 +2025/08/20 06:40:50 [debug] 600336#600336: *6 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:40:50 [debug] 600336#600336: *6 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #7 +2025/08/20 06:40:50 [debug] 600336#600336: *6 connected +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream connect: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D579725F20:128 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream send request +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream send request body +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer buf fl:0 s:1304 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer buf fl:0 s:184 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer buf fl:0 s:8 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer buf fl:0 s:112 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer buf fl:0 s:8 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer in: 000056D579752C10 +2025/08/20 06:40:50 [debug] 600336#600336: *6 writev: 1616 of 1616 +2025/08/20 06:40:50 [debug] 600336#600336: *6 chain writer out: 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer add: 10: 60000:253243829 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http request count:2 blk:0 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:0004 d:00007874A85041E0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http run request: "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream check client, write event:1, "/upload" +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:10 ev:0004 d:00007874A85042C9 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream request: "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream dummy handler +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 2 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 59998 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:10 ev:2005 d:00007874A85042C9 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream request: "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http upstream process header +2025/08/20 06:40:50 [debug] 600336#600336: *6 malloc: 000056D579747160:4096 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: eof:1, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: fd:10 4096 of 4096 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: avail:616 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 01 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 06 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 00 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 01 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 12 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 45 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 03 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record byte: 00 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi record length: 4677 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "LOG: [2025-08-20 06:40:50] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIyMjI3MzU5M2ZmNmQyNDZiNWI5ZjE0ZTAyYjJlNTY0Njc5OTIzNDgwNGE1ODNkYmEzYWE5YThlNTU2OTQ3NjRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY0NTAsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYmUyYjMzYmZiNDgyMTVmNzIzZjgwNGEwN2NiM2VkMTc1MTViYjgwMGQ4ZGVkZTQ4N2YyZWE1NjY0OWU5NzA5Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDA1MCJdXSwiY29udGVudCI6IiIsInNpZyI6IjlkOGYxMmE1Y2E3Y2ZhM2IyNTAxZDUzZmJiYjAwMzI5NmRlMTNkNTQ5ODQxYzQ0OWNjODk0NWQxNzA5MDMyM2Y0MmYzMGEwOTkyOWNiN2QxNzhlZjE2ODI4YTljN2ZhMTM3MWFjNzc5ZDRlZTFkMzZlNzg0NjFkNmM0OGE4NDE5In0=" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "LOG: [2025-08-20 06:40:50] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request ENTRY - method: upload, hash: bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - calling parse_authorization_header" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIyMjI3MzU5M2ZmNmQy..." +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - calling cJSON_Parse on: {"kind":24242,"id":"22273593ff6d246b5b9f14e02b2e5646799234804a583dba3aa9a8e55694764c","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755686450,"tags":[["t","upload"],["x","bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709"],["expiration","1755690050"]],"content":"","sig":"9d8f12a5ca7cfa3b2501d53fbbb003296de13d549841c449cc8945d17090323f42f30a09929cb7d178ef16828a9c7fa1371ac779d4ee1d36e78461d6c48a8419"}" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D579748170:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Parsed JSON: {" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "kind": 24242," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "id": "22273593ff6d246b5b9f14e02b2e5646799234804a583dba3aa9a8e55694764c"," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "created_at": 1755686450," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "tags": [["t", "upload"], ["x", "bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709"], ["expiration", "1755690050"]]," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "content": ""," +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: " "sig": "9d8f12a5ca7cfa3b2501d53fbbb003296de13d549841c449cc8945d17090323f42f30a09929cb7d178ef16828a9c7fa1371ac779d4ee1d36e78461d6c48a8419"" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "}: " +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Event fields before validation:" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: id: 22273593ff6d246b5b9f14e02b2e5646799234804a583dba3aa9a8e55694764c" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: sig: 9d8f12a5ca7cfa3b2501d53fbbb003296de13d549841c449cc8945d17090323f42f30a09929cb7d178ef16828a9c7fa1371ac779d4ee1d36e78461d6c48a8419" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: kind: 24242" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: created_at: 1755686450" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Detailed pubkey analysis:" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39)" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - calling nostr_validate_event" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Pre-validation pubkey analysis:" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Length: DEBUG: Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57)" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: Character validation test: ALL VALID (lowercase hex)" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Starting detailed validation analysis" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Testing structure validation..." +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success)" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi header: "DEBUG: authenticate_request - Structure validation PASSED" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http fastcgi parser: -2 +2025/08/20 06:40:50 [debug] 600336#600336: *6 upstream split a header line in FastCGI records +2025/08/20 06:40:50 [error] 600336#600336: *6 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http next upstream, 8 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free rr peer 1 4 +2025/08/20 06:40:50 [debug] 600336#600336: *6 finalize http upstream request: 502 +2025/08/20 06:40:50 [debug] 600336#600336: *6 finalize http fastcgi request +2025/08/20 06:40:50 [debug] 600336#600336: *6 close http upstream connection: 10 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579725F20, unused: 48 +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer del: 10: 253243829 +2025/08/20 06:40:50 [debug] 600336#600336: *6 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http finalize request: 502, "/upload?" a:1, c:1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http special response: 502, "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 HTTP/1.1 502 Bad Gateway +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:40:50 GMT +Content-Type: text/html +Content-Length: 166 +Connection: keep-alive + +2025/08/20 06:40:50 [debug] 600336#600336: *6 write new buf t:1 f:0 000056D579749068, pos 000056D579749068, size: 166 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http write filter: l:0 f:0 s:166 +2025/08/20 06:40:50 [debug] 600336#600336: *6 posix_memalign: 000056D579749180:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http output filter "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http copy filter: "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http postpone filter "/upload?" 000056D579752BF0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 write old buf t:1 f:0 000056D579749068, pos 000056D579749068, size: 166 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E5A40, size: 104 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6C80, size: 62 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http write filter: l:1 f:0 s:332 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http write filter limit 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 writev: 332 of 332 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http write filter 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http copy filter: 0 "/upload?" +2025/08/20 06:40:50 [debug] 600336#600336: *6 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 set http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *6 http close request +2025/08/20 06:40:50 [debug] 600336#600336: *6 http log handler +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579747160 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D57975BA30, unused: 3 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579751DA0, unused: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579746150, unused: 2 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579748170, unused: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D579749180, unused: 3722 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 hc free: 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *6 hc busy: 0000000000000000 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 tcp_nodelay +2025/08/20 06:40:50 [debug] 600336#600336: *6 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer add: 6: 65000:253248832 +2025/08/20 06:40:50 [debug] 600336#600336: *6 post event 000056D57978D770 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:40:50 [debug] 600336#600336: posted event 000056D57978D770 +2025/08/20 06:40:50 [debug] 600336#600336: *6 delete posted event 000056D57978D770 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *6 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: eof:0, avail:0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:2005 d:00007874A85041E0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *6 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: eof:1, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *6 recv: fd:6 0 of 1024 +2025/08/20 06:40:50 [info] 600336#600336: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 06:40:50 [debug] 600336#600336: *6 close http connection: 6 +2025/08/20 06:40:50 [debug] 600336#600336: *6 event timer del: 6: 253248832 +2025/08/20 06:40:50 [debug] 600336#600336: *6 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *6 free: 000056D57973C840, unused: 120 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 2 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:40:50 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:40:50 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *8 accept: 127.0.0.1:42440 fd:6 +2025/08/20 06:40:50 [debug] 600336#600336: *8 event timer add: 6: 60000:253243846 +2025/08/20 06:40:50 [debug] 600336#600336: *8 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 12 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http wait request handler +2025/08/20 06:40:50 [debug] 600336#600336: *8 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *8 recv: eof:0, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 recv: fd:6 142 of 1024 +2025/08/20 06:40:50 [debug] 600336#600336: *8 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http process request line +2025/08/20 06:40:50 [debug] 600336#600336: *8 http request line: "GET /bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709 HTTP/1.1" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http uri: "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http args: "" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http exten: "" +2025/08/20 06:40:50 [debug] 600336#600336: *8 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http process request header line +2025/08/20 06:40:50 [debug] 600336#600336: *8 http header: "Host: localhost:9001" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http header: "Accept: */*" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http header done +2025/08/20 06:40:50 [debug] 600336#600336: *8 event timer del: 6: 253243846 +2025/08/20 06:40:50 [debug] 600336#600336: *8 generic phase: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 rewrite phase: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 test location: "/health" +2025/08/20 06:40:50 [debug] 600336#600336: *8 test location: "/debug/list" +2025/08/20 06:40:50 [debug] 600336#600336: *8 test location: "/" +2025/08/20 06:40:50 [debug] 600336#600336: *8 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *8 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http cl:-1 max:104857600 +2025/08/20 06:40:50 [debug] 600336#600336: *8 rewrite phase: 3 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http script var +2025/08/20 06:40:50 [debug] 600336#600336: *8 http script var: "GET" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http script value: "DELETE" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http script not equal +2025/08/20 06:40:50 [debug] 600336#600336: *8 http script if +2025/08/20 06:40:50 [debug] 600336#600336: *8 http finalize request: 404, "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" a:1, c:1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http special response: 404, "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http set discard body +2025/08/20 06:40:50 [debug] 600336#600336: *8 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:40:50 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:40:50 [debug] 600336#600336: *8 write new buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 164 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http write filter: l:0 f:0 s:164 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http output filter "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http copy filter: "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http postpone filter "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" 000056D579752310 +2025/08/20 06:40:50 [debug] 600336#600336: *8 write old buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 164 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6580, size: 100 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 write new buf t:0 f:0 0000000000000000, pos 000056D55A6E6C80, size: 62 file: 0, size: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http write filter: l:1 f:0 s:326 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http write filter limit 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 writev: 326 of 326 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http write filter 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http copy filter: 0 "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" +2025/08/20 06:40:50 [debug] 600336#600336: *8 http finalize request: 0, "/bbe2b33bfb48215f723f804a07cb3ed17515bb800d8dede487f2ea56649e9709?" a:1, c:1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 set http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *8 http close request +2025/08/20 06:40:50 [debug] 600336#600336: *8 http log handler +2025/08/20 06:40:50 [debug] 600336#600336: *8 free: 000056D57975BA30, unused: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 free: 000056D579751DA0, unused: 2456 +2025/08/20 06:40:50 [debug] 600336#600336: *8 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 hc free: 0000000000000000 +2025/08/20 06:40:50 [debug] 600336#600336: *8 hc busy: 0000000000000000 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 tcp_nodelay +2025/08/20 06:40:50 [debug] 600336#600336: *8 reusable connection: 1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 event timer add: 6: 65000:253248846 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:40:50 [debug] 600336#600336: epoll: fd:6 ev:2001 d:00007874A85041E1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 http keepalive handler +2025/08/20 06:40:50 [debug] 600336#600336: *8 malloc: 000056D57973F0A0:1024 +2025/08/20 06:40:50 [debug] 600336#600336: *8 recv: eof:1, avail:-1 +2025/08/20 06:40:50 [debug] 600336#600336: *8 recv: fd:6 0 of 1024 +2025/08/20 06:40:50 [info] 600336#600336: *8 client 127.0.0.1 closed keepalive connection +2025/08/20 06:40:50 [debug] 600336#600336: *8 close http connection: 6 +2025/08/20 06:40:50 [debug] 600336#600336: *8 event timer del: 6: 253248846 +2025/08/20 06:40:50 [debug] 600336#600336: *8 reusable connection: 0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 free: 000056D57973F0A0 +2025/08/20 06:40:50 [debug] 600336#600336: *8 free: 000056D57973C840, unused: 136 +2025/08/20 06:40:50 [debug] 600336#600336: timer delta: 1 +2025/08/20 06:40:50 [debug] 600336#600336: worker cycle +2025/08/20 06:40:50 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:41:26 [debug] 600336#600336: epoll: fd:5 ev:0001 d:00007874A8504010 +2025/08/20 06:41:26 [debug] 600336#600336: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:41:26 [debug] 600336#600336: posix_memalign: 000056D57973C840:512 @16 +2025/08/20 06:41:26 [debug] 600336#600336: *9 accept: 127.0.0.1:41444 fd:6 +2025/08/20 06:41:26 [debug] 600336#600336: *9 event timer add: 6: 60000:253279668 +2025/08/20 06:41:26 [debug] 600336#600336: *9 reusable connection: 1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:41:26 [debug] 600336#600336: timer delta: 35821 +2025/08/20 06:41:26 [debug] 600336#600336: worker cycle +2025/08/20 06:41:26 [debug] 600336#600336: epoll timer: 60000 +2025/08/20 06:41:26 [debug] 600336#600336: epoll: fd:6 ev:0001 d:00007874A85041E0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http wait request handler +2025/08/20 06:41:26 [debug] 600336#600336: *9 malloc: 000056D57973F0A0:1024 +2025/08/20 06:41:26 [debug] 600336#600336: *9 recv: eof:0, avail:-1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 recv: fd:6 143 of 1024 +2025/08/20 06:41:26 [debug] 600336#600336: *9 reusable connection: 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 posix_memalign: 000056D57975BA30:4096 @16 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http process request line +2025/08/20 06:41:26 [debug] 600336#600336: *9 http request line: "HEAD /84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b HTTP/1.1" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http uri: "/84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http args: "" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http exten: "" +2025/08/20 06:41:26 [debug] 600336#600336: *9 posix_memalign: 000056D579751DA0:4096 @16 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http process request header line +2025/08/20 06:41:26 [debug] 600336#600336: *9 http header: "Host: localhost:9001" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http header: "Accept: */*" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http header done +2025/08/20 06:41:26 [debug] 600336#600336: *9 event timer del: 6: 253279668 +2025/08/20 06:41:26 [debug] 600336#600336: *9 generic phase: 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 rewrite phase: 1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 test location: "/health" +2025/08/20 06:41:26 [debug] 600336#600336: *9 test location: "/debug/list" +2025/08/20 06:41:26 [debug] 600336#600336: *9 test location: "/" +2025/08/20 06:41:26 [debug] 600336#600336: *9 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:41:26 [debug] 600336#600336: *9 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http cl:-1 max:104857600 +2025/08/20 06:41:26 [debug] 600336#600336: *9 rewrite phase: 3 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http script var +2025/08/20 06:41:26 [debug] 600336#600336: *9 http script var: "HEAD" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http script value: "DELETE" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http script not equal +2025/08/20 06:41:26 [debug] 600336#600336: *9 http script if +2025/08/20 06:41:26 [debug] 600336#600336: *9 http finalize request: 404, "/84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b?" a:1, c:1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http special response: 404, "/84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b?" +2025/08/20 06:41:26 [debug] 600336#600336: *9 http set discard body +2025/08/20 06:41:26 [debug] 600336#600336: *9 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:41:26 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:41:26 [debug] 600336#600336: *9 write new buf t:1 f:0 000056D579752180, pos 000056D579752180, size: 164 file: 0, size: 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http write filter: l:1 f:0 s:164 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http write filter limit 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 writev: 164 of 164 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http write filter 0000000000000000 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http finalize request: 0, "/84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b?" a:1, c:1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 set http keepalive handler +2025/08/20 06:41:26 [debug] 600336#600336: *9 http close request +2025/08/20 06:41:26 [debug] 600336#600336: *9 http log handler +2025/08/20 06:41:26 [debug] 600336#600336: *9 free: 000056D57975BA30, unused: 80 +2025/08/20 06:41:26 [debug] 600336#600336: *9 free: 000056D579751DA0, unused: 2738 +2025/08/20 06:41:26 [debug] 600336#600336: *9 free: 000056D57973F0A0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 hc free: 0000000000000000 +2025/08/20 06:41:26 [debug] 600336#600336: *9 hc busy: 0000000000000000 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 tcp_nodelay +2025/08/20 06:41:26 [debug] 600336#600336: *9 reusable connection: 1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 event timer add: 6: 65000:253284668 +2025/08/20 06:41:26 [debug] 600336#600336: timer delta: 0 +2025/08/20 06:41:26 [debug] 600336#600336: worker cycle +2025/08/20 06:41:26 [debug] 600336#600336: epoll timer: 65000 +2025/08/20 06:41:26 [debug] 600336#600336: epoll: fd:6 ev:2001 d:00007874A85041E0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 http keepalive handler +2025/08/20 06:41:26 [debug] 600336#600336: *9 malloc: 000056D57973F0A0:1024 +2025/08/20 06:41:26 [debug] 600336#600336: *9 recv: eof:1, avail:-1 +2025/08/20 06:41:26 [debug] 600336#600336: *9 recv: fd:6 0 of 1024 +2025/08/20 06:41:26 [info] 600336#600336: *9 client 127.0.0.1 closed keepalive connection +2025/08/20 06:41:26 [debug] 600336#600336: *9 close http connection: 6 +2025/08/20 06:41:26 [debug] 600336#600336: *9 event timer del: 6: 253284668 +2025/08/20 06:41:26 [debug] 600336#600336: *9 reusable connection: 0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 free: 000056D57973F0A0 +2025/08/20 06:41:26 [debug] 600336#600336: *9 free: 000056D57973C840, unused: 136 +2025/08/20 06:41:26 [debug] 600336#600336: timer delta: 2 +2025/08/20 06:41:26 [debug] 600336#600336: worker cycle +2025/08/20 06:41:26 [debug] 600336#600336: epoll timer: -1 +2025/08/20 06:45:17 [notice] 600335#600335: signal 15 (SIGTERM) received from 601543, exiting +2025/08/20 06:45:17 [debug] 600335#600335: wake up, sigio 0 +2025/08/20 06:45:17 [debug] 600335#600335: child: 0 600336 e:0 t:0 d:0 r:1 j:0 +2025/08/20 06:45:17 [debug] 600335#600335: termination cycle: 50 +2025/08/20 06:45:17 [debug] 600335#600335: sigsuspend +2025/08/20 06:45:17 [debug] 600336#600336: epoll: fd:7 ev:0001 d:00007874A85040F8 +2025/08/20 06:45:17 [debug] 600336#600336: channel handler +2025/08/20 06:45:17 [debug] 600336#600336: channel: 32 +2025/08/20 06:45:17 [debug] 600336#600336: channel command: 4 +2025/08/20 06:45:17 [debug] 600336#600336: channel: -2 +2025/08/20 06:45:17 [debug] 600336#600336: timer delta: 231395 +2025/08/20 06:45:17 [notice] 600336#600336: exiting +2025/08/20 06:45:17 [debug] 600336#600336: flush files +2025/08/20 06:45:17 [debug] 600336#600336: run cleanup: 000056D57978AA80 +2025/08/20 06:45:17 [debug] 600336#600336: run cleanup: 000056D57977DA18 +2025/08/20 06:45:17 [debug] 600336#600336: cleanup resolver +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57978BDE0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57977EBE0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57975DB50 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57975CA40 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579756A10 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579755950 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579754890 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D5797537D0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57974B170 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579742140, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57974C580, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579757A20, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57975EB60, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579762B70, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579766B80, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57976AB90, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57976EBA0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579772BB0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579776BC0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57977ABD0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D57977FDB0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579783DC0, unused: 0 +2025/08/20 06:45:17 [debug] 600336#600336: free: 000056D579787DD0, unused: 4920 +2025/08/20 06:45:17 [notice] 600336#600336: exit +2025/08/20 06:45:17 [notice] 600335#600335: signal 17 (SIGCHLD) received from 600336 +2025/08/20 06:45:17 [notice] 600335#600335: worker process 600336 exited with code 0 +2025/08/20 06:45:17 [debug] 600335#600335: shmtx forced unlock +2025/08/20 06:45:17 [debug] 600335#600335: wake up, sigio 3 +2025/08/20 06:45:17 [debug] 600335#600335: reap children +2025/08/20 06:45:17 [debug] 600335#600335: child: 0 600336 e:1 t:1 d:0 r:1 j:0 +2025/08/20 06:45:17 [notice] 600335#600335: exit +2025/08/20 06:45:17 [debug] 600335#600335: close listening 0.0.0.0:9001 #5 +2025/08/20 06:45:17 [debug] 600335#600335: run cleanup: 000056D57977DA18 +2025/08/20 06:45:17 [debug] 600335#600335: cleanup resolver +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57978BDE0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57977EBE0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57975DB50 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57975CA40 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579756A10 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579755950 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579754890 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D5797537D0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57974B170 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579742140, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57974C580, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579757A20, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57975EB60, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579762B70, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579766B80, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57976AB90, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57976EBA0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579772BB0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579776BC0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57977ABD0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D57977FDB0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579783DC0, unused: 0 +2025/08/20 06:45:17 [debug] 600335#600335: free: 000056D579787DD0, unused: 4951 +2025/08/20 06:45:22 [debug] 601586#601586: bind() 0.0.0.0:9001 #5 +2025/08/20 06:45:22 [debug] 601586#601586: counter: 000074E156B00080, 1 +2025/08/20 06:45:22 [debug] 601587#601587: bind() 0.0.0.0:9001 #5 +2025/08/20 06:45:22 [notice] 601587#601587: using the "epoll" event method +2025/08/20 06:45:22 [debug] 601587#601587: counter: 00007C850D4DB080, 1 +2025/08/20 06:45:22 [notice] 601587#601587: nginx/1.18.0 (Ubuntu) +2025/08/20 06:45:22 [notice] 601587#601587: OS: Linux 6.12.10-76061203-generic +2025/08/20 06:45:22 [notice] 601587#601587: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 06:45:22 [debug] 601588#601587: write: 6, 00007FFD28354410, 7, 0 +2025/08/20 06:45:22 [debug] 601588#601588: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 06:45:22 [notice] 601588#601588: start worker processes +2025/08/20 06:45:22 [debug] 601588#601588: channel 6:7 +2025/08/20 06:45:22 [notice] 601588#601588: start worker process 601589 +2025/08/20 06:45:22 [debug] 601588#601588: sigsuspend +2025/08/20 06:45:22 [debug] 601589#601589: add cleanup: 000061B8C8C9DA80 +2025/08/20 06:45:22 [debug] 601589#601589: malloc: 000061B8C8C50BD0:8 +2025/08/20 06:45:22 [debug] 601589#601589: notify eventfd: 9 +2025/08/20 06:45:22 [debug] 601589#601589: testing the EPOLLRDHUP flag: success +2025/08/20 06:45:22 [debug] 601589#601589: malloc: 000061B8C8C63590:6144 +2025/08/20 06:45:22 [debug] 601589#601589: malloc: 00007C850D2D3010:237568 +2025/08/20 06:45:22 [debug] 601589#601589: malloc: 000061B8C8CA06B0:98304 +2025/08/20 06:45:22 [debug] 601589#601589: malloc: 000061B8C8CB86C0:98304 +2025/08/20 06:45:22 [debug] 601589#601589: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 06:45:22 [debug] 601589#601589: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 06:45:22 [debug] 601589#601589: setproctitle: "nginx: worker process" +2025/08/20 06:45:22 [debug] 601589#601589: worker cycle +2025/08/20 06:45:22 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:45:33 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:45:33 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *1 accept: 127.0.0.1:51944 fd:6 +2025/08/20 06:45:33 [debug] 601589#601589: *1 event timer add: 6: 60000:253526153 +2025/08/20 06:45:33 [debug] 601589#601589: *1 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 10278 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http wait request handler +2025/08/20 06:45:33 [debug] 601589#601589: *1 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *1 recv: eof:0, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 recv: fd:6 84 of 1024 +2025/08/20 06:45:33 [debug] 601589#601589: *1 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http process request line +2025/08/20 06:45:33 [debug] 601589#601589: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http uri: "/health" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http args: "" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http exten: "" +2025/08/20 06:45:33 [debug] 601589#601589: *1 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http process request header line +2025/08/20 06:45:33 [debug] 601589#601589: *1 http header: "Host: localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http header: "Accept: */*" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http header done +2025/08/20 06:45:33 [debug] 601589#601589: *1 event timer del: 6: 253526153 +2025/08/20 06:45:33 [debug] 601589#601589: *1 generic phase: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 rewrite phase: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 test location: "/health" +2025/08/20 06:45:33 [debug] 601589#601589: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:45:33 [debug] 601589#601589: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *1 using configuration "/health" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http cl:-1 max:104857600 +2025/08/20 06:45:33 [debug] 601589#601589: *1 rewrite phase: 3 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http set discard body +2025/08/20 06:45:33 [debug] 601589#601589: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:45:33 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:45:33 [debug] 601589#601589: *1 write new buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 196 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http write filter: l:0 f:0 s:196 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http output filter "/health?" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http copy filter: "/health?" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http postpone filter "/health?" 00007FFD28353FA0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 write old buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 196 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 write new buf t:0 f:0 0000000000000000, pos 000061B8C8C8CB42, size: 3 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http write filter: l:1 f:0 s:199 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http write filter limit 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 writev: 199 of 199 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http write filter 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http copy filter: 0 "/health?" +2025/08/20 06:45:33 [debug] 601589#601589: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 set http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *1 http close request +2025/08/20 06:45:33 [debug] 601589#601589: *1 http log handler +2025/08/20 06:45:33 [debug] 601589#601589: *1 free: 000061B8C8C6EA30, unused: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 free: 000061B8C8C64DA0, unused: 2736 +2025/08/20 06:45:33 [debug] 601589#601589: *1 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 hc free: 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *1 hc busy: 0000000000000000 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 tcp_nodelay +2025/08/20 06:45:33 [debug] 601589#601589: *1 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 event timer add: 6: 65000:253531154 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:2001 d:00007C850D2D31E0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *1 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *1 recv: eof:1, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *1 recv: fd:6 0 of 1024 +2025/08/20 06:45:33 [info] 601589#601589: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 06:45:33 [debug] 601589#601589: *1 close http connection: 6 +2025/08/20 06:45:33 [debug] 601589#601589: *1 event timer del: 6: 253531154 +2025/08/20 06:45:33 [debug] 601589#601589: *1 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *1 free: 000061B8C8C4F840, unused: 136 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:45:33 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:45:33 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 accept: 127.0.0.1:51952 fd:6 +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer add: 6: 60000:253526461 +2025/08/20 06:45:33 [debug] 601589#601589: *2 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 306 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http wait request handler +2025/08/20 06:45:33 [debug] 601589#601589: *2 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:0, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: fd:6 1024 of 1024 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: avail:112 +2025/08/20 06:45:33 [debug] 601589#601589: *2 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http process request line +2025/08/20 06:45:33 [debug] 601589#601589: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http uri: "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http args: "" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http exten: "" +2025/08/20 06:45:33 [debug] 601589#601589: *2 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http process request header line +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Host: localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Accept: */*" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmNDA2ZjIxYjQ4NjA4YmJjZTExN2E0OTA1MmU0MjI4ZGVmYTA5NzQ4MTljNTlkNTA2MzAyNjZmZjE3NGRkNzQ3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3MzMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjYTBiMDhlMWQ4ZDk2YjAxNjAyMzk0YmMzNzljNWY0OTFjNWEwMTBhM2Q0ZjhjYjc1NTY5NTg4MzExZmNiN2IzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDMzMyJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1M2ZjOTYxMGFjNWM0OGU3M2ExMzg5YjNkNjhhOTY5MDA4NGMyMWQ4NTYwYWZiMDQ3NTE5ZjRjY2UxMWRlZjlhOWU5YjJhYThlNTFmMDUxYWY4ZGJmODAzMDdhNjk4OWQ1YzNiMDdmMDIzZjA4ZjhhOGE0ZTQ0NmNjYmNkZWM3In0=" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Content-Type: text/plain" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755686733.txt"" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header: "Content-Length: 296" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http header done +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer del: 6: 253526461 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 rewrite phase: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: "/health" +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *2 using configuration "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http cl:296 max:104857600 +2025/08/20 06:45:33 [debug] 601589#601589: *2 rewrite phase: 3 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "PUT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script regex: "^(PUT)$" +2025/08/20 06:45:33 [notice] 601589#601589: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script if +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script if: false +2025/08/20 06:45:33 [debug] 601589#601589: *2 post rewrite phase: 4 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 5 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 6 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 7 +2025/08/20 06:45:33 [debug] 601589#601589: *2 access phase: 8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 access phase: 9 +2025/08/20 06:45:33 [debug] 601589#601589: *2 access phase: 10 +2025/08/20 06:45:33 [debug] 601589#601589: *2 post access phase: 11 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 12 +2025/08/20 06:45:33 [debug] 601589#601589: *2 generic phase: 13 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http client request body preread 184 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http request body content length filter +2025/08/20 06:45:33 [debug] 601589#601589: *2 http body new buf t:1 f:0 000061B8C8C523E8, pos 000061B8C8C523E8, size: 184 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http read client request body +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:0, avail:112 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: fd:6 112 of 112 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: avail:0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http client request body recv 112 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http body new buf t:1 f:0 000061B8C8C65830, pos 000061B8C8C65830, size: 112 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http client request body rest 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http init upstream, client timer: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:45:33 [debug] 601589#601589: *2 posix_memalign: 000061B8C8C59150:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "QUERY_STRING" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REQUEST_METHOD" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "PUT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "CONTENT_TYPE" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "text/plain" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "296" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SCRIPT_NAME" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REQUEST_URI" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "DOCUMENT_URI" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "./blobs" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "HTTP/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "http" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "CGI/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "nginx/" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "1.18.0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REMOTE_ADDR" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "127.0.0.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REMOTE_PORT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "51952" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REMOTE_PORT: 51952" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SERVER_ADDR" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "127.0.0.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SERVER_PORT" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SERVER_NAME" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "localhost" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "200" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script var: "./blobs" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmNDA2ZjIxYjQ4NjA4YmJjZTExN2E0OTA1MmU0MjI4ZGVmYTA5NzQ4MTljNTlkNTA2MzAyNjZmZjE3NGRkNzQ3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3MzMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjYTBiMDhlMWQ4ZDk2YjAxNjAyMzk0YmMzNzljNWY0OTFjNWEwMTBhM2Q0ZjhjYjc1NTY5NTg4MzExZmNiN2IzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDMzMyJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1M2ZjOTYxMGFjNWM0OGU3M2ExMzg5YjNkNjhhOTY5MDA4NGMyMWQ4NTYwYWZiMDQ3NTE5ZjRjY2UxMWRlZjlhOWU5YjJhYThlNTFmMDUxYWY4ZGJmODAzMDdhNjk4OWQ1YzNiMDdmMDIzZjA4ZjhhOGE0ZTQ0NmNjYmNkZWM3In0=" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755686733.txt"" +2025/08/20 06:45:33 [debug] 601589#601589: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http cleanup add: 000061B8C8C65B80 +2025/08/20 06:45:33 [debug] 601589#601589: *2 get rr peer, try: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 stream socket 10 +2025/08/20 06:45:33 [debug] 601589#601589: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:45:33 [debug] 601589#601589: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 06:45:33 [debug] 601589#601589: *2 connected +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream connect: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 posix_memalign: 000061B8C8C38F20:128 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream send request +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream send request body +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer buf fl:0 s:1304 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer buf fl:0 s:184 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer buf fl:0 s:8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer buf fl:0 s:112 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer buf fl:0 s:8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer in: 000061B8C8C65C10 +2025/08/20 06:45:33 [debug] 601589#601589: *2 writev: 1616 of 1616 +2025/08/20 06:45:33 [debug] 601589#601589: *2 chain writer out: 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer add: 10: 60000:253526462 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http request count:2 blk:0 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:0004 d:00007C850D2D31E1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http run request: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream check client, write event:1, "/upload" +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:10 ev:0004 d:00007C850D2D32C8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream request: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream dummy handler +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 2 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 59998 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:10 ev:0005 d:00007C850D2D32C8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream request: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream process header +2025/08/20 06:45:33 [debug] 601589#601589: *2 malloc: 000061B8C8C5A160:4096 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:0, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: fd:10 2560 of 4096 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "DEBUG: authenticate_request ENTRY - method: upload, hash: ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3 +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmNDA2ZjIxYjQ4NjA4... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "request - calling cJSON_Parse on: {"kind":24242,"id":"f406f21b48608bbce117a49052e4228defa0974819c59d50630266ff174dd747","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755686733,"tags":[["t","upload"],["x","ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3"],["expiration","1755690333"]],"content":"","sig":"953fc9610ac5c48e73a1389b3d68a9690084c21d8560afb047519f4cce11def9a9e9b2aa8e51f051af8dbf80307a6989d5c3b07f023f08f8a8a4e446ccbcdec7"} +DEBUG: a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "uthenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "f406f21b48608bbce117a49052e4228defa0974819c59d50630266ff174dd747", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755686733, + "tags": [["t", "upload"], ["x", "ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3"], ["expiration", "1755690333"]], + "content": "", + "sig": "953fc9610ac5c48e73a1389b3d68a9690084c21d8560af" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "b047519f4cce11def9a9e9b2aa8e51f051af8dbf80307a6989d5c3b07f023f08f8a8a4e446ccbcdec7" +} +DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: f406f21b48608bbce117a49052e4228defa0974819c59d50630266ff174dd747 +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: 953fc9610ac5c48e73a1389b3d68a9690084c21d8560afb047519f4cce11def9a9e9b2aa8e51f051af8dbf80307a6989d5c3b07f023f08f8a8a4e446ccbcdec7 +DEBUG: kind: 24242 +DEBUG: created_at: 1755686733" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_request - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:0, avail:0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream request: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream dummy handler +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 59998 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:10 ev:2005 d:00007C850D2D32C8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream request: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream process header +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:1, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: fd:10 2192 of 4096 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: F8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 504 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: " Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 12 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 06 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 274 +2025/08/20 06:45:33 [error] 601589#601589: *2 FastCGI sent in stderr: "authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 07 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 06 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 05 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 47 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 1351 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "LOG: [2025-08-20 06:45:33] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmNDA2ZjIxYjQ4NjA4YmJjZTExN2E0OTA1MmU0MjI4ZGVmYTA5NzQ4MTljNTlkNTA2MzAyNjZmZjE3NGRkNzQ3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3MzMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjYTBiMDhlMWQ4ZDk2YjAxNjAyMzk0YmMzNzljNWY0OTFjNWEwMTBhM2Q0ZjhjYjc1NTY5NTg4MzExZmNiN2IzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDMzMyJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1M2ZjOTYxMGFjNWM0OGU3M2ExMzg5YjNkNjhhOTY5MDA4NGMyMWQ4NTYwYWZiMDQ3NTE5ZjRjY2UxMWRlZjlhOWU5YjJhYThlNTFmMDUxYWY4ZGJmODAzMDdhNjk4OWQ1YzNiMDdmMDIzZjA4ZjhhOGE0ZTQ0NmNjYmNkZWM3In0=" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "LOG: [2025-08-20 06:45:33] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi parser: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi header done +2025/08/20 06:45:33 [debug] 601589#601589: *2 posix_memalign: 000061B8C8C5B170:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:45:33 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:45:33] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmNDA2ZjIxYjQ4NjA4YmJjZTExN2E0OTA1MmU0MjI4ZGVmYTA5NzQ4MTljNTlkNTA2MzAyNjZmZjE3NGRkNzQ3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3MzMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjYTBiMDhlMWQ4ZDk2YjAxNjAyMzk0YmMzNzljNWY0OTFjNWEwMTBhM2Q0ZjhjYjc1NTY5NTg4MzExZmNiN2IzIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDMzMyJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1M2ZjOTYxMGFjNWM0OGU3M2ExMzg5YjNkNjhhOTY5MDA4NGMyMWQ4NTYwYWZiMDQ3NTE5ZjRjY2UxMWRlZjlhOWU5YjJhYThlNTFmMDUxYWY4ZGJmODAzMDdhNjk4OWQ1YzNiMDdmMDIzZjA4ZjhhOGE0ZTQ0NmNjYmNkZWM3In0= +LOG: [2025-08-20 06:45:33] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3 + +2025/08/20 06:45:33 [debug] 601589#601589: *2 write new buf t:1 f:0 000061B8C8C5B190, pos 000061B8C8C5B190, size: 1259 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter: l:0 f:0 s:1259 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http cacheable: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream process upstream +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe read upstream: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe preread: 238 +2025/08/20 06:45:33 [debug] 601589#601589: *2 readv: eof:1, avail:0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 readv: 1, last:1904 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe recv chain: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe buf free s:0 t:1 f:0 000061B8C8C5A160, pos 000061B8C8C5A902, size: 238 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe length: -1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 input buf #0 000061B8C8C5A902 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 06 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi closed stdout +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 03 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 01 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 08 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record byte: 00 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi record length: 8 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http fastcgi sent end request +2025/08/20 06:45:33 [debug] 601589#601589: *2 input buf 000061B8C8C5A902 213 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe write downstream: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe write downstream flush in +2025/08/20 06:45:33 [debug] 601589#601589: *2 http output filter "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http copy filter: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http postpone filter "/upload?" 000061B8C8C65BE0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http chunk: 213 +2025/08/20 06:45:33 [debug] 601589#601589: *2 write old buf t:1 f:0 000061B8C8C5B190, pos 000061B8C8C5B190, size: 1259 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 write new buf t:1 f:0 000061B8C8C5A010, pos 000061B8C8C5A010, size: 4 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 write new buf t:1 f:0 000061B8C8C5A160, pos 000061B8C8C5A902, size: 213 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 write new buf t:0 f:0 0000000000000000, pos 000061B8BE9DD2E8, size: 2 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter: l:0 f:0 s:1478 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter limit 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 writev: 1478 of 1478 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http copy filter: 0 "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 pipe write downstream done +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer: 10, old: 253526462, new: 253526465 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream exit: 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *2 finalize http upstream request: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 finalize http fastcgi request +2025/08/20 06:45:33 [debug] 601589#601589: *2 free rr peer 1 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 close http upstream connection: 10 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C38F20, unused: 48 +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer del: 10: 253526462 +2025/08/20 06:45:33 [debug] 601589#601589: *2 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http upstream temp fd: -1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http output filter "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http copy filter: "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http postpone filter "/upload?" 00007FFD28354050 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http chunk: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 write new buf t:0 f:0 0000000000000000, pos 000061B8BE9DD2E5, size: 5 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter: l:1 f:0 s:5 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter limit 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 writev: 5 of 5 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http write filter 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http copy filter: 0 "/upload?" +2025/08/20 06:45:33 [debug] 601589#601589: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 set http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *2 http close request +2025/08/20 06:45:33 [debug] 601589#601589: *2 http log handler +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C5A160 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C6EA30, unused: 3 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C64DA0, unused: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C59150, unused: 10 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C5B170, unused: 2805 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 hc free: 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *2 hc busy: 0000000000000000 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 tcp_nodelay +2025/08/20 06:45:33 [debug] 601589#601589: *2 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer add: 6: 65000:253531465 +2025/08/20 06:45:33 [debug] 601589#601589: *2 post event 000061B8C8CA0770 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:45:33 [debug] 601589#601589: posted event 000061B8C8CA0770 +2025/08/20 06:45:33 [debug] 601589#601589: *2 delete posted event 000061B8C8CA0770 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *2 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:0, avail:0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:2005 d:00007C850D2D31E1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *2 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: eof:1, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *2 recv: fd:6 0 of 1024 +2025/08/20 06:45:33 [info] 601589#601589: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 06:45:33 [debug] 601589#601589: *2 close http connection: 6 +2025/08/20 06:45:33 [debug] 601589#601589: *2 event timer del: 6: 253531465 +2025/08/20 06:45:33 [debug] 601589#601589: *2 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *2 free: 000061B8C8C4F840, unused: 120 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 2 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:45:33 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:45:33 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *4 accept: 127.0.0.1:51968 fd:6 +2025/08/20 06:45:33 [debug] 601589#601589: *4 event timer add: 6: 60000:253526478 +2025/08/20 06:45:33 [debug] 601589#601589: *4 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 11 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http wait request handler +2025/08/20 06:45:33 [debug] 601589#601589: *4 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *4 recv: eof:0, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 recv: fd:6 142 of 1024 +2025/08/20 06:45:33 [debug] 601589#601589: *4 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http process request line +2025/08/20 06:45:33 [debug] 601589#601589: *4 http request line: "GET /ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3 HTTP/1.1" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http uri: "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http args: "" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http exten: "" +2025/08/20 06:45:33 [debug] 601589#601589: *4 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http process request header line +2025/08/20 06:45:33 [debug] 601589#601589: *4 http header: "Host: localhost:9001" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http header: "Accept: */*" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http header done +2025/08/20 06:45:33 [debug] 601589#601589: *4 event timer del: 6: 253526478 +2025/08/20 06:45:33 [debug] 601589#601589: *4 generic phase: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 rewrite phase: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 test location: "/health" +2025/08/20 06:45:33 [debug] 601589#601589: *4 test location: "/debug/list" +2025/08/20 06:45:33 [debug] 601589#601589: *4 test location: "/" +2025/08/20 06:45:33 [debug] 601589#601589: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http cl:-1 max:104857600 +2025/08/20 06:45:33 [debug] 601589#601589: *4 rewrite phase: 3 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http script var +2025/08/20 06:45:33 [debug] 601589#601589: *4 http script var: "GET" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http script value: "DELETE" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http script not equal +2025/08/20 06:45:33 [debug] 601589#601589: *4 http script if +2025/08/20 06:45:33 [debug] 601589#601589: *4 http finalize request: 404, "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" a:1, c:1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http special response: 404, "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http set discard body +2025/08/20 06:45:33 [debug] 601589#601589: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:45:33 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:45:33 [debug] 601589#601589: *4 write new buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 164 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http write filter: l:0 f:0 s:164 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http output filter "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http copy filter: "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http postpone filter "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" 000061B8C8C65310 +2025/08/20 06:45:33 [debug] 601589#601589: *4 write old buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 164 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 write new buf t:0 f:0 0000000000000000, pos 000061B8BEA1C580, size: 100 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 write new buf t:0 f:0 0000000000000000, pos 000061B8BEA1CC80, size: 62 file: 0, size: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http write filter: l:1 f:0 s:326 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http write filter limit 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 writev: 326 of 326 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http write filter 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http copy filter: 0 "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" +2025/08/20 06:45:33 [debug] 601589#601589: *4 http finalize request: 0, "/ca0b08e1d8d96b01602394bc379c5f491c5a010a3d4f8cb75569588311fcb7b3?" a:1, c:1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 set http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *4 http close request +2025/08/20 06:45:33 [debug] 601589#601589: *4 http log handler +2025/08/20 06:45:33 [debug] 601589#601589: *4 free: 000061B8C8C6EA30, unused: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 free: 000061B8C8C64DA0, unused: 2456 +2025/08/20 06:45:33 [debug] 601589#601589: *4 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 hc free: 0000000000000000 +2025/08/20 06:45:33 [debug] 601589#601589: *4 hc busy: 0000000000000000 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 tcp_nodelay +2025/08/20 06:45:33 [debug] 601589#601589: *4 reusable connection: 1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 event timer add: 6: 65000:253531478 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:45:33 [debug] 601589#601589: epoll: fd:6 ev:2001 d:00007C850D2D31E0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 http keepalive handler +2025/08/20 06:45:33 [debug] 601589#601589: *4 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:45:33 [debug] 601589#601589: *4 recv: eof:1, avail:-1 +2025/08/20 06:45:33 [debug] 601589#601589: *4 recv: fd:6 0 of 1024 +2025/08/20 06:45:33 [info] 601589#601589: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 06:45:33 [debug] 601589#601589: *4 close http connection: 6 +2025/08/20 06:45:33 [debug] 601589#601589: *4 event timer del: 6: 253531478 +2025/08/20 06:45:33 [debug] 601589#601589: *4 reusable connection: 0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 free: 000061B8C8C520A0 +2025/08/20 06:45:33 [debug] 601589#601589: *4 free: 000061B8C8C4F840, unused: 136 +2025/08/20 06:45:33 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:45:33 [debug] 601589#601589: worker cycle +2025/08/20 06:45:33 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:46:15 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:46:15 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *5 accept: 127.0.0.1:54844 fd:6 +2025/08/20 06:46:15 [debug] 601589#601589: *5 event timer add: 6: 60000:253568357 +2025/08/20 06:46:15 [debug] 601589#601589: *5 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 41878 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http wait request handler +2025/08/20 06:46:15 [debug] 601589#601589: *5 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *5 recv: eof:0, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 recv: fd:6 84 of 1024 +2025/08/20 06:46:15 [debug] 601589#601589: *5 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http process request line +2025/08/20 06:46:15 [debug] 601589#601589: *5 http request line: "GET /health HTTP/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http uri: "/health" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http args: "" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http exten: "" +2025/08/20 06:46:15 [debug] 601589#601589: *5 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http process request header line +2025/08/20 06:46:15 [debug] 601589#601589: *5 http header: "Host: localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http header: "Accept: */*" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http header done +2025/08/20 06:46:15 [debug] 601589#601589: *5 event timer del: 6: 253568357 +2025/08/20 06:46:15 [debug] 601589#601589: *5 generic phase: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 rewrite phase: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 test location: "/health" +2025/08/20 06:46:15 [debug] 601589#601589: *5 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *5 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:46:15 [debug] 601589#601589: *5 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *5 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *5 using configuration "/health" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http cl:-1 max:104857600 +2025/08/20 06:46:15 [debug] 601589#601589: *5 rewrite phase: 3 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http set discard body +2025/08/20 06:46:15 [debug] 601589#601589: *5 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:46:15 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:46:15 [debug] 601589#601589: *5 write new buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 196 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http write filter: l:0 f:0 s:196 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http output filter "/health?" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http copy filter: "/health?" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http postpone filter "/health?" 00007FFD28353FA0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 write old buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 196 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 write new buf t:0 f:0 0000000000000000, pos 000061B8C8C8CB42, size: 3 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http write filter: l:1 f:0 s:199 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http write filter limit 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 writev: 199 of 199 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http write filter 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http copy filter: 0 "/health?" +2025/08/20 06:46:15 [debug] 601589#601589: *5 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 set http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *5 http close request +2025/08/20 06:46:15 [debug] 601589#601589: *5 http log handler +2025/08/20 06:46:15 [debug] 601589#601589: *5 free: 000061B8C8C6EA30, unused: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 free: 000061B8C8C64DA0, unused: 2736 +2025/08/20 06:46:15 [debug] 601589#601589: *5 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 hc free: 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *5 hc busy: 0000000000000000 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 tcp_nodelay +2025/08/20 06:46:15 [debug] 601589#601589: *5 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 event timer add: 6: 65000:253573357 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:2001 d:00007C850D2D31E1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *5 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *5 recv: eof:1, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *5 recv: fd:6 0 of 1024 +2025/08/20 06:46:15 [info] 601589#601589: *5 client 127.0.0.1 closed keepalive connection +2025/08/20 06:46:15 [debug] 601589#601589: *5 close http connection: 6 +2025/08/20 06:46:15 [debug] 601589#601589: *5 event timer del: 6: 253573357 +2025/08/20 06:46:15 [debug] 601589#601589: *5 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *5 free: 000061B8C8C4F840, unused: 136 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:46:15 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:46:15 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 accept: 127.0.0.1:54846 fd:6 +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer add: 6: 60000:253568578 +2025/08/20 06:46:15 [debug] 601589#601589: *6 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 221 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http wait request handler +2025/08/20 06:46:15 [debug] 601589#601589: *6 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:6 1024 of 1024 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: avail:112 +2025/08/20 06:46:15 [debug] 601589#601589: *6 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http process request line +2025/08/20 06:46:15 [debug] 601589#601589: *6 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http uri: "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http args: "" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http exten: "" +2025/08/20 06:46:15 [debug] 601589#601589: *6 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http process request header line +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Host: localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Accept: */*" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4ZGZmNzBhNzZjMjFhMzFiY2M4MDlhZDllYmNiM2Q1NjAxNzVjZmMwNDlmNjk4MjRkZDI0NDY0ZTAwOWQwZTc2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3NzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyNDQ4ZTZjMDFjNTMxZjIyN2ZlM2YwYzVhYTI2NTg2ZjcwMzliM2UyZDlhZDZiMTAyYzU0NWI2ZDBmZmEzNThjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDM3NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImNkNDE5N2E5MDQ5MTc5ODAyY2NlNTFlNjFkM2M1M2U5OTVjYzc0YTk5MTkxZGZjMzlmNjgxM2FlZDVkZmI2ODE5OTA2MWMxNzY2ZTkyNTQ0NTkwYTQ2MWQ0N2YzNmViMjhlMWE1ODk1ZjU2NTg2YWExYzFjMWJjOTk5NDU0OGQxIn0=" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Content-Type: text/plain" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Content-Disposition: attachment; filename="test_blob_1755686775.txt"" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header: "Content-Length: 296" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http header done +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer del: 6: 253568578 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 rewrite phase: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: "/health" +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *6 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *6 using configuration "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http cl:296 max:104857600 +2025/08/20 06:46:15 [debug] 601589#601589: *6 rewrite phase: 3 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "PUT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script regex: "^(PUT)$" +2025/08/20 06:46:15 [notice] 601589#601589: *6 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script if +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script if: false +2025/08/20 06:46:15 [debug] 601589#601589: *6 post rewrite phase: 4 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 5 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 6 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 7 +2025/08/20 06:46:15 [debug] 601589#601589: *6 access phase: 8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 access phase: 9 +2025/08/20 06:46:15 [debug] 601589#601589: *6 access phase: 10 +2025/08/20 06:46:15 [debug] 601589#601589: *6 post access phase: 11 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 12 +2025/08/20 06:46:15 [debug] 601589#601589: *6 generic phase: 13 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http client request body preread 184 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http request body content length filter +2025/08/20 06:46:15 [debug] 601589#601589: *6 http body new buf t:1 f:0 000061B8C8C523E8, pos 000061B8C8C523E8, size: 184 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http read client request body +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:112 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:6 112 of 112 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: avail:0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http client request body recv 112 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http body new buf t:1 f:0 000061B8C8C65830, pos 000061B8C8C65830, size: 112 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http client request body rest 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http init upstream, client timer: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:46:15 [debug] 601589#601589: *6 posix_memalign: 000061B8C8C59150:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "QUERY_STRING" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "QUERY_STRING: " +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REQUEST_METHOD" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "PUT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "CONTENT_TYPE" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "text/plain" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "CONTENT_LENGTH" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "296" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SCRIPT_NAME" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REQUEST_URI" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "DOCUMENT_URI" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "./blobs" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "HTTP/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REQUEST_SCHEME" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "http" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "CGI/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "nginx/" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "1.18.0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REMOTE_ADDR" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "127.0.0.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REMOTE_PORT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "54846" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REMOTE_PORT: 54846" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SERVER_ADDR" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "127.0.0.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SERVER_PORT" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SERVER_NAME" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "localhost" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "REDIRECT_STATUS" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "200" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script var: "./blobs" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http script copy: "/ginxsom.fcgi" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4ZGZmNzBhNzZjMjFhMzFiY2M4MDlhZDllYmNiM2Q1NjAxNzVjZmMwNDlmNjk4MjRkZDI0NDY0ZTAwOWQwZTc2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3NzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyNDQ4ZTZjMDFjNTMxZjIyN2ZlM2YwYzVhYTI2NTg2ZjcwMzliM2UyZDlhZDZiMTAyYzU0NWI2ZDBmZmEzNThjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDM3NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImNkNDE5N2E5MDQ5MTc5ODAyY2NlNTFlNjFkM2M1M2U5OTVjYzc0YTk5MTkxZGZjMzlmNjgxM2FlZDVkZmI2ODE5OTA2MWMxNzY2ZTkyNTQ0NTkwYTQ2MWQ0N2YzNmViMjhlMWE1ODk1ZjU2NTg2YWExYzFjMWJjOTk5NDU0OGQxIn0=" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755686775.txt"" +2025/08/20 06:46:15 [debug] 601589#601589: *6 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http cleanup add: 000061B8C8C65B80 +2025/08/20 06:46:15 [debug] 601589#601589: *6 get rr peer, try: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 stream socket 10 +2025/08/20 06:46:15 [debug] 601589#601589: *6 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:46:15 [debug] 601589#601589: *6 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #7 +2025/08/20 06:46:15 [debug] 601589#601589: *6 connected +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream connect: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 posix_memalign: 000061B8C8C38F20:128 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream send request +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream send request body +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer buf fl:0 s:1304 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer buf fl:0 s:184 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer buf fl:0 s:8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer buf fl:0 s:112 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer buf fl:0 s:8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer in: 000061B8C8C65C10 +2025/08/20 06:46:15 [debug] 601589#601589: *6 writev: 1616 of 1616 +2025/08/20 06:46:15 [debug] 601589#601589: *6 chain writer out: 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer add: 10: 60000:253568578 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http request count:2 blk:0 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:0004 d:00007C850D2D31E0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http run request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream check client, write event:1, "/upload" +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:10 ev:0004 d:00007C850D2D32C9 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream dummy handler +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 59999 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:10 ev:0005 d:00007C850D2D32C9 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream process header +2025/08/20 06:46:15 [debug] 601589#601589: *6 malloc: 000061B8C8C5A160:4096 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:10 1024 of 4096 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "DEBUG: authenticate_request ENTRY - method: upload, hash: 2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4ZGZmNzBhNzZjMjFh... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "request - calling cJSON_Parse on: {"kind":24242,"id":"8dff70a76c21a31bcc809ad9ebcb3d560175cfc049f69824dd24464e009d0e76","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755686775,"tags":[["t","upload"],["x","2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c"],["expiration","1755690375"]],"content":"","sig":"cd4197a9049179802cce51e61d3c53e995cc74a99191dfc39f6813aed5dfb68199061c1766e92544590a461d47f36eb28e1a5895f56586aa1c1c1bc9994548d1"} +DEBUG: a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream dummy handler +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 59999 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:10 ev:0005 d:00007C850D2D32C9 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream process header +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:10 2048 of 4096 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "uthenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "8dff70a76c21a31bcc809ad9ebcb3d560175cfc049f69824dd24464e009d0e76", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755686775, + "tags": [["t", "upload"], ["x", "2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c"], ["expiration", "1755690375"]], + "content": "", + "sig": "cd4197a9049179802cce51e61d3c53e995cc74a99191df" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "c39f6813aed5dfb68199061c1766e92544590a461d47f36eb28e1a5895f56586aa1c1c1bc9994548d1" +} +DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: 8dff70a76c21a31bcc809ad9ebcb3d560175cfc049f69824dd24464e009d0e76 +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: cd4197a9049179802cce51e61d3c53e995cc74a99191dfc39f6813aed5dfb68199061c1766e92544590a461d47f36eb28e1a5895f56586aa1c1c1bc9994548d1 +DEBUG: kind: 24242 +DEBUG: created_at: 1755686775" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_request - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: F8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 504 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: " Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream dummy handler +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 59999 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:10 ev:2005 d:00007C850D2D32C9 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream request: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream process header +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:1, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:10 1680 of 4096 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 12 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 06 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 274 +2025/08/20 06:46:15 [error] 601589#601589: *6 FastCGI sent in stderr: "authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 07 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 06 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 05 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 47 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 1351 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "LOG: [2025-08-20 06:46:15] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4ZGZmNzBhNzZjMjFhMzFiY2M4MDlhZDllYmNiM2Q1NjAxNzVjZmMwNDlmNjk4MjRkZDI0NDY0ZTAwOWQwZTc2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3NzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyNDQ4ZTZjMDFjNTMxZjIyN2ZlM2YwYzVhYTI2NTg2ZjcwMzliM2UyZDlhZDZiMTAyYzU0NWI2ZDBmZmEzNThjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDM3NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImNkNDE5N2E5MDQ5MTc5ODAyY2NlNTFlNjFkM2M1M2U5OTVjYzc0YTk5MTkxZGZjMzlmNjgxM2FlZDVkZmI2ODE5OTA2MWMxNzY2ZTkyNTQ0NTkwYTQ2MWQ0N2YzNmViMjhlMWE1ODk1ZjU2NTg2YWExYzFjMWJjOTk5NDU0OGQxIn0=" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "LOG: [2025-08-20 06:46:15] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi parser: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi header done +2025/08/20 06:46:15 [debug] 601589#601589: *6 posix_memalign: 000061B8C8C5B170:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *6 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:46:15 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:46:15] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4ZGZmNzBhNzZjMjFhMzFiY2M4MDlhZDllYmNiM2Q1NjAxNzVjZmMwNDlmNjk4MjRkZDI0NDY0ZTAwOWQwZTc2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODY3NzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyNDQ4ZTZjMDFjNTMxZjIyN2ZlM2YwYzVhYTI2NTg2ZjcwMzliM2UyZDlhZDZiMTAyYzU0NWI2ZDBmZmEzNThjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDM3NSJdXSwiY29udGVudCI6IiIsInNpZyI6ImNkNDE5N2E5MDQ5MTc5ODAyY2NlNTFlNjFkM2M1M2U5OTVjYzc0YTk5MTkxZGZjMzlmNjgxM2FlZDVkZmI2ODE5OTA2MWMxNzY2ZTkyNTQ0NTkwYTQ2MWQ0N2YzNmViMjhlMWE1ODk1ZjU2NTg2YWExYzFjMWJjOTk5NDU0OGQxIn0= +LOG: [2025-08-20 06:46:15] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c + +2025/08/20 06:46:15 [debug] 601589#601589: *6 write new buf t:1 f:0 000061B8C8C5B190, pos 000061B8C8C5B190, size: 1259 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter: l:0 f:0 s:1259 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http cacheable: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream process upstream +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe read upstream: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe preread: 238 +2025/08/20 06:46:15 [debug] 601589#601589: *6 readv: eof:1, avail:0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 readv: 1, last:2416 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe recv chain: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe buf free s:0 t:1 f:0 000061B8C8C5A160, pos 000061B8C8C5A702, size: 238 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe length: -1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 input buf #0 000061B8C8C5A702 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 06 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi closed stdout +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 03 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 01 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 08 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record byte: 00 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi record length: 8 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http fastcgi sent end request +2025/08/20 06:46:15 [debug] 601589#601589: *6 input buf 000061B8C8C5A702 213 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe write downstream: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe write downstream flush in +2025/08/20 06:46:15 [debug] 601589#601589: *6 http output filter "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http copy filter: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http postpone filter "/upload?" 000061B8C8C65BE0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http chunk: 213 +2025/08/20 06:46:15 [debug] 601589#601589: *6 write old buf t:1 f:0 000061B8C8C5B190, pos 000061B8C8C5B190, size: 1259 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 write new buf t:1 f:0 000061B8C8C5A010, pos 000061B8C8C5A010, size: 4 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 write new buf t:1 f:0 000061B8C8C5A160, pos 000061B8C8C5A702, size: 213 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 write new buf t:0 f:0 0000000000000000, pos 000061B8BE9DD2E8, size: 2 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter: l:0 f:0 s:1478 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter limit 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 writev: 1478 of 1478 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http copy filter: 0 "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 pipe write downstream done +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer: 10, old: 253568578, new: 253568580 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream exit: 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *6 finalize http upstream request: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 finalize http fastcgi request +2025/08/20 06:46:15 [debug] 601589#601589: *6 free rr peer 1 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 close http upstream connection: 10 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C38F20, unused: 48 +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer del: 10: 253568578 +2025/08/20 06:46:15 [debug] 601589#601589: *6 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http upstream temp fd: -1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http output filter "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http copy filter: "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http postpone filter "/upload?" 00007FFD28354050 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http chunk: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 write new buf t:0 f:0 0000000000000000, pos 000061B8BE9DD2E5, size: 5 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter: l:1 f:0 s:5 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter limit 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 writev: 5 of 5 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http write filter 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http copy filter: 0 "/upload?" +2025/08/20 06:46:15 [debug] 601589#601589: *6 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 set http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *6 http close request +2025/08/20 06:46:15 [debug] 601589#601589: *6 http log handler +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C5A160 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C6EA30, unused: 3 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C64DA0, unused: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C59150, unused: 10 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C5B170, unused: 2805 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 hc free: 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *6 hc busy: 0000000000000000 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 tcp_nodelay +2025/08/20 06:46:15 [debug] 601589#601589: *6 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer add: 6: 65000:253573580 +2025/08/20 06:46:15 [debug] 601589#601589: *6 post event 000061B8C8CA0770 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:46:15 [debug] 601589#601589: posted event 000061B8C8CA0770 +2025/08/20 06:46:15 [debug] 601589#601589: *6 delete posted event 000061B8C8CA0770 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *6 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:0, avail:0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:2005 d:00007C850D2D31E0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *6 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: eof:1, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *6 recv: fd:6 0 of 1024 +2025/08/20 06:46:15 [info] 601589#601589: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 06:46:15 [debug] 601589#601589: *6 close http connection: 6 +2025/08/20 06:46:15 [debug] 601589#601589: *6 event timer del: 6: 253573580 +2025/08/20 06:46:15 [debug] 601589#601589: *6 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *6 free: 000061B8C8C4F840, unused: 120 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:5 ev:0001 d:00007C850D2D3010 +2025/08/20 06:46:15 [debug] 601589#601589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:46:15 [debug] 601589#601589: posix_memalign: 000061B8C8C4F840:512 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *8 accept: 127.0.0.1:54852 fd:6 +2025/08/20 06:46:15 [debug] 601589#601589: *8 event timer add: 6: 60000:253568586 +2025/08/20 06:46:15 [debug] 601589#601589: *8 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 5 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 60000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:0001 d:00007C850D2D31E1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http wait request handler +2025/08/20 06:46:15 [debug] 601589#601589: *8 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *8 recv: eof:0, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 recv: fd:6 142 of 1024 +2025/08/20 06:46:15 [debug] 601589#601589: *8 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 posix_memalign: 000061B8C8C6EA30:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http process request line +2025/08/20 06:46:15 [debug] 601589#601589: *8 http request line: "GET /2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c HTTP/1.1" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http uri: "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http args: "" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http exten: "" +2025/08/20 06:46:15 [debug] 601589#601589: *8 posix_memalign: 000061B8C8C64DA0:4096 @16 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http process request header line +2025/08/20 06:46:15 [debug] 601589#601589: *8 http header: "Host: localhost:9001" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http header: "Accept: */*" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http header done +2025/08/20 06:46:15 [debug] 601589#601589: *8 event timer del: 6: 253568586 +2025/08/20 06:46:15 [debug] 601589#601589: *8 generic phase: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 rewrite phase: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 test location: "/health" +2025/08/20 06:46:15 [debug] 601589#601589: *8 test location: "/debug/list" +2025/08/20 06:46:15 [debug] 601589#601589: *8 test location: "/" +2025/08/20 06:46:15 [debug] 601589#601589: *8 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *8 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http cl:-1 max:104857600 +2025/08/20 06:46:15 [debug] 601589#601589: *8 rewrite phase: 3 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http script var +2025/08/20 06:46:15 [debug] 601589#601589: *8 http script var: "GET" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http script value: "DELETE" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http script not equal +2025/08/20 06:46:15 [debug] 601589#601589: *8 http script if +2025/08/20 06:46:15 [debug] 601589#601589: *8 http finalize request: 404, "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" a:1, c:1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http special response: 404, "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http set discard body +2025/08/20 06:46:15 [debug] 601589#601589: *8 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:46:15 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:46:15 [debug] 601589#601589: *8 write new buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 164 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http write filter: l:0 f:0 s:164 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http output filter "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http copy filter: "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http postpone filter "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" 000061B8C8C65310 +2025/08/20 06:46:15 [debug] 601589#601589: *8 write old buf t:1 f:0 000061B8C8C65180, pos 000061B8C8C65180, size: 164 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 write new buf t:0 f:0 0000000000000000, pos 000061B8BEA1C580, size: 100 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 write new buf t:0 f:0 0000000000000000, pos 000061B8BEA1CC80, size: 62 file: 0, size: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http write filter: l:1 f:0 s:326 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http write filter limit 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 writev: 326 of 326 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http write filter 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http copy filter: 0 "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" +2025/08/20 06:46:15 [debug] 601589#601589: *8 http finalize request: 0, "/2448e6c01c531f227fe3f0c5aa26586f7039b3e2d9ad6b102c545b6d0ffa358c?" a:1, c:1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 set http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *8 http close request +2025/08/20 06:46:15 [debug] 601589#601589: *8 http log handler +2025/08/20 06:46:15 [debug] 601589#601589: *8 free: 000061B8C8C6EA30, unused: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 free: 000061B8C8C64DA0, unused: 2456 +2025/08/20 06:46:15 [debug] 601589#601589: *8 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 hc free: 0000000000000000 +2025/08/20 06:46:15 [debug] 601589#601589: *8 hc busy: 0000000000000000 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 tcp_nodelay +2025/08/20 06:46:15 [debug] 601589#601589: *8 reusable connection: 1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 event timer add: 6: 65000:253573586 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 0 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: 65000 +2025/08/20 06:46:15 [debug] 601589#601589: epoll: fd:6 ev:2001 d:00007C850D2D31E1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 http keepalive handler +2025/08/20 06:46:15 [debug] 601589#601589: *8 malloc: 000061B8C8C520A0:1024 +2025/08/20 06:46:15 [debug] 601589#601589: *8 recv: eof:1, avail:-1 +2025/08/20 06:46:15 [debug] 601589#601589: *8 recv: fd:6 0 of 1024 +2025/08/20 06:46:15 [info] 601589#601589: *8 client 127.0.0.1 closed keepalive connection +2025/08/20 06:46:15 [debug] 601589#601589: *8 close http connection: 6 +2025/08/20 06:46:15 [debug] 601589#601589: *8 event timer del: 6: 253573586 +2025/08/20 06:46:15 [debug] 601589#601589: *8 reusable connection: 0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 free: 000061B8C8C520A0 +2025/08/20 06:46:15 [debug] 601589#601589: *8 free: 000061B8C8C4F840, unused: 136 +2025/08/20 06:46:15 [debug] 601589#601589: timer delta: 1 +2025/08/20 06:46:15 [debug] 601589#601589: worker cycle +2025/08/20 06:46:15 [debug] 601589#601589: epoll timer: -1 +2025/08/20 06:47:14 [notice] 601588#601588: signal 15 (SIGTERM) received from 602356, exiting +2025/08/20 06:47:14 [debug] 601588#601588: wake up, sigio 0 +2025/08/20 06:47:14 [debug] 601588#601588: child: 0 601589 e:0 t:0 d:0 r:1 j:0 +2025/08/20 06:47:14 [debug] 601588#601588: termination cycle: 50 +2025/08/20 06:47:14 [debug] 601588#601588: sigsuspend +2025/08/20 06:47:14 [debug] 601589#601589: epoll: fd:7 ev:0001 d:00007C850D2D30F8 +2025/08/20 06:47:14 [debug] 601589#601589: channel handler +2025/08/20 06:47:14 [debug] 601589#601589: channel: 32 +2025/08/20 06:47:14 [debug] 601589#601589: channel command: 4 +2025/08/20 06:47:14 [debug] 601589#601589: channel: -2 +2025/08/20 06:47:14 [debug] 601589#601589: timer delta: 59056 +2025/08/20 06:47:14 [notice] 601589#601589: exiting +2025/08/20 06:47:14 [debug] 601589#601589: flush files +2025/08/20 06:47:14 [debug] 601589#601589: run cleanup: 000061B8C8C9DA80 +2025/08/20 06:47:14 [debug] 601589#601589: run cleanup: 000061B8C8C90A18 +2025/08/20 06:47:14 [debug] 601589#601589: cleanup resolver +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C9EDE0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C91BE0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C70B50 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C6FA40 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C69A10 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C68950 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C67890 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C667D0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C5E170 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C55140, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C5F580, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C6AA20, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C71B60, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C75B70, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C79B80, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C7DB90, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C81BA0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C85BB0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C89BC0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C8DBD0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C92DB0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C96DC0, unused: 0 +2025/08/20 06:47:14 [debug] 601589#601589: free: 000061B8C8C9ADD0, unused: 4920 +2025/08/20 06:47:14 [notice] 601589#601589: exit +2025/08/20 06:47:14 [notice] 601588#601588: signal 17 (SIGCHLD) received from 601589 +2025/08/20 06:47:14 [notice] 601588#601588: worker process 601589 exited with code 0 +2025/08/20 06:47:14 [debug] 601588#601588: shmtx forced unlock +2025/08/20 06:47:14 [debug] 601588#601588: wake up, sigio 3 +2025/08/20 06:47:14 [debug] 601588#601588: reap children +2025/08/20 06:47:14 [debug] 601588#601588: child: 0 601589 e:1 t:1 d:0 r:1 j:0 +2025/08/20 06:47:14 [notice] 601588#601588: exit +2025/08/20 06:47:14 [debug] 601588#601588: close listening 0.0.0.0:9001 #5 +2025/08/20 06:47:14 [debug] 601588#601588: run cleanup: 000061B8C8C90A18 +2025/08/20 06:47:14 [debug] 601588#601588: cleanup resolver +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C9EDE0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C91BE0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C70B50 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C6FA40 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C69A10 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C68950 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C67890 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C667D0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C5E170 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C55140, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C5F580, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C6AA20, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C71B60, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C75B70, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C79B80, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C7DB90, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C81BA0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C85BB0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C89BC0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C8DBD0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C92DB0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C96DC0, unused: 0 +2025/08/20 06:47:14 [debug] 601588#601588: free: 000061B8C8C9ADD0, unused: 4951 +2025/08/20 06:47:18 [debug] 602392#602392: bind() 0.0.0.0:9001 #5 +2025/08/20 06:47:18 [debug] 602392#602392: counter: 00007C5814144080, 1 +2025/08/20 06:47:18 [debug] 602393#602393: bind() 0.0.0.0:9001 #5 +2025/08/20 06:47:18 [notice] 602393#602393: using the "epoll" event method +2025/08/20 06:47:18 [debug] 602393#602393: counter: 0000766FE7D1B080, 1 +2025/08/20 06:47:18 [notice] 602393#602393: nginx/1.18.0 (Ubuntu) +2025/08/20 06:47:18 [notice] 602393#602393: OS: Linux 6.12.10-76061203-generic +2025/08/20 06:47:18 [notice] 602393#602393: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 06:47:18 [debug] 602394#602393: write: 6, 00007FFC67C2B320, 7, 0 +2025/08/20 06:47:18 [debug] 602394#602394: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 06:47:18 [notice] 602394#602394: start worker processes +2025/08/20 06:47:18 [debug] 602394#602394: channel 6:7 +2025/08/20 06:47:18 [notice] 602394#602394: start worker process 602395 +2025/08/20 06:47:18 [debug] 602394#602394: sigsuspend +2025/08/20 06:47:18 [debug] 602395#602395: add cleanup: 00005E702F9E5A80 +2025/08/20 06:47:18 [debug] 602395#602395: malloc: 00005E702F998BD0:8 +2025/08/20 06:47:18 [debug] 602395#602395: notify eventfd: 9 +2025/08/20 06:47:18 [debug] 602395#602395: testing the EPOLLRDHUP flag: success +2025/08/20 06:47:18 [debug] 602395#602395: malloc: 00005E702F9AB590:6144 +2025/08/20 06:47:18 [debug] 602395#602395: malloc: 0000766FE7B13010:237568 +2025/08/20 06:47:18 [debug] 602395#602395: malloc: 00005E702F9E86B0:98304 +2025/08/20 06:47:18 [debug] 602395#602395: malloc: 00005E702FA006C0:98304 +2025/08/20 06:47:18 [debug] 602395#602395: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 06:47:18 [debug] 602395#602395: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 06:47:18 [debug] 602395#602395: setproctitle: "nginx: worker process" +2025/08/20 06:47:18 [debug] 602395#602395: worker cycle +2025/08/20 06:47:18 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:48:02 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:48:02 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 accept: 127.0.0.1:47590 fd:6 +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer add: 6: 60000:253675464 +2025/08/20 06:48:02 [debug] 602395#602395: *1 reusable connection: 1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:48:02 [debug] 602395#602395: timer delta: 43571 +2025/08/20 06:48:02 [debug] 602395#602395: worker cycle +2025/08/20 06:48:02 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http wait request handler +2025/08/20 06:48:02 [debug] 602395#602395: *1 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: eof:0, avail:-1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: fd:6 785 of 1024 +2025/08/20 06:48:02 [debug] 602395#602395: *1 reusable connection: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http process request line +2025/08/20 06:48:02 [debug] 602395#602395: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http uri: "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http args: "" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http exten: "" +2025/08/20 06:48:02 [debug] 602395#602395: *1 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http process request header line +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "Host: localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "Accept: */*" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "Content-Type: text/plain" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header: "Content-Length: 16" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http header done +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer del: 6: 253675464 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 rewrite phase: 1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: "/health" +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:48:02 [debug] 602395#602395: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:48:02 [debug] 602395#602395: *1 using configuration "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http cl:16 max:104857600 +2025/08/20 06:48:02 [debug] 602395#602395: *1 rewrite phase: 3 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "PUT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script regex: "^(PUT)$" +2025/08/20 06:48:02 [notice] 602395#602395: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script if +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script if: false +2025/08/20 06:48:02 [debug] 602395#602395: *1 post rewrite phase: 4 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 5 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 6 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 7 +2025/08/20 06:48:02 [debug] 602395#602395: *1 access phase: 8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 access phase: 9 +2025/08/20 06:48:02 [debug] 602395#602395: *1 access phase: 10 +2025/08/20 06:48:02 [debug] 602395#602395: *1 post access phase: 11 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 12 +2025/08/20 06:48:02 [debug] 602395#602395: *1 generic phase: 13 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http client request body preread 16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http request body content length filter +2025/08/20 06:48:02 [debug] 602395#602395: *1 http body new buf t:1 f:0 00005E702F99A3A1, pos 00005E702F99A3A1, size: 16 file: 0, size: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http init upstream, client timer: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "QUERY_STRING" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REQUEST_METHOD" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "PUT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "CONTENT_TYPE" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "text/plain" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "16" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "CONTENT_LENGTH: 16" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SCRIPT_NAME" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REQUEST_URI" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "DOCUMENT_URI" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "./blobs" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "HTTP/1.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "http" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "CGI/1.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "nginx/" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "1.18.0" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REMOTE_ADDR" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "127.0.0.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REMOTE_PORT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "47590" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REMOTE_PORT: 47590" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SERVER_ADDR" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "127.0.0.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SERVER_PORT" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SERVER_NAME" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "localhost" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "200" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script var: "./blobs" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:48:02 [debug] 602395#602395: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 16" +2025/08/20 06:48:02 [debug] 602395#602395: *1 posix_memalign: 00005E702F9A1150:4096 @16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http cleanup add: 00005E702F9ADD80 +2025/08/20 06:48:02 [debug] 602395#602395: *1 get rr peer, try: 1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 stream socket 10 +2025/08/20 06:48:02 [debug] 602395#602395: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:48:02 [debug] 602395#602395: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 06:48:02 [debug] 602395#602395: *1 connected +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream connect: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 posix_memalign: 00005E702F980F20:128 @16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream send request +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream send request body +2025/08/20 06:48:02 [debug] 602395#602395: *1 chain writer buf fl:0 s:1224 +2025/08/20 06:48:02 [debug] 602395#602395: *1 chain writer buf fl:0 s:16 +2025/08/20 06:48:02 [debug] 602395#602395: *1 chain writer buf fl:0 s:8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 chain writer in: 00005E702F9A1288 +2025/08/20 06:48:02 [debug] 602395#602395: *1 writev: 1248 of 1248 +2025/08/20 06:48:02 [debug] 602395#602395: *1 chain writer out: 0000000000000000 +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer add: 10: 60000:253675464 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http request count:2 blk:0 +2025/08/20 06:48:02 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:48:02 [debug] 602395#602395: worker cycle +2025/08/20 06:48:02 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:6 ev:0004 d:0000766FE7B131E0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http run request: "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream check client, write event:1, "/upload" +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:10 ev:0004 d:0000766FE7B132C8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream request: "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream dummy handler +2025/08/20 06:48:02 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:48:02 [debug] 602395#602395: worker cycle +2025/08/20 06:48:02 [debug] 602395#602395: epoll timer: 59999 +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:10 ev:2005 d:0000766FE7B132C8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream request: "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http upstream process header +2025/08/20 06:48:02 [debug] 602395#602395: *1 malloc: 00005E702F9A2160:4096 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: eof:1, avail:-1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: fd:10 4096 of 4096 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: avail:656 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "DEBUG: authenticate_request ENTRY - method: upload, hash: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58 +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "request - calling cJSON_Parse on: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +DEBUG: a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "uthenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +DEBUG: kind: 24242 +DEBUG: created_at: 1755685428" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_request - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: F8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 504 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: " Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 12 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 06 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 274 +2025/08/20 06:48:02 [error] 602395#602395: *1 FastCGI sent in stderr: "authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 07 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 06 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 01 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 05 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 46 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 02 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record byte: 00 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi record length: 1350 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "LOG: [2025-08-20 06:48:02] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi header: "DEBUG: content_length=16" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http fastcgi parser: -2 +2025/08/20 06:48:02 [debug] 602395#602395: *1 upstream split a header line in FastCGI records +2025/08/20 06:48:02 [error] 602395#602395: *1 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http next upstream, 8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free rr peer 1 4 +2025/08/20 06:48:02 [debug] 602395#602395: *1 finalize http upstream request: 502 +2025/08/20 06:48:02 [debug] 602395#602395: *1 finalize http fastcgi request +2025/08/20 06:48:02 [debug] 602395#602395: *1 close http upstream connection: 10 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F980F20, unused: 48 +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer del: 10: 253675464 +2025/08/20 06:48:02 [debug] 602395#602395: *1 reusable connection: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http finalize request: 502, "/upload?" a:1, c:1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http special response: 502, "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 HTTP/1.1 502 Bad Gateway +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:48:02 GMT +Content-Type: text/html +Content-Length: 166 +Connection: keep-alive + +2025/08/20 06:48:02 [debug] 602395#602395: *1 write new buf t:1 f:0 00005E702F9A1628, pos 00005E702F9A1628, size: 166 file: 0, size: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http write filter: l:0 f:0 s:166 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http output filter "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http copy filter: "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http postpone filter "/upload?" 00005E702F9A1268 +2025/08/20 06:48:02 [debug] 602395#602395: *1 write old buf t:1 f:0 00005E702F9A1628, pos 00005E702F9A1628, size: 166 file: 0, size: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 write new buf t:0 f:0 0000000000000000, pos 00005E700E00EA40, size: 104 file: 0, size: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 write new buf t:0 f:0 0000000000000000, pos 00005E700E00FC80, size: 62 file: 0, size: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http write filter: l:1 f:0 s:332 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http write filter limit 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 writev: 332 of 332 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http write filter 0000000000000000 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http copy filter: 0 "/upload?" +2025/08/20 06:48:02 [debug] 602395#602395: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 set http keepalive handler +2025/08/20 06:48:02 [debug] 602395#602395: *1 http close request +2025/08/20 06:48:02 [debug] 602395#602395: *1 http log handler +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F9A2160 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F9B6A30, unused: 3 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F9ACDA0, unused: 8 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F9A1150, unused: 2250 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F99A0A0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 hc free: 0000000000000000 +2025/08/20 06:48:02 [debug] 602395#602395: *1 hc busy: 0000000000000000 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 tcp_nodelay +2025/08/20 06:48:02 [debug] 602395#602395: *1 reusable connection: 1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer add: 6: 65000:253680466 +2025/08/20 06:48:02 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:48:02 [debug] 602395#602395: worker cycle +2025/08/20 06:48:02 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:48:02 [debug] 602395#602395: epoll: fd:6 ev:2005 d:0000766FE7B131E0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 http keepalive handler +2025/08/20 06:48:02 [debug] 602395#602395: *1 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: eof:1, avail:-1 +2025/08/20 06:48:02 [debug] 602395#602395: *1 recv: fd:6 0 of 1024 +2025/08/20 06:48:02 [info] 602395#602395: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 06:48:02 [debug] 602395#602395: *1 close http connection: 6 +2025/08/20 06:48:02 [debug] 602395#602395: *1 event timer del: 6: 253680466 +2025/08/20 06:48:02 [debug] 602395#602395: *1 reusable connection: 0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F99A0A0 +2025/08/20 06:48:02 [debug] 602395#602395: *1 free: 00005E702F997840, unused: 120 +2025/08/20 06:48:02 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:48:02 [debug] 602395#602395: worker cycle +2025/08/20 06:48:02 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:48:33 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:48:33 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:48:33 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:48:33 [debug] 602395#602395: *3 accept: 127.0.0.1:34702 fd:6 +2025/08/20 06:48:33 [debug] 602395#602395: *3 event timer add: 6: 60000:253707047 +2025/08/20 06:48:33 [debug] 602395#602395: *3 reusable connection: 1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:48:33 [debug] 602395#602395: timer delta: 31580 +2025/08/20 06:48:33 [debug] 602395#602395: worker cycle +2025/08/20 06:48:33 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:48:33 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http wait request handler +2025/08/20 06:48:33 [debug] 602395#602395: *3 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:48:33 [debug] 602395#602395: *3 recv: eof:0, avail:-1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 recv: fd:6 84 of 1024 +2025/08/20 06:48:33 [debug] 602395#602395: *3 reusable connection: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http process request line +2025/08/20 06:48:33 [debug] 602395#602395: *3 http request line: "GET /health HTTP/1.1" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http uri: "/health" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http args: "" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http exten: "" +2025/08/20 06:48:33 [debug] 602395#602395: *3 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http process request header line +2025/08/20 06:48:33 [debug] 602395#602395: *3 http header: "Host: localhost:9001" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http header: "Accept: */*" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http header done +2025/08/20 06:48:33 [debug] 602395#602395: *3 event timer del: 6: 253707047 +2025/08/20 06:48:33 [debug] 602395#602395: *3 generic phase: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 rewrite phase: 1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 test location: "/health" +2025/08/20 06:48:33 [debug] 602395#602395: *3 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:48:33 [debug] 602395#602395: *3 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:48:33 [debug] 602395#602395: *3 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:48:33 [debug] 602395#602395: *3 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:48:33 [debug] 602395#602395: *3 using configuration "/health" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http cl:-1 max:104857600 +2025/08/20 06:48:33 [debug] 602395#602395: *3 rewrite phase: 3 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http set discard body +2025/08/20 06:48:33 [debug] 602395#602395: *3 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:48:33 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:48:33 [debug] 602395#602395: *3 write new buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 196 file: 0, size: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http write filter: l:0 f:0 s:196 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http output filter "/health?" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http copy filter: "/health?" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http postpone filter "/health?" 00007FFC67C2AEB0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 write old buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 196 file: 0, size: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 write new buf t:0 f:0 0000000000000000, pos 00005E702F9D4B42, size: 3 file: 0, size: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http write filter: l:1 f:0 s:199 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http write filter limit 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 writev: 199 of 199 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http write filter 0000000000000000 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http copy filter: 0 "/health?" +2025/08/20 06:48:33 [debug] 602395#602395: *3 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 set http keepalive handler +2025/08/20 06:48:33 [debug] 602395#602395: *3 http close request +2025/08/20 06:48:33 [debug] 602395#602395: *3 http log handler +2025/08/20 06:48:33 [debug] 602395#602395: *3 free: 00005E702F9B6A30, unused: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 free: 00005E702F9ACDA0, unused: 2736 +2025/08/20 06:48:33 [debug] 602395#602395: *3 free: 00005E702F99A0A0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 hc free: 0000000000000000 +2025/08/20 06:48:33 [debug] 602395#602395: *3 hc busy: 0000000000000000 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 tcp_nodelay +2025/08/20 06:48:33 [debug] 602395#602395: *3 reusable connection: 1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 event timer add: 6: 65000:253712047 +2025/08/20 06:48:33 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:48:33 [debug] 602395#602395: worker cycle +2025/08/20 06:48:33 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:48:33 [debug] 602395#602395: epoll: fd:6 ev:2001 d:0000766FE7B131E1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 http keepalive handler +2025/08/20 06:48:33 [debug] 602395#602395: *3 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:48:33 [debug] 602395#602395: *3 recv: eof:1, avail:-1 +2025/08/20 06:48:33 [debug] 602395#602395: *3 recv: fd:6 0 of 1024 +2025/08/20 06:48:33 [info] 602395#602395: *3 client 127.0.0.1 closed keepalive connection +2025/08/20 06:48:33 [debug] 602395#602395: *3 close http connection: 6 +2025/08/20 06:48:33 [debug] 602395#602395: *3 event timer del: 6: 253712047 +2025/08/20 06:48:33 [debug] 602395#602395: *3 reusable connection: 0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 free: 00005E702F99A0A0 +2025/08/20 06:48:33 [debug] 602395#602395: *3 free: 00005E702F997840, unused: 136 +2025/08/20 06:48:33 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:48:33 [debug] 602395#602395: worker cycle +2025/08/20 06:48:33 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:49:28 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:49:28 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 accept: 127.0.0.1:51166 fd:6 +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer add: 6: 60000:253761319 +2025/08/20 06:49:28 [debug] 602395#602395: *4 reusable connection: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:49:28 [debug] 602395#602395: timer delta: 54271 +2025/08/20 06:49:28 [debug] 602395#602395: worker cycle +2025/08/20 06:49:28 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http wait request handler +2025/08/20 06:49:28 [debug] 602395#602395: *4 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: eof:0, avail:-1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: fd:6 133 of 1024 +2025/08/20 06:49:28 [debug] 602395#602395: *4 reusable connection: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http process request line +2025/08/20 06:49:28 [debug] 602395#602395: *4 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http uri: "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http args: "" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http exten: "" +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http process request header line +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header: "Host: localhost:9001" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header: "Accept: */*" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header: "Content-Type: text/plain" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header: "Content-Length: 4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http header done +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer del: 6: 253761319 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 rewrite phase: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: "/health" +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:49:28 [debug] 602395#602395: *4 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:49:28 [debug] 602395#602395: *4 using configuration "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http cl:4 max:104857600 +2025/08/20 06:49:28 [debug] 602395#602395: *4 rewrite phase: 3 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "PUT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script regex: "^(PUT)$" +2025/08/20 06:49:28 [notice] 602395#602395: *4 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script if +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script if: false +2025/08/20 06:49:28 [debug] 602395#602395: *4 post rewrite phase: 4 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 5 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 6 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 7 +2025/08/20 06:49:28 [debug] 602395#602395: *4 access phase: 8 +2025/08/20 06:49:28 [debug] 602395#602395: *4 access phase: 9 +2025/08/20 06:49:28 [debug] 602395#602395: *4 access phase: 10 +2025/08/20 06:49:28 [debug] 602395#602395: *4 post access phase: 11 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 12 +2025/08/20 06:49:28 [debug] 602395#602395: *4 generic phase: 13 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http client request body preread 4 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http request body content length filter +2025/08/20 06:49:28 [debug] 602395#602395: *4 http body new buf t:1 f:0 00005E702F99A121, pos 00005E702F99A121, size: 4 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http init upstream, client timer: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "QUERY_STRING" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "QUERY_STRING: " +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REQUEST_METHOD" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "PUT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "CONTENT_TYPE" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "text/plain" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "CONTENT_LENGTH" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "CONTENT_LENGTH: 4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SCRIPT_NAME" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REQUEST_URI" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "DOCUMENT_URI" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "./blobs" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "HTTP/1.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REQUEST_SCHEME" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "http" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "CGI/1.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "nginx/" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "1.18.0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REMOTE_ADDR" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "127.0.0.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REMOTE_PORT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "51166" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REMOTE_PORT: 51166" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SERVER_ADDR" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "127.0.0.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SERVER_PORT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "9001" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SERVER_NAME" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "localhost" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "REDIRECT_STATUS" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "200" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script var: "./blobs" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http script copy: "/ginxsom.fcgi" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:49:28 [debug] 602395#602395: *4 fastcgi param: "HTTP_CONTENT_LENGTH: 4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http cleanup add: 00005E702F9ADBB0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 get rr peer, try: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 stream socket 10 +2025/08/20 06:49:28 [debug] 602395#602395: *4 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:49:28 [debug] 602395#602395: *4 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #5 +2025/08/20 06:49:28 [debug] 602395#602395: *4 connected +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream connect: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F980F20:128 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream send request +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream send request body +2025/08/20 06:49:28 [debug] 602395#602395: *4 chain writer buf fl:0 s:576 +2025/08/20 06:49:28 [debug] 602395#602395: *4 chain writer buf fl:0 s:4 +2025/08/20 06:49:28 [debug] 602395#602395: *4 chain writer buf fl:0 s:12 +2025/08/20 06:49:28 [debug] 602395#602395: *4 chain writer in: 00005E702F9ADC20 +2025/08/20 06:49:28 [debug] 602395#602395: *4 writev: 592 of 592 +2025/08/20 06:49:28 [debug] 602395#602395: *4 chain writer out: 0000000000000000 +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer add: 10: 60000:253761319 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http request count:2 blk:0 +2025/08/20 06:49:28 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:49:28 [debug] 602395#602395: worker cycle +2025/08/20 06:49:28 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:6 ev:0004 d:0000766FE7B131E0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http run request: "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream check client, write event:1, "/upload" +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:10 ev:0004 d:0000766FE7B132C9 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream request: "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream dummy handler +2025/08/20 06:49:28 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:49:28 [debug] 602395#602395: worker cycle +2025/08/20 06:49:28 [debug] 602395#602395: epoll timer: 59998 +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:10 ev:2005 d:0000766FE7B132C9 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream request: "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream process header +2025/08/20 06:49:28 [debug] 602395#602395: *4 malloc: 00005E702F9A1150:4096 +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F9A2160:4096 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: eof:1, avail:-1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: fd:10 2312 of 4096 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 06 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 08 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: E5 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 03 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record length: 2277 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "LOG: [2025-08-20 06:49:28] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: content_length=4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Raw Authorization header: NULL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "LOG: [2025-08-20 06:49:28] PUT /upload - Auth: anonymous - Status: 0" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Authentication passed, uploader_pubkey: anonymous" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Saving file to: blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Successfully saved DEBUG: Content-Disposition header: NULL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: No Content-Disposition header provided" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Final filename after extraction: NULL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: insert_blob_metadata() called for sha256='9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Opening database at path: db/ginxsom.db" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Database opened successfully for writing" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Preparing SQL: INSERT INTO blobs (sha256, size, type, uploaded_at, uploader_pubkey, filename) VALUES (?, ?, ?, ?, ?, ?)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: SQL prepared successfully, binding parameters" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Parameter values to bind:" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 1. sha256 = '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 2. size = 4" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 3. type = 'text/plain'" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 4. uploaded_at = 1755686968" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 5. uploader_pubkey = 'NULL'" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: 6. filename = 'NULL'" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 1 (sha256)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 2 (size)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 3 (type)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 4 (uploaded_at)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 5 (uploader_pubkey)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding uploader_pubkey as NULL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding parameter 6 (filename)" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Binding filename as NULL" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Parameters bound, executing INSERT" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: INSERT successful" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Database closed, returning 1" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "DEBUG: Blob metadata successfully stored in database" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "Status: 200 OK" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi parser: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi header done +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F9A3170:4096 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 posix_memalign: 00005E702F9A4180:4096 @16 +2025/08/20 06:49:28 [debug] 602395#602395: *4 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:49:28 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:49:28] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=4 +DEBUG: Raw Authorization header: NULL +LOG: [2025-08-20 06:49:28] PUT /upload - Auth: anonymous - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08 +DEBUG: Authentication passed, uploader_pubkey: anonymous +DEBUG: Saving file to: blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt +DEBUG: Successfully saved DEBUG: Content-Disposition header: NULL +DEBUG: No Content-Disposition header provided +DEBUG: Final filename after extraction: NULL +DEBUG: insert_blob_metadata() called for sha256='9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08' +DEBUG: Opening database at path: db/ginxsom.db +DEBUG: Database opened successfully for writing +DEBUG: Preparing SQL: INSERT INTO blobs (sha256, size, type, uploaded_at, uploader_pubkey, filename) VALUES (?, ?, ?, ?, ?, ?) +DEBUG: SQL prepared successfully, binding parameters +DEBUG: Parameter values to bind: +DEBUG: 1. sha256 = '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08' +DEBUG: 2. size = 4 +DEBUG: 3. type = 'text/plain' +DEBUG: 4. uploaded_at = 1755686968 +DEBUG: 5. uploader_pubkey = 'NULL' +DEBUG: 6. filename = 'NULL' +DEBUG: Binding parameter 1 (sha256) +DEBUG: Binding parameter 2 (size) +DEBUG: Binding parameter 3 (type) +DEBUG: Binding parameter 4 (uploaded_at) +DEBUG: Binding parameter 5 (uploader_pubkey) +DEBUG: Binding uploader_pubkey as NULL +DEBUG: Binding parameter 6 (filename) +DEBUG: Binding filename as NULL +DEBUG: Parameters bound, executing INSERT +DEBUG: INSERT successful +DEBUG: Database c +2025/08/20 06:49:28 [debug] 602395#602395: *4 write new buf t:1 f:0 00005E702F9A41A0, pos 00005E702F9A41A0, size: 2166 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter: l:0 f:0 s:2166 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter limit 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 writev: 2166 of 2166 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter 0000000000000000 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http cacheable: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream process upstream +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe read upstream: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe preread: 336 +2025/08/20 06:49:28 [debug] 602395#602395: *4 readv: eof:1, avail:0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 readv: 1, last:1784 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe recv chain: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe buf free s:0 t:1 f:0 00005E702F9A1150, pos 00005E702F9A1908, size: 336 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe length: -1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 input buf #0 00005E702F9A1908 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 06 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record length: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi closed stdout +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 03 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 01 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 08 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record byte: 00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi record length: 8 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http fastcgi sent end request +2025/08/20 06:49:28 [debug] 602395#602395: *4 input buf 00005E702F9A1908 309 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe write downstream: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe write downstream flush in +2025/08/20 06:49:28 [debug] 602395#602395: *4 http output filter "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http copy filter: "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http postpone filter "/upload?" 00005E702F9ADC00 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http chunk: 309 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write new buf t:1 f:0 00005E702F9A3140, pos 00005E702F9A3140, size: 5 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write new buf t:1 f:0 00005E702F9A1150, pos 00005E702F9A1908, size: 309 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E8, size: 2 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter: l:0 f:0 s:316 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http copy filter: 0 "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 pipe write downstream done +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer: 10, old: 253761319, new: 253761324 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream exit: 0000000000000000 +2025/08/20 06:49:28 [debug] 602395#602395: *4 finalize http upstream request: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 finalize http fastcgi request +2025/08/20 06:49:28 [debug] 602395#602395: *4 free rr peer 1 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 close http upstream connection: 10 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F980F20, unused: 48 +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer del: 10: 253761319 +2025/08/20 06:49:28 [debug] 602395#602395: *4 reusable connection: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http upstream temp fd: -1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http output filter "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http copy filter: "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http postpone filter "/upload?" 00007FFC67C2AF60 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http chunk: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write old buf t:1 f:0 00005E702F9A3140, pos 00005E702F9A3140, size: 5 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write old buf t:1 f:0 00005E702F9A1150, pos 00005E702F9A1908, size: 309 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write old buf t:0 f:0 0000000000000000, pos 00005E700DFD02E8, size: 2 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E5, size: 5 file: 0, size: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter: l:1 f:0 s:321 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter limit 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 writev: 321 of 321 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http write filter 0000000000000000 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http copy filter: 0 "/upload?" +2025/08/20 06:49:28 [debug] 602395#602395: *4 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 set http keepalive handler +2025/08/20 06:49:28 [debug] 602395#602395: *4 http close request +2025/08/20 06:49:28 [debug] 602395#602395: *4 http log handler +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9A1150 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9B6A30, unused: 3 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9ACDA0, unused: 9 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9A2160, unused: 14 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9A3170, unused: 1138 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F9A4180, unused: 1898 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F99A0A0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 hc free: 0000000000000000 +2025/08/20 06:49:28 [debug] 602395#602395: *4 hc busy: 0000000000000000 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 tcp_nodelay +2025/08/20 06:49:28 [debug] 602395#602395: *4 reusable connection: 1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer add: 6: 65000:253766324 +2025/08/20 06:49:28 [debug] 602395#602395: timer delta: 3 +2025/08/20 06:49:28 [debug] 602395#602395: worker cycle +2025/08/20 06:49:28 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:49:28 [debug] 602395#602395: epoll: fd:6 ev:2005 d:0000766FE7B131E0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 http keepalive handler +2025/08/20 06:49:28 [debug] 602395#602395: *4 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: eof:1, avail:-1 +2025/08/20 06:49:28 [debug] 602395#602395: *4 recv: fd:6 0 of 1024 +2025/08/20 06:49:28 [info] 602395#602395: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 06:49:28 [debug] 602395#602395: *4 close http connection: 6 +2025/08/20 06:49:28 [debug] 602395#602395: *4 event timer del: 6: 253766324 +2025/08/20 06:49:28 [debug] 602395#602395: *4 reusable connection: 0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F99A0A0 +2025/08/20 06:49:28 [debug] 602395#602395: *4 free: 00005E702F997840, unused: 120 +2025/08/20 06:49:28 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:49:28 [debug] 602395#602395: worker cycle +2025/08/20 06:49:28 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:49:47 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:49:47 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 accept: 127.0.0.1:45398 fd:6 +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer add: 6: 60000:253780450 +2025/08/20 06:49:47 [debug] 602395#602395: *6 reusable connection: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 19124 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http wait request handler +2025/08/20 06:49:47 [debug] 602395#602395: *6 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: eof:0, avail:-1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: fd:6 785 of 1024 +2025/08/20 06:49:47 [debug] 602395#602395: *6 reusable connection: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http process request line +2025/08/20 06:49:47 [debug] 602395#602395: *6 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http uri: "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http args: "" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http exten: "" +2025/08/20 06:49:47 [debug] 602395#602395: *6 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http process request header line +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "Host: localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "Accept: */*" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "Content-Type: text/plain" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header: "Content-Length: 16" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http header done +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer del: 6: 253780450 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 rewrite phase: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: "/health" +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:49:47 [debug] 602395#602395: *6 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:49:47 [debug] 602395#602395: *6 using configuration "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http cl:16 max:104857600 +2025/08/20 06:49:47 [debug] 602395#602395: *6 rewrite phase: 3 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "PUT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script regex: "^(PUT)$" +2025/08/20 06:49:47 [notice] 602395#602395: *6 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script if +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script if: false +2025/08/20 06:49:47 [debug] 602395#602395: *6 post rewrite phase: 4 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 5 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 6 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 7 +2025/08/20 06:49:47 [debug] 602395#602395: *6 access phase: 8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 access phase: 9 +2025/08/20 06:49:47 [debug] 602395#602395: *6 access phase: 10 +2025/08/20 06:49:47 [debug] 602395#602395: *6 post access phase: 11 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 12 +2025/08/20 06:49:47 [debug] 602395#602395: *6 generic phase: 13 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http client request body preread 16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http request body content length filter +2025/08/20 06:49:47 [debug] 602395#602395: *6 http body new buf t:1 f:0 00005E702F99A3A1, pos 00005E702F99A3A1, size: 16 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http init upstream, client timer: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "QUERY_STRING" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "QUERY_STRING: " +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REQUEST_METHOD" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "PUT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "CONTENT_TYPE" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "text/plain" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "CONTENT_LENGTH" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "16" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "CONTENT_LENGTH: 16" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SCRIPT_NAME" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REQUEST_URI" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "DOCUMENT_URI" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "./blobs" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "HTTP/1.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REQUEST_SCHEME" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "http" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "CGI/1.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "nginx/" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "1.18.0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REMOTE_ADDR" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "127.0.0.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REMOTE_PORT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "45398" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REMOTE_PORT: 45398" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SERVER_ADDR" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "127.0.0.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SERVER_PORT" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SERVER_NAME" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "localhost" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "REDIRECT_STATUS" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "200" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script var: "./blobs" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http script copy: "/ginxsom.fcgi" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:49:47 [debug] 602395#602395: *6 fastcgi param: "HTTP_CONTENT_LENGTH: 16" +2025/08/20 06:49:47 [debug] 602395#602395: *6 posix_memalign: 00005E702F9A1150:4096 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http cleanup add: 00005E702F9ADD80 +2025/08/20 06:49:47 [debug] 602395#602395: *6 get rr peer, try: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 stream socket 10 +2025/08/20 06:49:47 [debug] 602395#602395: *6 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:49:47 [debug] 602395#602395: *6 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #7 +2025/08/20 06:49:47 [debug] 602395#602395: *6 connected +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream connect: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 posix_memalign: 00005E702F980F20:128 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream send request +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream send request body +2025/08/20 06:49:47 [debug] 602395#602395: *6 chain writer buf fl:0 s:1224 +2025/08/20 06:49:47 [debug] 602395#602395: *6 chain writer buf fl:0 s:16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 chain writer buf fl:0 s:8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 chain writer in: 00005E702F9A1288 +2025/08/20 06:49:47 [debug] 602395#602395: *6 writev: 1248 of 1248 +2025/08/20 06:49:47 [debug] 602395#602395: *6 chain writer out: 0000000000000000 +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer add: 10: 60000:253780451 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http request count:2 blk:0 +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:6 ev:0004 d:0000766FE7B131E1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http run request: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream check client, write event:1, "/upload" +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:10 ev:0004 d:0000766FE7B132C8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream request: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream dummy handler +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: 59998 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:10 ev:0005 d:0000766FE7B132C8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream request: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream process header +2025/08/20 06:49:47 [debug] 602395#602395: *6 malloc: 00005E702F9A2160:4096 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: eof:0, avail:-1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: fd:10 2560 of 4096 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "DEBUG: authenticate_request ENTRY - method: upload, hash: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58 +DEBUG: authenticate_request - calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - parse_authorization_header succeeded +DEBUG: authenticate_" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "request - calling cJSON_Parse on: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +DEBUG: a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "uthenticate_request - cJSON_Parse succeeded, event parsed +DEBUG: authenticate_request - Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +DEBUG: kind: 24242 +DEBUG: created_at: 1755685428" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_request - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: eof:0, avail:0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream request: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream dummy handler +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: 59998 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:10 ev:2005 d:0000766FE7B132C8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream request: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream process header +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: eof:1, avail:-1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: fd:10 2192 of 4096 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: F8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 504 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: " Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0 (Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 12 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 06 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 274 +2025/08/20 06:49:47 [error] 602395#602395: *6 FastCGI sent in stderr: "authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 07 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 06 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 05 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 46 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 02 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 1350 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "LOG: [2025-08-20 06:49:47] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: content_length=16" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "LOG: [2025-08-20 06:49:47] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi parser: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi header done +2025/08/20 06:49:47 [debug] 602395#602395: *6 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:49:47 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:49:47] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=16 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +LOG: [2025-08-20 06:49:47] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58 + +2025/08/20 06:49:47 [debug] 602395#602395: *6 write new buf t:1 f:0 00005E702F9A1B40, pos 00005E702F9A1B40, size: 1258 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter: l:0 f:0 s:1258 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http cacheable: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream process upstream +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe read upstream: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe preread: 239 +2025/08/20 06:49:47 [debug] 602395#602395: *6 readv: eof:1, avail:0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 readv: 1, last:1904 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe recv chain: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe buf free s:0 t:1 f:0 00005E702F9A2160, pos 00005E702F9A2901, size: 239 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe length: -1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 posix_memalign: 00005E702F9A3170:4096 @16 +2025/08/20 06:49:47 [debug] 602395#602395: *6 input buf #0 00005E702F9A2901 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 06 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi closed stdout +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 03 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 01 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 08 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record byte: 00 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi record length: 8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http fastcgi sent end request +2025/08/20 06:49:47 [debug] 602395#602395: *6 input buf 00005E702F9A2901 213 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe write downstream: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe write downstream flush in +2025/08/20 06:49:47 [debug] 602395#602395: *6 http output filter "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http copy filter: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http postpone filter "/upload?" 00005E702F9A1258 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http chunk: 213 +2025/08/20 06:49:47 [debug] 602395#602395: *6 write old buf t:1 f:0 00005E702F9A1B40, pos 00005E702F9A1B40, size: 1258 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 write new buf t:1 f:0 00005E702F9A32B8, pos 00005E702F9A32B8, size: 4 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 write new buf t:1 f:0 00005E702F9A2160, pos 00005E702F9A2901, size: 213 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E8, size: 2 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter: l:0 f:0 s:1477 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter limit 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 writev: 1477 of 1477 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter 0000000000000000 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http copy filter: 0 "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 pipe write downstream done +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer: 10, old: 253780451, new: 253780454 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream exit: 0000000000000000 +2025/08/20 06:49:47 [debug] 602395#602395: *6 finalize http upstream request: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 finalize http fastcgi request +2025/08/20 06:49:47 [debug] 602395#602395: *6 free rr peer 1 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 close http upstream connection: 10 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F980F20, unused: 48 +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer del: 10: 253780451 +2025/08/20 06:49:47 [debug] 602395#602395: *6 reusable connection: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http upstream temp fd: -1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http output filter "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http copy filter: "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http postpone filter "/upload?" 00007FFC67C2AF60 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http chunk: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E5, size: 5 file: 0, size: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter: l:1 f:0 s:5 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter limit 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 writev: 5 of 5 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http write filter 0000000000000000 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http copy filter: 0 "/upload?" +2025/08/20 06:49:47 [debug] 602395#602395: *6 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 set http keepalive handler +2025/08/20 06:49:47 [debug] 602395#602395: *6 http close request +2025/08/20 06:49:47 [debug] 602395#602395: *6 http log handler +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F9A2160 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F9B6A30, unused: 3 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F9ACDA0, unused: 8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F9A1150, unused: 8 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F9A3170, unused: 3410 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F99A0A0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 hc free: 0000000000000000 +2025/08/20 06:49:47 [debug] 602395#602395: *6 hc busy: 0000000000000000 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 tcp_nodelay +2025/08/20 06:49:47 [debug] 602395#602395: *6 reusable connection: 1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer add: 6: 65000:253785454 +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:49:47 [debug] 602395#602395: epoll: fd:6 ev:2005 d:0000766FE7B131E1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 http keepalive handler +2025/08/20 06:49:47 [debug] 602395#602395: *6 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: eof:1, avail:-1 +2025/08/20 06:49:47 [debug] 602395#602395: *6 recv: fd:6 0 of 1024 +2025/08/20 06:49:47 [info] 602395#602395: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 06:49:47 [debug] 602395#602395: *6 close http connection: 6 +2025/08/20 06:49:47 [debug] 602395#602395: *6 event timer del: 6: 253785454 +2025/08/20 06:49:47 [debug] 602395#602395: *6 reusable connection: 0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F99A0A0 +2025/08/20 06:49:47 [debug] 602395#602395: *6 free: 00005E702F997840, unused: 120 +2025/08/20 06:49:47 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:49:47 [debug] 602395#602395: worker cycle +2025/08/20 06:49:47 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:51:41 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:51:41 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 accept: 127.0.0.1:50504 fd:6 +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer add: 6: 60000:253894596 +2025/08/20 06:51:41 [debug] 602395#602395: *8 reusable connection: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 114140 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http wait request handler +2025/08/20 06:51:41 [debug] 602395#602395: *8 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: eof:0, avail:-1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: fd:6 785 of 1024 +2025/08/20 06:51:41 [debug] 602395#602395: *8 reusable connection: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http process request line +2025/08/20 06:51:41 [debug] 602395#602395: *8 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http uri: "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http args: "" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http exten: "" +2025/08/20 06:51:41 [debug] 602395#602395: *8 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http process request header line +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "Host: localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "Accept: */*" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "Content-Type: text/plain" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header: "Content-Length: 16" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http header done +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer del: 6: 253894596 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 rewrite phase: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: "/health" +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:51:41 [debug] 602395#602395: *8 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:51:41 [debug] 602395#602395: *8 using configuration "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http cl:16 max:104857600 +2025/08/20 06:51:41 [debug] 602395#602395: *8 rewrite phase: 3 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "PUT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script regex: "^(PUT)$" +2025/08/20 06:51:41 [notice] 602395#602395: *8 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script if +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script if: false +2025/08/20 06:51:41 [debug] 602395#602395: *8 post rewrite phase: 4 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 5 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 6 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 7 +2025/08/20 06:51:41 [debug] 602395#602395: *8 access phase: 8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 access phase: 9 +2025/08/20 06:51:41 [debug] 602395#602395: *8 access phase: 10 +2025/08/20 06:51:41 [debug] 602395#602395: *8 post access phase: 11 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 12 +2025/08/20 06:51:41 [debug] 602395#602395: *8 generic phase: 13 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http client request body preread 16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http request body content length filter +2025/08/20 06:51:41 [debug] 602395#602395: *8 http body new buf t:1 f:0 00005E702F99A3A1, pos 00005E702F99A3A1, size: 16 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http init upstream, client timer: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "QUERY_STRING" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "QUERY_STRING: " +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REQUEST_METHOD" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "PUT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "CONTENT_TYPE" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "text/plain" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "CONTENT_LENGTH" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "16" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "CONTENT_LENGTH: 16" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SCRIPT_NAME" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REQUEST_URI" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "DOCUMENT_URI" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "./blobs" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "HTTP/1.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REQUEST_SCHEME" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "http" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "CGI/1.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "nginx/" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "1.18.0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REMOTE_ADDR" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "127.0.0.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REMOTE_PORT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "50504" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REMOTE_PORT: 50504" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SERVER_ADDR" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "127.0.0.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SERVER_PORT" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SERVER_NAME" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "localhost" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "REDIRECT_STATUS" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "200" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script var: "./blobs" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http script copy: "/ginxsom.fcgi" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:51:41 [debug] 602395#602395: *8 fastcgi param: "HTTP_CONTENT_LENGTH: 16" +2025/08/20 06:51:41 [debug] 602395#602395: *8 posix_memalign: 00005E702F9A1150:4096 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http cleanup add: 00005E702F9ADD80 +2025/08/20 06:51:41 [debug] 602395#602395: *8 get rr peer, try: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 stream socket 10 +2025/08/20 06:51:41 [debug] 602395#602395: *8 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:51:41 [debug] 602395#602395: *8 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #9 +2025/08/20 06:51:41 [debug] 602395#602395: *8 connected +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream connect: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 posix_memalign: 00005E702F980F20:128 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream send request +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream send request body +2025/08/20 06:51:41 [debug] 602395#602395: *8 chain writer buf fl:0 s:1224 +2025/08/20 06:51:41 [debug] 602395#602395: *8 chain writer buf fl:0 s:16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 chain writer buf fl:0 s:8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 chain writer in: 00005E702F9A1288 +2025/08/20 06:51:41 [debug] 602395#602395: *8 writev: 1248 of 1248 +2025/08/20 06:51:41 [debug] 602395#602395: *8 chain writer out: 0000000000000000 +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer add: 10: 60000:253894596 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http request count:2 blk:0 +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:6 ev:0004 d:0000766FE7B131E0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http run request: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream check client, write event:1, "/upload" +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:10 ev:0004 d:0000766FE7B132C9 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream request: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream dummy handler +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: 59999 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:10 ev:0005 d:0000766FE7B132C9 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream request: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream process header +2025/08/20 06:51:41 [debug] 602395#602395: *8 malloc: 00005E702F9A2160:4096 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: eof:0, avail:-1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: fd:10 1536 of 4096 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: F8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 504 +2025/08/20 06:51:41 [error] 602395#602395: *8 FastCGI sent in stderr: "DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: F8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 504 +2025/08/20 06:51:41 [error] 602395#602395: *8 FastCGI sent in stderr: "af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +DEBUG: kind: 24242 +DEBUG: created_at: 1755685428 +DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_reques" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: F8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 504 +2025/08/20 06:51:41 [error] 602395#602395: *8 FastCGI sent in stderr: "t - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: eof:0, avail:0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream request: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream dummy handler +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: 59999 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:10 ev:2005 d:0000766FE7B132C9 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream request: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream process header +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: eof:1, avail:-1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: fd:10 1824 of 4096 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: A1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 417 +2025/08/20 06:51:41 [error] 602395#602395: *8 FastCGI sent in stderr: "(Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG: authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 07 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 06 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 05 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 46 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 02 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 1350 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "LOG: [2025-08-20 06:51:41] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: content_length=16" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "LOG: [2025-08-20 06:51:41] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi parser: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi header done +2025/08/20 06:51:41 [debug] 602395#602395: *8 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:51:41 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:51:41] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=16 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +LOG: [2025-08-20 06:51:41] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 59fbf16bd87c759e1a723b6b638d925bb0b589e6ef5169ff6ad187957345aa58 + +2025/08/20 06:51:41 [debug] 602395#602395: *8 write new buf t:1 f:0 00005E702F9A1B40, pos 00005E702F9A1B40, size: 1258 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter: l:0 f:0 s:1258 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http cacheable: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream process upstream +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe read upstream: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe preread: 239 +2025/08/20 06:51:41 [debug] 602395#602395: *8 readv: eof:1, avail:0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 readv: 1, last:2272 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe recv chain: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe buf free s:0 t:1 f:0 00005E702F9A2160, pos 00005E702F9A2791, size: 239 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe length: -1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 posix_memalign: 00005E702F9A3170:4096 @16 +2025/08/20 06:51:41 [debug] 602395#602395: *8 input buf #0 00005E702F9A2791 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 06 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi closed stdout +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 03 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 01 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 08 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record byte: 00 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi record length: 8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http fastcgi sent end request +2025/08/20 06:51:41 [debug] 602395#602395: *8 input buf 00005E702F9A2791 213 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe write downstream: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe write downstream flush in +2025/08/20 06:51:41 [debug] 602395#602395: *8 http output filter "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http copy filter: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http postpone filter "/upload?" 00005E702F9A1258 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http chunk: 213 +2025/08/20 06:51:41 [debug] 602395#602395: *8 write old buf t:1 f:0 00005E702F9A1B40, pos 00005E702F9A1B40, size: 1258 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 write new buf t:1 f:0 00005E702F9A32B8, pos 00005E702F9A32B8, size: 4 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 write new buf t:1 f:0 00005E702F9A2160, pos 00005E702F9A2791, size: 213 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E8, size: 2 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter: l:0 f:0 s:1477 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter limit 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 writev: 1477 of 1477 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter 0000000000000000 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http copy filter: 0 "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 pipe write downstream done +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer: 10, old: 253894596, new: 253894597 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream exit: 0000000000000000 +2025/08/20 06:51:41 [debug] 602395#602395: *8 finalize http upstream request: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 finalize http fastcgi request +2025/08/20 06:51:41 [debug] 602395#602395: *8 free rr peer 1 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 close http upstream connection: 10 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F980F20, unused: 48 +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer del: 10: 253894596 +2025/08/20 06:51:41 [debug] 602395#602395: *8 reusable connection: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http upstream temp fd: -1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http output filter "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http copy filter: "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http postpone filter "/upload?" 00007FFC67C2AF60 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http chunk: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E5, size: 5 file: 0, size: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter: l:1 f:0 s:5 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter limit 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 writev: 5 of 5 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http write filter 0000000000000000 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http copy filter: 0 "/upload?" +2025/08/20 06:51:41 [debug] 602395#602395: *8 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 set http keepalive handler +2025/08/20 06:51:41 [debug] 602395#602395: *8 http close request +2025/08/20 06:51:41 [debug] 602395#602395: *8 http log handler +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F9A2160 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F9B6A30, unused: 3 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F9ACDA0, unused: 8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F9A1150, unused: 8 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F9A3170, unused: 3410 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F99A0A0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 hc free: 0000000000000000 +2025/08/20 06:51:41 [debug] 602395#602395: *8 hc busy: 0000000000000000 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 tcp_nodelay +2025/08/20 06:51:41 [debug] 602395#602395: *8 reusable connection: 1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer add: 6: 65000:253899597 +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:51:41 [debug] 602395#602395: epoll: fd:6 ev:2005 d:0000766FE7B131E0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 http keepalive handler +2025/08/20 06:51:41 [debug] 602395#602395: *8 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: eof:1, avail:-1 +2025/08/20 06:51:41 [debug] 602395#602395: *8 recv: fd:6 0 of 1024 +2025/08/20 06:51:41 [info] 602395#602395: *8 client 127.0.0.1 closed keepalive connection +2025/08/20 06:51:41 [debug] 602395#602395: *8 close http connection: 6 +2025/08/20 06:51:41 [debug] 602395#602395: *8 event timer del: 6: 253899597 +2025/08/20 06:51:41 [debug] 602395#602395: *8 reusable connection: 0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F99A0A0 +2025/08/20 06:51:41 [debug] 602395#602395: *8 free: 00005E702F997840, unused: 120 +2025/08/20 06:51:41 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:51:41 [debug] 602395#602395: worker cycle +2025/08/20 06:51:41 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:54:59 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:54:59 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *10 accept: 127.0.0.1:44188 fd:6 +2025/08/20 06:54:59 [debug] 602395#602395: *10 event timer add: 6: 60000:254092686 +2025/08/20 06:54:59 [debug] 602395#602395: *10 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 198088 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http wait request handler +2025/08/20 06:54:59 [debug] 602395#602395: *10 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *10 recv: eof:0, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 recv: fd:6 84 of 1024 +2025/08/20 06:54:59 [debug] 602395#602395: *10 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http process request line +2025/08/20 06:54:59 [debug] 602395#602395: *10 http request line: "GET /health HTTP/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http uri: "/health" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http args: "" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http exten: "" +2025/08/20 06:54:59 [debug] 602395#602395: *10 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http process request header line +2025/08/20 06:54:59 [debug] 602395#602395: *10 http header: "Host: localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http header: "Accept: */*" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http header done +2025/08/20 06:54:59 [debug] 602395#602395: *10 event timer del: 6: 254092686 +2025/08/20 06:54:59 [debug] 602395#602395: *10 generic phase: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 rewrite phase: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 test location: "/health" +2025/08/20 06:54:59 [debug] 602395#602395: *10 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *10 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:54:59 [debug] 602395#602395: *10 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *10 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *10 using configuration "/health" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http cl:-1 max:104857600 +2025/08/20 06:54:59 [debug] 602395#602395: *10 rewrite phase: 3 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http set discard body +2025/08/20 06:54:59 [debug] 602395#602395: *10 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:54:59 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 06:54:59 [debug] 602395#602395: *10 write new buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 196 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http write filter: l:0 f:0 s:196 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http output filter "/health?" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http copy filter: "/health?" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http postpone filter "/health?" 00007FFC67C2AEB0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 write old buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 196 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 write new buf t:0 f:0 0000000000000000, pos 00005E702F9D4B42, size: 3 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http write filter: l:1 f:0 s:199 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http write filter limit 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 writev: 199 of 199 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http write filter 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http copy filter: 0 "/health?" +2025/08/20 06:54:59 [debug] 602395#602395: *10 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 set http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *10 http close request +2025/08/20 06:54:59 [debug] 602395#602395: *10 http log handler +2025/08/20 06:54:59 [debug] 602395#602395: *10 free: 00005E702F9B6A30, unused: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 free: 00005E702F9ACDA0, unused: 2736 +2025/08/20 06:54:59 [debug] 602395#602395: *10 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 hc free: 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *10 hc busy: 0000000000000000 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 tcp_nodelay +2025/08/20 06:54:59 [debug] 602395#602395: *10 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 event timer add: 6: 65000:254097686 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:2001 d:0000766FE7B131E1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *10 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *10 recv: eof:1, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *10 recv: fd:6 0 of 1024 +2025/08/20 06:54:59 [info] 602395#602395: *10 client 127.0.0.1 closed keepalive connection +2025/08/20 06:54:59 [debug] 602395#602395: *10 close http connection: 6 +2025/08/20 06:54:59 [debug] 602395#602395: *10 event timer del: 6: 254097686 +2025/08/20 06:54:59 [debug] 602395#602395: *10 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *10 free: 00005E702F997840, unused: 136 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:54:59 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:54:59 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 accept: 127.0.0.1:44198 fd:6 +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer add: 6: 60000:254092984 +2025/08/20 06:54:59 [debug] 602395#602395: *11 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 297 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http wait request handler +2025/08/20 06:54:59 [debug] 602395#602395: *11 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:0, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: fd:6 1024 of 1024 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: avail:112 +2025/08/20 06:54:59 [debug] 602395#602395: *11 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http process request line +2025/08/20 06:54:59 [debug] 602395#602395: *11 http request line: "PUT /upload HTTP/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http uri: "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http args: "" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http exten: "" +2025/08/20 06:54:59 [debug] 602395#602395: *11 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http process request header line +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Host: localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Accept: */*" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlZTI2MzFiMjBlYWE0NjQ0ODI3Njg2MTE5ZTNiZjRkNTFjYWE3MGRmYTBiNDhiZDc3MWU3ZDExYTIyNjIwY2ZiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODcyOTksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiMjJkOGJiOTNjMDMwYmRmZjcxYTRiZjAwZGMzOGMxZTNkOTIwZTI1MzVkZjNiOWUyZTUxM2RmY2I2MjQ5ODIwIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDg5OSJdXSwiY29udGVudCI6IiIsInNpZyI6ImVkYjg4YzAzZDI1YWMyMjQyM2MwZDJmN2NmZGQ1YjliYmE0Yjk3ODBhYjBkNjg0NzE3OTkxNTBiYjM1NDgzNDhiODU4ODY0NTFjMGZkMjYwYzFiYWNkMzhjNzVlOTZhZDZhZTBjOWRlNjFhY2I3ZTA0YTIwZjQzMzhhYmY3NDE5In0=" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Content-Type: text/plain" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Content-Disposition: attachment; filename="test_blob_1755687299.txt"" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header: "Content-Length: 296" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http header done +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer del: 6: 254092984 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 rewrite phase: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: "/health" +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *11 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *11 using configuration "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http cl:296 max:104857600 +2025/08/20 06:54:59 [debug] 602395#602395: *11 rewrite phase: 3 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "PUT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script regex: "^(PUT)$" +2025/08/20 06:54:59 [notice] 602395#602395: *11 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script if +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script if: false +2025/08/20 06:54:59 [debug] 602395#602395: *11 post rewrite phase: 4 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 5 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 6 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 7 +2025/08/20 06:54:59 [debug] 602395#602395: *11 access phase: 8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 access phase: 9 +2025/08/20 06:54:59 [debug] 602395#602395: *11 access phase: 10 +2025/08/20 06:54:59 [debug] 602395#602395: *11 post access phase: 11 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 12 +2025/08/20 06:54:59 [debug] 602395#602395: *11 generic phase: 13 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http client request body preread 184 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http request body content length filter +2025/08/20 06:54:59 [debug] 602395#602395: *11 http body new buf t:1 f:0 00005E702F99A3E8, pos 00005E702F99A3E8, size: 184 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http read client request body +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:0, avail:112 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: fd:6 112 of 112 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: avail:0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http client request body recv 112 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http body new buf t:1 f:0 00005E702F9AD830, pos 00005E702F9AD830, size: 112 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http client request body rest 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http init upstream, client timer: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 06:54:59 [debug] 602395#602395: *11 posix_memalign: 00005E702F9A1150:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "QUERY_STRING" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "QUERY_STRING: " +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REQUEST_METHOD" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "PUT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "CONTENT_TYPE" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "text/plain" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "CONTENT_LENGTH" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "296" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SCRIPT_NAME" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REQUEST_URI" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "DOCUMENT_URI" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "DOCUMENT_ROOT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "./blobs" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SERVER_PROTOCOL" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "HTTP/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REQUEST_SCHEME" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "http" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "GATEWAY_INTERFACE" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "CGI/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SERVER_SOFTWARE" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "nginx/" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "1.18.0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REMOTE_ADDR" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "127.0.0.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REMOTE_PORT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "44198" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REMOTE_PORT: 44198" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SERVER_ADDR" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "127.0.0.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SERVER_PORT" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SERVER_NAME" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "localhost" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "REDIRECT_STATUS" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "200" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "SCRIPT_FILENAME" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script var: "./blobs" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http script copy: "/ginxsom.fcgi" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlZTI2MzFiMjBlYWE0NjQ0ODI3Njg2MTE5ZTNiZjRkNTFjYWE3MGRmYTBiNDhiZDc3MWU3ZDExYTIyNjIwY2ZiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODcyOTksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiMjJkOGJiOTNjMDMwYmRmZjcxYTRiZjAwZGMzOGMxZTNkOTIwZTI1MzVkZjNiOWUyZTUxM2RmY2I2MjQ5ODIwIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDg5OSJdXSwiY29udGVudCI6IiIsInNpZyI6ImVkYjg4YzAzZDI1YWMyMjQyM2MwZDJmN2NmZGQ1YjliYmE0Yjk3ODBhYjBkNjg0NzE3OTkxNTBiYjM1NDgzNDhiODU4ODY0NTFjMGZkMjYwYzFiYWNkMzhjNzVlOTZhZDZhZTBjOWRlNjFhY2I3ZTA0YTIwZjQzMzhhYmY3NDE5In0=" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755687299.txt"" +2025/08/20 06:54:59 [debug] 602395#602395: *11 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http cleanup add: 00005E702F9ADB80 +2025/08/20 06:54:59 [debug] 602395#602395: *11 get rr peer, try: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 stream socket 10 +2025/08/20 06:54:59 [debug] 602395#602395: *11 epoll add connection: fd:10 ev:80002005 +2025/08/20 06:54:59 [debug] 602395#602395: *11 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #12 +2025/08/20 06:54:59 [debug] 602395#602395: *11 connected +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream connect: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 posix_memalign: 00005E702F980F20:128 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream send request +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream send request body +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer buf fl:0 s:1304 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer buf fl:0 s:184 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer buf fl:0 s:8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer buf fl:0 s:112 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer buf fl:0 s:8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer in: 00005E702F9ADC10 +2025/08/20 06:54:59 [debug] 602395#602395: *11 writev: 1616 of 1616 +2025/08/20 06:54:59 [debug] 602395#602395: *11 chain writer out: 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer add: 10: 60000:254092984 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http request count:2 blk:0 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:0004 d:0000766FE7B131E0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http run request: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream check client, write event:1, "/upload" +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:10 ev:0004 d:0000766FE7B132C8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream request: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream dummy handler +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 59998 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:10 ev:0005 d:0000766FE7B132C8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream request: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream process header +2025/08/20 06:54:59 [debug] 602395#602395: *11 malloc: 00005E702F9A2160:4096 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:0, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: fd:10 1536 of 4096 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: F8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 504 +2025/08/20 06:54:59 [error] 602395#602395: *11 FastCGI sent in stderr: "DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlZTI2MzFiMjBlYWE0... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=DEBUG: authenticate_request - Event fields before validation: +DEBUG: id: ee2631b20eaa4644827686119e3bf4d51caa70dfa0b48bd771e7d11a22620cfb +DEBUG: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: sig: edb88c03d25ac22423c0d2f7cfdd5b9bba4b978" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: F8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 504 +2025/08/20 06:54:59 [error] 602395#602395: *11 FastCGI sent in stderr: "0ab0d68471799150bb3548348b85886451c0fd260c1bacd38c75e96ad6ae0c9de61acb7e04a20f4338abf7419 +DEBUG: kind: 24242 +DEBUG: created_at: 1755687299 +DEBUG: authenticate_request - Detailed pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +DEBUG: authenticate_request - calling nostr_validate_event +DEBUG: authenticate_reques" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: F8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 504 +2025/08/20 06:54:59 [error] 602395#602395: *11 FastCGI sent in stderr: "t - Pre-validation pubkey analysis: +DEBUG: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +DEBUG: Length: DEBUG: Character analysis (first 10): 7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +DEBUG: Character validation test: ALL VALID (lowercase hex) +DEBUG: authenticate_request - Starting detailed validation analysis +DEBUG: authenticate_request - Testing structure validation... +DEBUG: authenticate_request - nostr_validate_event_structure returned: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:0, avail:0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream request: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream dummy handler +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 59998 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:10 ev:2005 d:0000766FE7B132C8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream request: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream process header +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:1, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: fd:10 1824 of 4096 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: A1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 417 +2025/08/20 06:54:59 [error] 602395#602395: *11 FastCGI sent in stderr: "(Success) +DEBUG: authenticate_request - Structure validation PASSED +DEBUG: authenticate_request - Testing cryptographic verification... +DEBUG: authenticate_request - nostr_verify_event_signature returned: -32 (Event has invalid public key) +DEBUG: authenticate_request - CRYPTO verification failed! +DEBUG: authenticate_request - Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 07 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 06 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 05 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 47 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 1351 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "LOG: [2025-08-20 06:54:59] PUT /upload - Auth: pending - Status: 0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlZTI2MzFiMjBlYWE0NjQ0ODI3Njg2MTE5ZTNiZjRkNTFjYWE3MGRmYTBiNDhiZDc3MWU3ZDExYTIyNjIwY2ZiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODcyOTksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiMjJkOGJiOTNjMDMwYmRmZjcxYTRiZjAwZGMzOGMxZTNkOTIwZTI1MzVkZjNiOWUyZTUxM2RmY2I2MjQ5ODIwIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDg5OSJdXSwiY29udGVudCI6IiIsInNpZyI6ImVkYjg4YzAzZDI1YWMyMjQyM2MwZDJmN2NmZGQ1YjliYmE0Yjk3ODBhYjBkNjg0NzE3OTkxNTBiYjM1NDgzNDhiODU4ODY0NTFjMGZkMjYwYzFiYWNkMzhjNzVlOTZhZDZhZTBjOWRlNjFhY2I3ZTA0YTIwZjQzMzhhYmY3NDE5In0=" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "LOG: [2025-08-20 06:54:59] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header: "Content-Type: application/json" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi parser: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi header done +2025/08/20 06:54:59 [debug] 602395#602395: *11 posix_memalign: 00005E702F9A3170:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *11 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:54:59 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 06:54:59] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlZTI2MzFiMjBlYWE0NjQ0ODI3Njg2MTE5ZTNiZjRkNTFjYWE3MGRmYTBiNDhiZDc3MWU3ZDExYTIyNjIwY2ZiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODcyOTksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiMjJkOGJiOTNjMDMwYmRmZjcxYTRiZjAwZGMzOGMxZTNkOTIwZTI1MzVkZjNiOWUyZTUxM2RmY2I2MjQ5ODIwIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MDg5OSJdXSwiY29udGVudCI6IiIsInNpZyI6ImVkYjg4YzAzZDI1YWMyMjQyM2MwZDJmN2NmZGQ1YjliYmE0Yjk3ODBhYjBkNjg0NzE3OTkxNTBiYjM1NDgzNDhiODU4ODY0NTFjMGZkMjYwYzFiYWNkMzhjNzVlOTZhZDZhZTBjOWRlNjFhY2I3ZTA0YTIwZjQzMzhhYmY3NDE5In0= +LOG: [2025-08-20 06:54:59] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820 + +2025/08/20 06:54:59 [debug] 602395#602395: *11 write new buf t:1 f:0 00005E702F9A3190, pos 00005E702F9A3190, size: 1259 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter: l:0 f:0 s:1259 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http cacheable: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream process upstream +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe read upstream: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe preread: 238 +2025/08/20 06:54:59 [debug] 602395#602395: *11 readv: eof:1, avail:0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 readv: 1, last:2272 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe recv chain: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe buf free s:0 t:1 f:0 00005E702F9A2160, pos 00005E702F9A2792, size: 238 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe length: -1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 input buf #0 00005E702F9A2792 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 06 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi closed stdout +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 03 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 01 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 08 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record byte: 00 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi record length: 8 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http fastcgi sent end request +2025/08/20 06:54:59 [debug] 602395#602395: *11 input buf 00005E702F9A2792 213 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe write downstream: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe write downstream flush in +2025/08/20 06:54:59 [debug] 602395#602395: *11 http output filter "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http copy filter: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http postpone filter "/upload?" 00005E702F9ADBE0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http chunk: 213 +2025/08/20 06:54:59 [debug] 602395#602395: *11 write old buf t:1 f:0 00005E702F9A3190, pos 00005E702F9A3190, size: 1259 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 write new buf t:1 f:0 00005E702F9A2010, pos 00005E702F9A2010, size: 4 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 write new buf t:1 f:0 00005E702F9A2160, pos 00005E702F9A2792, size: 213 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E8, size: 2 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter: l:0 f:0 s:1478 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter limit 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 writev: 1478 of 1478 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http copy filter: 0 "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 pipe write downstream done +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer: 10, old: 254092984, new: 254092987 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream exit: 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *11 finalize http upstream request: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 finalize http fastcgi request +2025/08/20 06:54:59 [debug] 602395#602395: *11 free rr peer 1 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 close http upstream connection: 10 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F980F20, unused: 48 +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer del: 10: 254092984 +2025/08/20 06:54:59 [debug] 602395#602395: *11 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http upstream temp fd: -1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http output filter "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http copy filter: "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http postpone filter "/upload?" 00007FFC67C2AF60 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http chunk: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 write new buf t:0 f:0 0000000000000000, pos 00005E700DFD02E5, size: 5 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter: l:1 f:0 s:5 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter limit 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 writev: 5 of 5 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http write filter 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http copy filter: 0 "/upload?" +2025/08/20 06:54:59 [debug] 602395#602395: *11 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 set http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *11 http close request +2025/08/20 06:54:59 [debug] 602395#602395: *11 http log handler +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F9A2160 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F9B6A30, unused: 3 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F9ACDA0, unused: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F9A1150, unused: 10 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F9A3170, unused: 2805 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 hc free: 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *11 hc busy: 0000000000000000 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 tcp_nodelay +2025/08/20 06:54:59 [debug] 602395#602395: *11 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer add: 6: 65000:254097987 +2025/08/20 06:54:59 [debug] 602395#602395: *11 post event 00005E702F9E8770 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:54:59 [debug] 602395#602395: posted event 00005E702F9E8770 +2025/08/20 06:54:59 [debug] 602395#602395: *11 delete posted event 00005E702F9E8770 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *11 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:0, avail:0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:2005 d:0000766FE7B131E0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *11 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: eof:1, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *11 recv: fd:6 0 of 1024 +2025/08/20 06:54:59 [info] 602395#602395: *11 client 127.0.0.1 closed keepalive connection +2025/08/20 06:54:59 [debug] 602395#602395: *11 close http connection: 6 +2025/08/20 06:54:59 [debug] 602395#602395: *11 event timer del: 6: 254097987 +2025/08/20 06:54:59 [debug] 602395#602395: *11 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *11 free: 00005E702F997840, unused: 120 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 2 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: -1 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:5 ev:0001 d:0000766FE7B13010 +2025/08/20 06:54:59 [debug] 602395#602395: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 06:54:59 [debug] 602395#602395: posix_memalign: 00005E702F997840:512 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *13 accept: 127.0.0.1:44204 fd:6 +2025/08/20 06:54:59 [debug] 602395#602395: *13 event timer add: 6: 60000:254092996 +2025/08/20 06:54:59 [debug] 602395#602395: *13 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 7 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 60000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:0001 d:0000766FE7B131E1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http wait request handler +2025/08/20 06:54:59 [debug] 602395#602395: *13 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *13 recv: eof:0, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 recv: fd:6 142 of 1024 +2025/08/20 06:54:59 [debug] 602395#602395: *13 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 posix_memalign: 00005E702F9B6A30:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http process request line +2025/08/20 06:54:59 [debug] 602395#602395: *13 http request line: "GET /b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820 HTTP/1.1" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http uri: "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http args: "" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http exten: "" +2025/08/20 06:54:59 [debug] 602395#602395: *13 posix_memalign: 00005E702F9ACDA0:4096 @16 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http process request header line +2025/08/20 06:54:59 [debug] 602395#602395: *13 http header: "Host: localhost:9001" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http header: "User-Agent: curl/8.15.0" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http header: "Accept: */*" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http header done +2025/08/20 06:54:59 [debug] 602395#602395: *13 event timer del: 6: 254092996 +2025/08/20 06:54:59 [debug] 602395#602395: *13 generic phase: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 rewrite phase: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 test location: "/health" +2025/08/20 06:54:59 [debug] 602395#602395: *13 test location: "/debug/list" +2025/08/20 06:54:59 [debug] 602395#602395: *13 test location: "/" +2025/08/20 06:54:59 [debug] 602395#602395: *13 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *13 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http cl:-1 max:104857600 +2025/08/20 06:54:59 [debug] 602395#602395: *13 rewrite phase: 3 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http script var +2025/08/20 06:54:59 [debug] 602395#602395: *13 http script var: "GET" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http script value: "DELETE" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http script not equal +2025/08/20 06:54:59 [debug] 602395#602395: *13 http script if +2025/08/20 06:54:59 [debug] 602395#602395: *13 http finalize request: 404, "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" a:1, c:1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http special response: 404, "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http set discard body +2025/08/20 06:54:59 [debug] 602395#602395: *13 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 10:54:59 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 06:54:59 [debug] 602395#602395: *13 write new buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 164 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http write filter: l:0 f:0 s:164 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http output filter "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http copy filter: "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http postpone filter "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" 00005E702F9AD310 +2025/08/20 06:54:59 [debug] 602395#602395: *13 write old buf t:1 f:0 00005E702F9AD180, pos 00005E702F9AD180, size: 164 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 write new buf t:0 f:0 0000000000000000, pos 00005E700E00F580, size: 100 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 write new buf t:0 f:0 0000000000000000, pos 00005E700E00FC80, size: 62 file: 0, size: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http write filter: l:1 f:0 s:326 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http write filter limit 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 writev: 326 of 326 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http write filter 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http copy filter: 0 "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" +2025/08/20 06:54:59 [debug] 602395#602395: *13 http finalize request: 0, "/b22d8bb93c030bdff71a4bf00dc38c1e3d920e2535df3b9e2e513dfcb6249820?" a:1, c:1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 set http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *13 http close request +2025/08/20 06:54:59 [debug] 602395#602395: *13 http log handler +2025/08/20 06:54:59 [debug] 602395#602395: *13 free: 00005E702F9B6A30, unused: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 free: 00005E702F9ACDA0, unused: 2456 +2025/08/20 06:54:59 [debug] 602395#602395: *13 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 hc free: 0000000000000000 +2025/08/20 06:54:59 [debug] 602395#602395: *13 hc busy: 0000000000000000 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 tcp_nodelay +2025/08/20 06:54:59 [debug] 602395#602395: *13 reusable connection: 1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 event timer add: 6: 65000:254097996 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 0 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: 65000 +2025/08/20 06:54:59 [debug] 602395#602395: epoll: fd:6 ev:2001 d:0000766FE7B131E1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 http keepalive handler +2025/08/20 06:54:59 [debug] 602395#602395: *13 malloc: 00005E702F99A0A0:1024 +2025/08/20 06:54:59 [debug] 602395#602395: *13 recv: eof:1, avail:-1 +2025/08/20 06:54:59 [debug] 602395#602395: *13 recv: fd:6 0 of 1024 +2025/08/20 06:54:59 [info] 602395#602395: *13 client 127.0.0.1 closed keepalive connection +2025/08/20 06:54:59 [debug] 602395#602395: *13 close http connection: 6 +2025/08/20 06:54:59 [debug] 602395#602395: *13 event timer del: 6: 254097996 +2025/08/20 06:54:59 [debug] 602395#602395: *13 reusable connection: 0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 free: 00005E702F99A0A0 +2025/08/20 06:54:59 [debug] 602395#602395: *13 free: 00005E702F997840, unused: 136 +2025/08/20 06:54:59 [debug] 602395#602395: timer delta: 1 +2025/08/20 06:54:59 [debug] 602395#602395: worker cycle +2025/08/20 06:54:59 [debug] 602395#602395: epoll timer: -1 +2025/08/20 07:18:34 [notice] 602394#602394: signal 15 (SIGTERM) received from 606628, exiting +2025/08/20 07:18:34 [debug] 602394#602394: wake up, sigio 0 +2025/08/20 07:18:34 [debug] 602394#602394: child: 0 602395 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:18:34 [debug] 602394#602394: termination cycle: 50 +2025/08/20 07:18:34 [debug] 602394#602394: sigsuspend +2025/08/20 07:18:34 [debug] 602395#602395: epoll: fd:7 ev:0001 d:0000766FE7B130F8 +2025/08/20 07:18:34 [debug] 602395#602395: channel handler +2025/08/20 07:18:34 [debug] 602395#602395: channel: 32 +2025/08/20 07:18:34 [debug] 602395#602395: channel command: 4 +2025/08/20 07:18:34 [debug] 602395#602395: channel: -2 +2025/08/20 07:18:34 [debug] 602395#602395: timer delta: 1414440 +2025/08/20 07:18:34 [notice] 602395#602395: exiting +2025/08/20 07:18:34 [debug] 602395#602395: flush files +2025/08/20 07:18:34 [debug] 602395#602395: run cleanup: 00005E702F9E5A80 +2025/08/20 07:18:34 [debug] 602395#602395: run cleanup: 00005E702F9D8A18 +2025/08/20 07:18:34 [debug] 602395#602395: cleanup resolver +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9E6DE0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9D9BE0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B8B50 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B7A40 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B1A10 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B0950 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9AF890 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9AE7D0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9A6170 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F99D140, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9A7580, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B2A20, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9B9B60, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9BDB70, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9C1B80, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9C5B90, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9C9BA0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9CDBB0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9D1BC0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9D5BD0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9DADB0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9DEDC0, unused: 0 +2025/08/20 07:18:34 [debug] 602395#602395: free: 00005E702F9E2DD0, unused: 4920 +2025/08/20 07:18:34 [notice] 602395#602395: exit +2025/08/20 07:18:34 [notice] 602394#602394: signal 17 (SIGCHLD) received from 602395 +2025/08/20 07:18:34 [notice] 602394#602394: worker process 602395 exited with code 0 +2025/08/20 07:18:34 [debug] 602394#602394: shmtx forced unlock +2025/08/20 07:18:34 [debug] 602394#602394: wake up, sigio 3 +2025/08/20 07:18:34 [debug] 602394#602394: reap children +2025/08/20 07:18:34 [debug] 602394#602394: child: 0 602395 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:18:34 [notice] 602394#602394: exit +2025/08/20 07:18:34 [debug] 602394#602394: close listening 0.0.0.0:9001 #5 +2025/08/20 07:18:34 [debug] 602394#602394: run cleanup: 00005E702F9D8A18 +2025/08/20 07:18:34 [debug] 602394#602394: cleanup resolver +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9E6DE0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9D9BE0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B8B50 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B7A40 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B1A10 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B0950 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9AF890 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9AE7D0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9A6170 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F99D140, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9A7580, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B2A20, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9B9B60, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9BDB70, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9C1B80, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9C5B90, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9C9BA0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9CDBB0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9D1BC0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9D5BD0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9DADB0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9DEDC0, unused: 0 +2025/08/20 07:18:34 [debug] 602394#602394: free: 00005E702F9E2DD0, unused: 4951 +2025/08/20 07:18:38 [debug] 606681#606681: bind() 0.0.0.0:9001 #5 +2025/08/20 07:18:38 [debug] 606681#606681: counter: 00007BA83A725080, 1 +2025/08/20 07:18:38 [debug] 606682#606682: bind() 0.0.0.0:9001 #5 +2025/08/20 07:18:38 [notice] 606682#606682: using the "epoll" event method +2025/08/20 07:18:38 [debug] 606682#606682: counter: 00007E70208A0080, 1 +2025/08/20 07:18:38 [notice] 606682#606682: nginx/1.18.0 (Ubuntu) +2025/08/20 07:18:38 [notice] 606682#606682: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:18:38 [notice] 606682#606682: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:18:38 [debug] 606683#606682: write: 6, 00007FFE26EA83B0, 7, 0 +2025/08/20 07:18:38 [debug] 606683#606683: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:18:38 [notice] 606683#606683: start worker processes +2025/08/20 07:18:38 [debug] 606683#606683: channel 6:7 +2025/08/20 07:18:38 [notice] 606683#606683: start worker process 606684 +2025/08/20 07:18:38 [debug] 606683#606683: sigsuspend +2025/08/20 07:18:38 [debug] 606684#606684: add cleanup: 00005FE57006DA80 +2025/08/20 07:18:38 [debug] 606684#606684: malloc: 00005FE570020BD0:8 +2025/08/20 07:18:38 [debug] 606684#606684: notify eventfd: 9 +2025/08/20 07:18:38 [debug] 606684#606684: testing the EPOLLRDHUP flag: success +2025/08/20 07:18:38 [debug] 606684#606684: malloc: 00005FE570033590:6144 +2025/08/20 07:18:38 [debug] 606684#606684: malloc: 00007E7020698010:237568 +2025/08/20 07:18:38 [debug] 606684#606684: malloc: 00005FE5700706B0:98304 +2025/08/20 07:18:38 [debug] 606684#606684: malloc: 00005FE5700886C0:98304 +2025/08/20 07:18:38 [debug] 606684#606684: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:18:38 [debug] 606684#606684: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:18:38 [debug] 606684#606684: setproctitle: "nginx: worker process" +2025/08/20 07:18:38 [debug] 606684#606684: worker cycle +2025/08/20 07:18:38 [debug] 606684#606684: epoll timer: -1 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:5 ev:0001 d:00007E7020698010 +2025/08/20 07:18:55 [debug] 606684#606684: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:18:55 [debug] 606684#606684: posix_memalign: 00005FE57001F840:512 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *1 accept: 127.0.0.1:53826 fd:6 +2025/08/20 07:18:55 [debug] 606684#606684: *1 event timer add: 6: 60000:255528425 +2025/08/20 07:18:55 [debug] 606684#606684: *1 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 16732 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 60000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:0001 d:00007E70206981E0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http wait request handler +2025/08/20 07:18:55 [debug] 606684#606684: *1 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *1 recv: eof:0, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 recv: fd:6 84 of 1024 +2025/08/20 07:18:55 [debug] 606684#606684: *1 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 posix_memalign: 00005FE57003EA30:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http process request line +2025/08/20 07:18:55 [debug] 606684#606684: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http uri: "/health" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http args: "" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http exten: "" +2025/08/20 07:18:55 [debug] 606684#606684: *1 posix_memalign: 00005FE570034DA0:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http process request header line +2025/08/20 07:18:55 [debug] 606684#606684: *1 http header: "Host: localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http header: "Accept: */*" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http header done +2025/08/20 07:18:55 [debug] 606684#606684: *1 event timer del: 6: 255528425 +2025/08/20 07:18:55 [debug] 606684#606684: *1 generic phase: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 rewrite phase: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 test location: "/health" +2025/08/20 07:18:55 [debug] 606684#606684: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:18:55 [debug] 606684#606684: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *1 using configuration "/health" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http cl:-1 max:104857600 +2025/08/20 07:18:55 [debug] 606684#606684: *1 rewrite phase: 3 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http set discard body +2025/08/20 07:18:55 [debug] 606684#606684: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:18:55 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 07:18:55 [debug] 606684#606684: *1 write new buf t:1 f:0 00005FE570035180, pos 00005FE570035180, size: 196 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http write filter: l:0 f:0 s:196 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http output filter "/health?" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http copy filter: "/health?" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http postpone filter "/health?" 00007FFE26EA7F40 +2025/08/20 07:18:55 [debug] 606684#606684: *1 write old buf t:1 f:0 00005FE570035180, pos 00005FE570035180, size: 196 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 write new buf t:0 f:0 0000000000000000, pos 00005FE57005CB42, size: 3 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http write filter: l:1 f:0 s:199 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http write filter limit 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 writev: 199 of 199 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http write filter 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http copy filter: 0 "/health?" +2025/08/20 07:18:55 [debug] 606684#606684: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 set http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *1 http close request +2025/08/20 07:18:55 [debug] 606684#606684: *1 http log handler +2025/08/20 07:18:55 [debug] 606684#606684: *1 free: 00005FE57003EA30, unused: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 free: 00005FE570034DA0, unused: 2736 +2025/08/20 07:18:55 [debug] 606684#606684: *1 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 hc free: 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *1 hc busy: 0000000000000000 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 tcp_nodelay +2025/08/20 07:18:55 [debug] 606684#606684: *1 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 event timer add: 6: 65000:255533425 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 0 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 65000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:2001 d:00007E70206981E0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *1 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *1 recv: eof:1, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *1 recv: fd:6 0 of 1024 +2025/08/20 07:18:55 [info] 606684#606684: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 07:18:55 [debug] 606684#606684: *1 close http connection: 6 +2025/08/20 07:18:55 [debug] 606684#606684: *1 event timer del: 6: 255533425 +2025/08/20 07:18:55 [debug] 606684#606684: *1 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *1 free: 00005FE57001F840, unused: 136 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 1 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: -1 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:5 ev:0001 d:00007E7020698010 +2025/08/20 07:18:55 [debug] 606684#606684: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:18:55 [debug] 606684#606684: posix_memalign: 00005FE57001F840:512 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *2 accept: 127.0.0.1:53836 fd:6 +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer add: 6: 60000:255528672 +2025/08/20 07:18:55 [debug] 606684#606684: *2 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 246 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 60000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:0001 d:00007E70206981E1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http wait request handler +2025/08/20 07:18:55 [debug] 606684#606684: *2 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: eof:0, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: fd:6 1024 of 1024 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: avail:112 +2025/08/20 07:18:55 [debug] 606684#606684: *2 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 posix_memalign: 00005FE57003EA30:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http process request line +2025/08/20 07:18:55 [debug] 606684#606684: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http uri: "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http args: "" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http exten: "" +2025/08/20 07:18:55 [debug] 606684#606684: *2 posix_memalign: 00005FE570034DA0:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http process request header line +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Host: localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Accept: */*" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2ZDNjZDc1YmJlMTRkM2U5MzAwMjJlNGQ2YmI2MGY5YzAxY2U4OTMzMGFmZjA1ZjI4NjcyYjJlZTg3ZDkyZTBhIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODg3MzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NTRiOTIyODY2MDliZmVhNjBiZDVkMGE5OTk3ZjY4Njg5MWNhODhiZDk2ZmI2MGUwNzdiM2FmYWQyYjFkNmY5Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MjMzNSJdXSwiY29udGVudCI6IiIsInNpZyI6ImE4Mzk5MzVhYzVkMjllMzUyMzEwNDEwMTg0M2NlMzA3NGJkY2YyYzM5Y2RhOTc4ODViOWIwYjk5MmJkMTAyYjY2ODYzMWM5ZDc2OWMwNzZmYmVhMWQ3ODk4ZTQ2MmUyNWJkYjdhY2VkYTU0ZmY4ZDQyMmJkYzA3MTEwMTljZjAzIn0=" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Content-Type: text/plain" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755688735.txt"" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header: "Content-Length: 296" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http header done +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer del: 6: 255528672 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 rewrite phase: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: "/health" +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *2 using configuration "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http cl:296 max:104857600 +2025/08/20 07:18:55 [debug] 606684#606684: *2 rewrite phase: 3 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "PUT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script regex: "^(PUT)$" +2025/08/20 07:18:55 [notice] 606684#606684: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script if +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script if: false +2025/08/20 07:18:55 [debug] 606684#606684: *2 post rewrite phase: 4 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 5 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 6 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 7 +2025/08/20 07:18:55 [debug] 606684#606684: *2 access phase: 8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 access phase: 9 +2025/08/20 07:18:55 [debug] 606684#606684: *2 access phase: 10 +2025/08/20 07:18:55 [debug] 606684#606684: *2 post access phase: 11 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 12 +2025/08/20 07:18:55 [debug] 606684#606684: *2 generic phase: 13 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http client request body preread 184 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http request body content length filter +2025/08/20 07:18:55 [debug] 606684#606684: *2 http body new buf t:1 f:0 00005FE5700223E8, pos 00005FE5700223E8, size: 184 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http read client request body +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: eof:0, avail:112 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: fd:6 112 of 112 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: avail:0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http client request body recv 112 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http body new buf t:1 f:0 00005FE570035830, pos 00005FE570035830, size: 112 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http client request body rest 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http init upstream, client timer: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:18:55 [debug] 606684#606684: *2 posix_memalign: 00005FE570029150:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "QUERY_STRING" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REQUEST_METHOD" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "PUT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "CONTENT_TYPE" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "text/plain" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "296" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SCRIPT_NAME" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REQUEST_URI" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "DOCUMENT_URI" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "./blobs" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "HTTP/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "http" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "CGI/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "nginx/" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "1.18.0" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REMOTE_ADDR" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "127.0.0.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REMOTE_PORT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "53836" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REMOTE_PORT: 53836" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SERVER_ADDR" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "127.0.0.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SERVER_PORT" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SERVER_NAME" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "localhost" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "200" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script var: "./blobs" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2ZDNjZDc1YmJlMTRkM2U5MzAwMjJlNGQ2YmI2MGY5YzAxY2U4OTMzMGFmZjA1ZjI4NjcyYjJlZTg3ZDkyZTBhIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODg3MzUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NTRiOTIyODY2MDliZmVhNjBiZDVkMGE5OTk3ZjY4Njg5MWNhODhiZDk2ZmI2MGUwNzdiM2FmYWQyYjFkNmY5Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MjMzNSJdXSwiY29udGVudCI6IiIsInNpZyI6ImE4Mzk5MzVhYzVkMjllMzUyMzEwNDEwMTg0M2NlMzA3NGJkY2YyYzM5Y2RhOTc4ODViOWIwYjk5MmJkMTAyYjY2ODYzMWM5ZDc2OWMwNzZmYmVhMWQ3ODk4ZTQ2MmUyNWJkYjdhY2VkYTU0ZmY4ZDQyMmJkYzA3MTEwMTljZjAzIn0=" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755688735.txt"" +2025/08/20 07:18:55 [debug] 606684#606684: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http cleanup add: 00005FE570035B80 +2025/08/20 07:18:55 [debug] 606684#606684: *2 get rr peer, try: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 stream socket 10 +2025/08/20 07:18:55 [debug] 606684#606684: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:18:55 [debug] 606684#606684: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 07:18:55 [debug] 606684#606684: *2 connected +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream connect: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 posix_memalign: 00005FE570008F20:128 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream send request +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream send request body +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer buf fl:0 s:1304 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer buf fl:0 s:184 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer buf fl:0 s:8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer buf fl:0 s:112 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer buf fl:0 s:8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer in: 00005FE570035C10 +2025/08/20 07:18:55 [debug] 606684#606684: *2 writev: 1616 of 1616 +2025/08/20 07:18:55 [debug] 606684#606684: *2 chain writer out: 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer add: 10: 60000:255528672 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http request count:2 blk:0 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 0 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 60000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:0004 d:00007E70206981E1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http run request: "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream check client, write event:1, "/upload" +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:10 ev:0004 d:00007E70206982C8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream request: "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream dummy handler +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 3 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 59997 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:10 ev:0005 d:00007E70206982C8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream request: "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http upstream process header +2025/08/20 07:18:55 [debug] 606684#606684: *2 malloc: 00005FE57002A160:4096 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: eof:0, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: fd:10 4096 of 4096 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: avail:784 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: "═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_he" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: "ader called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2ZDNjZDc1YmJlMTRk... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"6d3cd75bbe14d3e930022e4d6bb60f9c01ce89330aff05f28672b2ee87d92e0a","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: "_at":1755688735,"tags":[["t","upload"],["x","854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9"],["expiration","1755692335"]],"content":"","sig":"a839935ac5d29e3523104101843ce3074bdcf2c39cda97885b9b0b992bd102b668631c9d769c076fbea1d7898e462e25bdb7aceda54ff8d422bdc0711019cf03"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "6d3cd75bbe14d3e930022e4d6bb60f9c01ce89330aff05f28672b2ee87d92e0a", + "pubkey": "79be667ef9dcbbac55a06295ce870b0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: "7029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755688735, + "tags": [["t", "upload"], ["x", "854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9"], ["expiration", "1755692335"]], + "content": "", + "sig": "a839935ac5d29e3523104101843ce3074bdcf2c39cda97885b9b0b992bd102b668631c9d769c076fbea1d7898e462e25bdb7aceda54ff8d422bdc0711019cf03" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 6d3cd75bbe14d3e930022e4d6bb60f9c01ce89330aff05f28672b2ee87d92e0a +ℹ️ INFO:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: " pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: a839935ac5d29e3523104101843ce3074bdcf2c39cda97885b9b0b992bd102b668631c9d769c076fbea1d7898e462e25bdb7aceda54ff8d422bdc0711019cf03 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755688735 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: F8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 504 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: " 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing stru" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 97 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 407 +2025/08/20 07:18:55 [error] 606684#606684: *2 FastCGI sent in stderr: "cture validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 07 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 06 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 05 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 47 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 01 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record byte: 00 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi record length: 1351 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "LOG: [2025-08-20 07:18:55] PUT /upload - Auth: pending - Status: 0" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http fastcgi parser: -2 +2025/08/20 07:18:55 [debug] 606684#606684: *2 upstream split a header line in FastCGI records +2025/08/20 07:18:55 [error] 606684#606684: *2 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http next upstream, 8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free rr peer 1 4 +2025/08/20 07:18:55 [debug] 606684#606684: *2 finalize http upstream request: 502 +2025/08/20 07:18:55 [debug] 606684#606684: *2 finalize http fastcgi request +2025/08/20 07:18:55 [debug] 606684#606684: *2 close http upstream connection: 10 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE570008F20, unused: 48 +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer del: 10: 255528672 +2025/08/20 07:18:55 [debug] 606684#606684: *2 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http finalize request: 502, "/upload?" a:1, c:1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http special response: 502, "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 HTTP/1.1 502 Bad Gateway +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:18:55 GMT +Content-Type: text/html +Content-Length: 166 +Connection: keep-alive + +2025/08/20 07:18:55 [debug] 606684#606684: *2 write new buf t:1 f:0 00005FE5700298C8, pos 00005FE5700298C8, size: 166 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http write filter: l:0 f:0 s:166 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http output filter "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http copy filter: "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http postpone filter "/upload?" 00005FE570035BF0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 write old buf t:1 f:0 00005FE5700298C8, pos 00005FE5700298C8, size: 166 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 write new buf t:0 f:0 0000000000000000, pos 00005FE55B961A40, size: 104 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 write new buf t:0 f:0 0000000000000000, pos 00005FE55B962C80, size: 62 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http write filter: l:1 f:0 s:332 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http write filter limit 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 writev: 332 of 332 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http write filter 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http copy filter: 0 "/upload?" +2025/08/20 07:18:55 [debug] 606684#606684: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 set http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *2 http close request +2025/08/20 07:18:55 [debug] 606684#606684: *2 http log handler +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE57002A160 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE57003EA30, unused: 3 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE570034DA0, unused: 8 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE570029150, unused: 1578 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 hc free: 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *2 hc busy: 0000000000000000 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 tcp_nodelay +2025/08/20 07:18:55 [debug] 606684#606684: *2 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer add: 6: 65000:255533675 +2025/08/20 07:18:55 [debug] 606684#606684: *2 post event 00005FE570070770 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 0 +2025/08/20 07:18:55 [debug] 606684#606684: posted event 00005FE570070770 +2025/08/20 07:18:55 [debug] 606684#606684: *2 delete posted event 00005FE570070770 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *2 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: eof:0, avail:0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 65000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:2005 d:00007E70206981E1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *2 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: eof:1, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *2 recv: fd:6 0 of 1024 +2025/08/20 07:18:55 [info] 606684#606684: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 07:18:55 [debug] 606684#606684: *2 close http connection: 6 +2025/08/20 07:18:55 [debug] 606684#606684: *2 event timer del: 6: 255533675 +2025/08/20 07:18:55 [debug] 606684#606684: *2 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *2 free: 00005FE57001F840, unused: 120 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 2 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: -1 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:5 ev:0001 d:00007E7020698010 +2025/08/20 07:18:55 [debug] 606684#606684: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:18:55 [debug] 606684#606684: posix_memalign: 00005FE57001F840:512 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *4 accept: 127.0.0.1:53848 fd:6 +2025/08/20 07:18:55 [debug] 606684#606684: *4 event timer add: 6: 60000:255528683 +2025/08/20 07:18:55 [debug] 606684#606684: *4 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 6 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 60000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:0001 d:00007E70206981E0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http wait request handler +2025/08/20 07:18:55 [debug] 606684#606684: *4 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *4 recv: eof:0, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 recv: fd:6 142 of 1024 +2025/08/20 07:18:55 [debug] 606684#606684: *4 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 posix_memalign: 00005FE57003EA30:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http process request line +2025/08/20 07:18:55 [debug] 606684#606684: *4 http request line: "GET /854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9 HTTP/1.1" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http uri: "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http args: "" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http exten: "" +2025/08/20 07:18:55 [debug] 606684#606684: *4 posix_memalign: 00005FE570034DA0:4096 @16 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http process request header line +2025/08/20 07:18:55 [debug] 606684#606684: *4 http header: "Host: localhost:9001" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http header: "Accept: */*" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http header done +2025/08/20 07:18:55 [debug] 606684#606684: *4 event timer del: 6: 255528683 +2025/08/20 07:18:55 [debug] 606684#606684: *4 generic phase: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 rewrite phase: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 test location: "/health" +2025/08/20 07:18:55 [debug] 606684#606684: *4 test location: "/debug/list" +2025/08/20 07:18:55 [debug] 606684#606684: *4 test location: "/" +2025/08/20 07:18:55 [debug] 606684#606684: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http cl:-1 max:104857600 +2025/08/20 07:18:55 [debug] 606684#606684: *4 rewrite phase: 3 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http script var +2025/08/20 07:18:55 [debug] 606684#606684: *4 http script var: "GET" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http script value: "DELETE" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http script not equal +2025/08/20 07:18:55 [debug] 606684#606684: *4 http script if +2025/08/20 07:18:55 [debug] 606684#606684: *4 http finalize request: 404, "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" a:1, c:1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http special response: 404, "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http set discard body +2025/08/20 07:18:55 [debug] 606684#606684: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:18:55 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 07:18:55 [debug] 606684#606684: *4 write new buf t:1 f:0 00005FE570035180, pos 00005FE570035180, size: 164 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http write filter: l:0 f:0 s:164 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http output filter "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http copy filter: "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http postpone filter "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" 00005FE570035310 +2025/08/20 07:18:55 [debug] 606684#606684: *4 write old buf t:1 f:0 00005FE570035180, pos 00005FE570035180, size: 164 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 write new buf t:0 f:0 0000000000000000, pos 00005FE55B962580, size: 100 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 write new buf t:0 f:0 0000000000000000, pos 00005FE55B962C80, size: 62 file: 0, size: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http write filter: l:1 f:0 s:326 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http write filter limit 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 writev: 326 of 326 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http write filter 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http copy filter: 0 "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" +2025/08/20 07:18:55 [debug] 606684#606684: *4 http finalize request: 0, "/854b92286609bfea60bd5d0a9997f686891ca88bd96fb60e077b3afad2b1d6f9?" a:1, c:1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 set http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *4 http close request +2025/08/20 07:18:55 [debug] 606684#606684: *4 http log handler +2025/08/20 07:18:55 [debug] 606684#606684: *4 free: 00005FE57003EA30, unused: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 free: 00005FE570034DA0, unused: 2456 +2025/08/20 07:18:55 [debug] 606684#606684: *4 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 hc free: 0000000000000000 +2025/08/20 07:18:55 [debug] 606684#606684: *4 hc busy: 0000000000000000 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 tcp_nodelay +2025/08/20 07:18:55 [debug] 606684#606684: *4 reusable connection: 1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 event timer add: 6: 65000:255533684 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 1 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: 65000 +2025/08/20 07:18:55 [debug] 606684#606684: epoll: fd:6 ev:2001 d:00007E70206981E0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 http keepalive handler +2025/08/20 07:18:55 [debug] 606684#606684: *4 malloc: 00005FE5700220A0:1024 +2025/08/20 07:18:55 [debug] 606684#606684: *4 recv: eof:1, avail:-1 +2025/08/20 07:18:55 [debug] 606684#606684: *4 recv: fd:6 0 of 1024 +2025/08/20 07:18:55 [info] 606684#606684: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 07:18:55 [debug] 606684#606684: *4 close http connection: 6 +2025/08/20 07:18:55 [debug] 606684#606684: *4 event timer del: 6: 255533684 +2025/08/20 07:18:55 [debug] 606684#606684: *4 reusable connection: 0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 free: 00005FE5700220A0 +2025/08/20 07:18:55 [debug] 606684#606684: *4 free: 00005FE57001F840, unused: 136 +2025/08/20 07:18:55 [debug] 606684#606684: timer delta: 0 +2025/08/20 07:18:55 [debug] 606684#606684: worker cycle +2025/08/20 07:18:55 [debug] 606684#606684: epoll timer: -1 +2025/08/20 07:19:52 [debug] 606684#606684: epoll: fd:5 ev:0001 d:00007E7020698010 +2025/08/20 07:19:52 [debug] 606684#606684: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:19:52 [debug] 606684#606684: posix_memalign: 00005FE57001F840:512 @16 +2025/08/20 07:19:52 [debug] 606684#606684: *5 accept: 127.0.0.1:55770 fd:6 +2025/08/20 07:19:52 [debug] 606684#606684: *5 event timer add: 6: 60000:255585480 +2025/08/20 07:19:52 [debug] 606684#606684: *5 reusable connection: 1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:19:52 [debug] 606684#606684: timer delta: 56796 +2025/08/20 07:19:52 [debug] 606684#606684: worker cycle +2025/08/20 07:19:52 [debug] 606684#606684: epoll timer: 60000 +2025/08/20 07:19:52 [debug] 606684#606684: epoll: fd:6 ev:0001 d:00007E70206981E1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http wait request handler +2025/08/20 07:19:52 [debug] 606684#606684: *5 malloc: 00005FE5700220A0:1024 +2025/08/20 07:19:52 [debug] 606684#606684: *5 recv: eof:0, avail:-1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 recv: fd:6 143 of 1024 +2025/08/20 07:19:52 [debug] 606684#606684: *5 reusable connection: 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 posix_memalign: 00005FE57003EA30:4096 @16 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http process request line +2025/08/20 07:19:52 [debug] 606684#606684: *5 http request line: "HEAD /9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 HTTP/1.1" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http uri: "/9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http args: "" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http exten: "" +2025/08/20 07:19:52 [debug] 606684#606684: *5 posix_memalign: 00005FE570034DA0:4096 @16 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http process request header line +2025/08/20 07:19:52 [debug] 606684#606684: *5 http header: "Host: localhost:9001" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http header: "Accept: */*" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http header done +2025/08/20 07:19:52 [debug] 606684#606684: *5 event timer del: 6: 255585480 +2025/08/20 07:19:52 [debug] 606684#606684: *5 generic phase: 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 rewrite phase: 1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 test location: "/health" +2025/08/20 07:19:52 [debug] 606684#606684: *5 test location: "/debug/list" +2025/08/20 07:19:52 [debug] 606684#606684: *5 test location: "/" +2025/08/20 07:19:52 [debug] 606684#606684: *5 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:19:52 [debug] 606684#606684: *5 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http cl:-1 max:104857600 +2025/08/20 07:19:52 [debug] 606684#606684: *5 rewrite phase: 3 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http script var +2025/08/20 07:19:52 [debug] 606684#606684: *5 http script var: "HEAD" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http script value: "DELETE" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http script not equal +2025/08/20 07:19:52 [debug] 606684#606684: *5 http script if +2025/08/20 07:19:52 [debug] 606684#606684: *5 http finalize request: 404, "/9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6?" a:1, c:1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http special response: 404, "/9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6?" +2025/08/20 07:19:52 [debug] 606684#606684: *5 http set discard body +2025/08/20 07:19:52 [debug] 606684#606684: *5 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:19:52 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 07:19:52 [debug] 606684#606684: *5 write new buf t:1 f:0 00005FE570035180, pos 00005FE570035180, size: 164 file: 0, size: 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http write filter: l:1 f:0 s:164 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http write filter limit 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 writev: 164 of 164 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http write filter 0000000000000000 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http finalize request: 0, "/9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6?" a:1, c:1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 set http keepalive handler +2025/08/20 07:19:52 [debug] 606684#606684: *5 http close request +2025/08/20 07:19:52 [debug] 606684#606684: *5 http log handler +2025/08/20 07:19:52 [debug] 606684#606684: *5 free: 00005FE57003EA30, unused: 80 +2025/08/20 07:19:52 [debug] 606684#606684: *5 free: 00005FE570034DA0, unused: 2738 +2025/08/20 07:19:52 [debug] 606684#606684: *5 free: 00005FE5700220A0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 hc free: 0000000000000000 +2025/08/20 07:19:52 [debug] 606684#606684: *5 hc busy: 0000000000000000 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 tcp_nodelay +2025/08/20 07:19:52 [debug] 606684#606684: *5 reusable connection: 1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 event timer add: 6: 65000:255590480 +2025/08/20 07:19:52 [debug] 606684#606684: timer delta: 0 +2025/08/20 07:19:52 [debug] 606684#606684: worker cycle +2025/08/20 07:19:52 [debug] 606684#606684: epoll timer: 65000 +2025/08/20 07:19:52 [debug] 606684#606684: epoll: fd:6 ev:2001 d:00007E70206981E1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 http keepalive handler +2025/08/20 07:19:52 [debug] 606684#606684: *5 malloc: 00005FE5700220A0:1024 +2025/08/20 07:19:52 [debug] 606684#606684: *5 recv: eof:1, avail:-1 +2025/08/20 07:19:52 [debug] 606684#606684: *5 recv: fd:6 0 of 1024 +2025/08/20 07:19:52 [info] 606684#606684: *5 client 127.0.0.1 closed keepalive connection +2025/08/20 07:19:52 [debug] 606684#606684: *5 close http connection: 6 +2025/08/20 07:19:52 [debug] 606684#606684: *5 event timer del: 6: 255590480 +2025/08/20 07:19:52 [debug] 606684#606684: *5 reusable connection: 0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 free: 00005FE5700220A0 +2025/08/20 07:19:52 [debug] 606684#606684: *5 free: 00005FE57001F840, unused: 136 +2025/08/20 07:19:52 [debug] 606684#606684: timer delta: 1 +2025/08/20 07:19:52 [debug] 606684#606684: worker cycle +2025/08/20 07:19:52 [debug] 606684#606684: epoll timer: -1 +2025/08/20 07:22:17 [notice] 606683#606683: signal 15 (SIGTERM) received from 607010, exiting +2025/08/20 07:22:17 [debug] 606683#606683: wake up, sigio 0 +2025/08/20 07:22:17 [debug] 606683#606683: child: 0 606684 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:22:17 [debug] 606683#606683: termination cycle: 50 +2025/08/20 07:22:17 [debug] 606683#606683: sigsuspend +2025/08/20 07:22:17 [debug] 606684#606684: epoll: fd:7 ev:0001 d:00007E70206980F8 +2025/08/20 07:22:17 [debug] 606684#606684: channel handler +2025/08/20 07:22:17 [debug] 606684#606684: channel: 32 +2025/08/20 07:22:17 [debug] 606684#606684: channel command: 4 +2025/08/20 07:22:17 [debug] 606684#606684: channel: -2 +2025/08/20 07:22:17 [debug] 606684#606684: timer delta: 145233 +2025/08/20 07:22:17 [notice] 606684#606684: exiting +2025/08/20 07:22:17 [debug] 606684#606684: flush files +2025/08/20 07:22:17 [debug] 606684#606684: run cleanup: 00005FE57006DA80 +2025/08/20 07:22:17 [debug] 606684#606684: run cleanup: 00005FE570060A18 +2025/08/20 07:22:17 [debug] 606684#606684: cleanup resolver +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57006EDE0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570061BE0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570040B50 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57003FA40 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570039A10 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570038950 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570037890 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE5700367D0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57002E170 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570025140, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57002F580, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57003AA20, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570041B60, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570045B70, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570049B80, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57004DB90, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570051BA0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570055BB0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570059BC0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57005DBD0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570062DB0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE570066DC0, unused: 0 +2025/08/20 07:22:17 [debug] 606684#606684: free: 00005FE57006ADD0, unused: 4920 +2025/08/20 07:22:17 [notice] 606684#606684: exit +2025/08/20 07:22:17 [notice] 606683#606683: signal 17 (SIGCHLD) received from 606684 +2025/08/20 07:22:17 [notice] 606683#606683: worker process 606684 exited with code 0 +2025/08/20 07:22:17 [debug] 606683#606683: shmtx forced unlock +2025/08/20 07:22:17 [debug] 606683#606683: wake up, sigio 3 +2025/08/20 07:22:17 [debug] 606683#606683: reap children +2025/08/20 07:22:17 [debug] 606683#606683: child: 0 606684 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:22:17 [notice] 606683#606683: exit +2025/08/20 07:22:17 [debug] 606683#606683: close listening 0.0.0.0:9001 #5 +2025/08/20 07:22:17 [debug] 606683#606683: run cleanup: 00005FE570060A18 +2025/08/20 07:22:17 [debug] 606683#606683: cleanup resolver +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57006EDE0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570061BE0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570040B50 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57003FA40 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570039A10 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570038950 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570037890 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE5700367D0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57002E170 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570025140, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57002F580, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57003AA20, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570041B60, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570045B70, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570049B80, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57004DB90, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570051BA0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570055BB0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570059BC0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57005DBD0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570062DB0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE570066DC0, unused: 0 +2025/08/20 07:22:17 [debug] 606683#606683: free: 00005FE57006ADD0, unused: 4951 +2025/08/20 07:22:20 [debug] 607046#607046: bind() 0.0.0.0:9001 #5 +2025/08/20 07:22:20 [debug] 607046#607046: counter: 00007957D89F7080, 1 +2025/08/20 07:22:20 [debug] 607047#607047: bind() 0.0.0.0:9001 #5 +2025/08/20 07:22:20 [notice] 607047#607047: using the "epoll" event method +2025/08/20 07:22:20 [debug] 607047#607047: counter: 00007946B6E9B080, 1 +2025/08/20 07:22:20 [notice] 607047#607047: nginx/1.18.0 (Ubuntu) +2025/08/20 07:22:20 [notice] 607047#607047: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:22:20 [notice] 607047#607047: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:22:20 [debug] 607048#607047: write: 6, 00007FFE5DE3F6D0, 7, 0 +2025/08/20 07:22:20 [debug] 607048#607048: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:22:20 [notice] 607048#607048: start worker processes +2025/08/20 07:22:20 [debug] 607048#607048: channel 6:7 +2025/08/20 07:22:20 [notice] 607048#607048: start worker process 607049 +2025/08/20 07:22:20 [debug] 607048#607048: sigsuspend +2025/08/20 07:22:20 [debug] 607049#607049: add cleanup: 00005D8319AD8A80 +2025/08/20 07:22:20 [debug] 607049#607049: malloc: 00005D8319A8BBD0:8 +2025/08/20 07:22:20 [debug] 607049#607049: notify eventfd: 9 +2025/08/20 07:22:20 [debug] 607049#607049: testing the EPOLLRDHUP flag: success +2025/08/20 07:22:20 [debug] 607049#607049: malloc: 00005D8319A9E590:6144 +2025/08/20 07:22:20 [debug] 607049#607049: malloc: 00007946B6C93010:237568 +2025/08/20 07:22:20 [debug] 607049#607049: malloc: 00005D8319ADB6B0:98304 +2025/08/20 07:22:20 [debug] 607049#607049: malloc: 00005D8319AF36C0:98304 +2025/08/20 07:22:20 [debug] 607049#607049: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:22:20 [debug] 607049#607049: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:22:20 [debug] 607049#607049: setproctitle: "nginx: worker process" +2025/08/20 07:22:20 [debug] 607049#607049: worker cycle +2025/08/20 07:22:20 [debug] 607049#607049: epoll timer: -1 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:5 ev:0001 d:00007946B6C93010 +2025/08/20 07:23:47 [debug] 607049#607049: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:23:47 [debug] 607049#607049: posix_memalign: 00005D8319A8A840:512 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 accept: 127.0.0.1:33128 fd:6 +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer add: 6: 60000:255820743 +2025/08/20 07:23:47 [debug] 607049#607049: *1 reusable connection: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 86799 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: 60000 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:6 ev:0001 d:00007946B6C931E0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http wait request handler +2025/08/20 07:23:47 [debug] 607049#607049: *1 malloc: 00005D8319A8D0A0:1024 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: eof:0, avail:-1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: fd:6 782 of 1024 +2025/08/20 07:23:47 [debug] 607049#607049: *1 reusable connection: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 posix_memalign: 00005D8319AA9A30:4096 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http process request line +2025/08/20 07:23:47 [debug] 607049#607049: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http uri: "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http args: "" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http exten: "" +2025/08/20 07:23:47 [debug] 607049#607049: *1 posix_memalign: 00005D8319A9FDA0:4096 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http process request header line +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "Host: localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "Accept: */*" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "Content-Type: text/plain" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header: "Content-Length: 13" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http header done +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer del: 6: 255820743 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 rewrite phase: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: "/health" +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:23:47 [debug] 607049#607049: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:23:47 [debug] 607049#607049: *1 using configuration "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http cl:13 max:104857600 +2025/08/20 07:23:47 [debug] 607049#607049: *1 rewrite phase: 3 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "PUT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script regex: "^(PUT)$" +2025/08/20 07:23:47 [notice] 607049#607049: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script if +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script if: false +2025/08/20 07:23:47 [debug] 607049#607049: *1 post rewrite phase: 4 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 5 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 6 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 7 +2025/08/20 07:23:47 [debug] 607049#607049: *1 access phase: 8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 access phase: 9 +2025/08/20 07:23:47 [debug] 607049#607049: *1 access phase: 10 +2025/08/20 07:23:47 [debug] 607049#607049: *1 post access phase: 11 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 12 +2025/08/20 07:23:47 [debug] 607049#607049: *1 generic phase: 13 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http client request body preread 13 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http request body content length filter +2025/08/20 07:23:47 [debug] 607049#607049: *1 http body new buf t:1 f:0 00005D8319A8D3A1, pos 00005D8319A8D3A1, size: 13 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http init upstream, client timer: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "QUERY_STRING" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REQUEST_METHOD" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "PUT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "CONTENT_TYPE" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "text/plain" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "13" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "CONTENT_LENGTH: 13" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SCRIPT_NAME" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REQUEST_URI" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "DOCUMENT_URI" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "./blobs" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "HTTP/1.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "http" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "CGI/1.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "nginx/" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "1.18.0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REMOTE_ADDR" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "127.0.0.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REMOTE_PORT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "33128" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REMOTE_PORT: 33128" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SERVER_ADDR" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "127.0.0.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SERVER_PORT" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SERVER_NAME" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "localhost" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "200" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script var: "./blobs" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 07:23:47 [debug] 607049#607049: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 13" +2025/08/20 07:23:47 [debug] 607049#607049: *1 posix_memalign: 00005D8319A94150:4096 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http cleanup add: 00005D8319AA0D88 +2025/08/20 07:23:47 [debug] 607049#607049: *1 get rr peer, try: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 stream socket 10 +2025/08/20 07:23:47 [debug] 607049#607049: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:23:47 [debug] 607049#607049: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 07:23:47 [debug] 607049#607049: *1 connected +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream connect: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 posix_memalign: 00005D8319A73F20:128 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream send request +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream send request body +2025/08/20 07:23:47 [debug] 607049#607049: *1 chain writer buf fl:0 s:1224 +2025/08/20 07:23:47 [debug] 607049#607049: *1 chain writer buf fl:0 s:13 +2025/08/20 07:23:47 [debug] 607049#607049: *1 chain writer buf fl:0 s:11 +2025/08/20 07:23:47 [debug] 607049#607049: *1 chain writer in: 00005D8319A94288 +2025/08/20 07:23:47 [debug] 607049#607049: *1 writev: 1248 of 1248 +2025/08/20 07:23:47 [debug] 607049#607049: *1 chain writer out: 0000000000000000 +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer add: 10: 60000:255820743 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http request count:2 blk:0 +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 0 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: 60000 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:6 ev:0004 d:00007946B6C931E0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http run request: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream check client, write event:1, "/upload" +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:10 ev:0004 d:00007946B6C932C8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream request: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream dummy handler +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 1 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: 59999 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:10 ev:0005 d:00007946B6C932C8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream request: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream process header +2025/08/20 07:23:47 [debug] 607049#607049: *1 malloc: 00005D8319A95160:4096 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: eof:0, avail:-1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: fd:10 3072 of 4096 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: "═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: a1fff0ffefb9eace7230c24e50731f0a91c62f9cefdfe77121c2f607125dffae +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_he" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: "ader called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: "_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: "7029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +ℹ️ INFO:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: " pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755685428 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: F8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 504 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: " 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing stru" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: eof:0, avail:0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream request: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream dummy handler +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 0 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: 59999 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:10 ev:2005 d:00007946B6C932C8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream request: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream process header +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: eof:1, avail:-1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: fd:10 1808 of 4096 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 97 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 407 +2025/08/20 07:23:47 [error] 607049#607049: *1 FastCGI sent in stderr: "cture validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 07 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 06 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 05 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 46 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 02 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 1350 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "LOG: [2025-08-20 07:23:47] PUT /upload - Auth: pending - Status: 0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: content_length=13" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "LOG: [2025-08-20 07:23:47] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: a1fff0ffefb9eace7230c24e50731f0a91c62f9cefdfe77121c2f607125dffae" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi parser: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi header done +2025/08/20 07:23:47 [debug] 607049#607049: *1 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:23:47 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 07:23:47] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=13 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0= +LOG: [2025-08-20 07:23:47] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: a1fff0ffefb9eace7230c24e50731f0a91c62f9cefdfe77121c2f607125dffae + +2025/08/20 07:23:47 [debug] 607049#607049: *1 write new buf t:1 f:0 00005D8319A94B40, pos 00005D8319A94B40, size: 1258 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter: l:0 f:0 s:1258 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http cacheable: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream process upstream +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe read upstream: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe preread: 239 +2025/08/20 07:23:47 [debug] 607049#607049: *1 readv: eof:1, avail:0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 readv: 1, last:2288 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe recv chain: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe buf free s:0 t:1 f:0 00005D8319A95160, pos 00005D8319A95781, size: 239 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe length: -1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 posix_memalign: 00005D8319A96170:4096 @16 +2025/08/20 07:23:47 [debug] 607049#607049: *1 input buf #0 00005D8319A95781 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 06 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi closed stdout +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 03 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 01 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 08 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record byte: 00 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi record length: 8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http fastcgi sent end request +2025/08/20 07:23:47 [debug] 607049#607049: *1 input buf 00005D8319A95781 213 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe write downstream: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe write downstream flush in +2025/08/20 07:23:47 [debug] 607049#607049: *1 http output filter "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http copy filter: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http postpone filter "/upload?" 00005D8319A94258 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http chunk: 213 +2025/08/20 07:23:47 [debug] 607049#607049: *1 write old buf t:1 f:0 00005D8319A94B40, pos 00005D8319A94B40, size: 1258 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 write new buf t:1 f:0 00005D8319A962B8, pos 00005D8319A962B8, size: 4 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 write new buf t:1 f:0 00005D8319A95160, pos 00005D8319A95781, size: 213 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 write new buf t:0 f:0 0000000000000000, pos 00005D82F23CE2E8, size: 2 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter: l:0 f:0 s:1477 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter limit 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 writev: 1477 of 1477 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter 0000000000000000 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http copy filter: 0 "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 pipe write downstream done +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer: 10, old: 255820743, new: 255820744 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream exit: 0000000000000000 +2025/08/20 07:23:47 [debug] 607049#607049: *1 finalize http upstream request: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 finalize http fastcgi request +2025/08/20 07:23:47 [debug] 607049#607049: *1 free rr peer 1 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 close http upstream connection: 10 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A73F20, unused: 48 +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer del: 10: 255820743 +2025/08/20 07:23:47 [debug] 607049#607049: *1 reusable connection: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http upstream temp fd: -1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http output filter "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http copy filter: "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http postpone filter "/upload?" 00007FFE5DE3F310 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http chunk: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 write new buf t:0 f:0 0000000000000000, pos 00005D82F23CE2E5, size: 5 file: 0, size: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter: l:1 f:0 s:5 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter limit 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 writev: 5 of 5 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http write filter 0000000000000000 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http copy filter: 0 "/upload?" +2025/08/20 07:23:47 [debug] 607049#607049: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 set http keepalive handler +2025/08/20 07:23:47 [debug] 607049#607049: *1 http close request +2025/08/20 07:23:47 [debug] 607049#607049: *1 http log handler +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A95160 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319AA9A30, unused: 3 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A9FDA0, unused: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A94150, unused: 8 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A96170, unused: 3410 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A8D0A0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 hc free: 0000000000000000 +2025/08/20 07:23:47 [debug] 607049#607049: *1 hc busy: 0000000000000000 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 tcp_nodelay +2025/08/20 07:23:47 [debug] 607049#607049: *1 reusable connection: 1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer add: 6: 65000:255825744 +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 0 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: 65000 +2025/08/20 07:23:47 [debug] 607049#607049: epoll: fd:6 ev:2005 d:00007946B6C931E0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 http keepalive handler +2025/08/20 07:23:47 [debug] 607049#607049: *1 malloc: 00005D8319A8D0A0:1024 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: eof:1, avail:-1 +2025/08/20 07:23:47 [debug] 607049#607049: *1 recv: fd:6 0 of 1024 +2025/08/20 07:23:47 [info] 607049#607049: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 07:23:47 [debug] 607049#607049: *1 close http connection: 6 +2025/08/20 07:23:47 [debug] 607049#607049: *1 event timer del: 6: 255825744 +2025/08/20 07:23:47 [debug] 607049#607049: *1 reusable connection: 0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A8D0A0 +2025/08/20 07:23:47 [debug] 607049#607049: *1 free: 00005D8319A8A840, unused: 120 +2025/08/20 07:23:47 [debug] 607049#607049: timer delta: 1 +2025/08/20 07:23:47 [debug] 607049#607049: worker cycle +2025/08/20 07:23:47 [debug] 607049#607049: epoll timer: -1 +2025/08/20 07:26:58 [notice] 607048#607048: signal 15 (SIGTERM) received from 607812, exiting +2025/08/20 07:26:58 [debug] 607048#607048: wake up, sigio 0 +2025/08/20 07:26:58 [debug] 607048#607048: child: 0 607049 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:26:58 [debug] 607048#607048: termination cycle: 50 +2025/08/20 07:26:58 [debug] 607048#607048: sigsuspend +2025/08/20 07:26:58 [debug] 607049#607049: epoll: fd:7 ev:0001 d:00007946B6C930F8 +2025/08/20 07:26:58 [debug] 607049#607049: channel handler +2025/08/20 07:26:58 [debug] 607049#607049: channel: 32 +2025/08/20 07:26:58 [debug] 607049#607049: channel command: 4 +2025/08/20 07:26:58 [debug] 607049#607049: channel: -2 +2025/08/20 07:26:58 [debug] 607049#607049: timer delta: 191127 +2025/08/20 07:26:58 [notice] 607049#607049: exiting +2025/08/20 07:26:58 [debug] 607049#607049: flush files +2025/08/20 07:26:58 [debug] 607049#607049: run cleanup: 00005D8319AD8A80 +2025/08/20 07:26:58 [debug] 607049#607049: run cleanup: 00005D8319ACBA18 +2025/08/20 07:26:58 [debug] 607049#607049: cleanup resolver +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AD9DE0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319ACCBE0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AABB50 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AAAA40 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AA4A10 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AA3950 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AA2890 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AA17D0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319A99170 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319A90140, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319A9A580, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AA5A20, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AACB60, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AB0B70, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AB4B80, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AB8B90, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319ABCBA0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AC0BB0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AC4BC0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AC8BD0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319ACDDB0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AD1DC0, unused: 0 +2025/08/20 07:26:58 [debug] 607049#607049: free: 00005D8319AD5DD0, unused: 4920 +2025/08/20 07:26:58 [notice] 607049#607049: exit +2025/08/20 07:26:58 [notice] 607048#607048: signal 17 (SIGCHLD) received from 607049 +2025/08/20 07:26:58 [notice] 607048#607048: worker process 607049 exited with code 0 +2025/08/20 07:26:58 [debug] 607048#607048: shmtx forced unlock +2025/08/20 07:26:58 [debug] 607048#607048: wake up, sigio 3 +2025/08/20 07:26:58 [debug] 607048#607048: reap children +2025/08/20 07:26:58 [debug] 607048#607048: child: 0 607049 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:26:58 [notice] 607048#607048: exit +2025/08/20 07:26:58 [debug] 607048#607048: close listening 0.0.0.0:9001 #5 +2025/08/20 07:26:58 [debug] 607048#607048: run cleanup: 00005D8319ACBA18 +2025/08/20 07:26:58 [debug] 607048#607048: cleanup resolver +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AD9DE0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319ACCBE0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AABB50 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AAAA40 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AA4A10 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AA3950 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AA2890 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AA17D0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319A99170 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319A90140, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319A9A580, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AA5A20, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AACB60, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AB0B70, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AB4B80, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AB8B90, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319ABCBA0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AC0BB0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AC4BC0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AC8BD0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319ACDDB0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AD1DC0, unused: 0 +2025/08/20 07:26:58 [debug] 607048#607048: free: 00005D8319AD5DD0, unused: 4951 +2025/08/20 07:27:00 [debug] 607846#607846: bind() 0.0.0.0:9001 #5 +2025/08/20 07:27:00 [debug] 607846#607846: counter: 000074248A063080, 1 +2025/08/20 07:27:00 [debug] 607847#607847: bind() 0.0.0.0:9001 #5 +2025/08/20 07:27:00 [notice] 607847#607847: using the "epoll" event method +2025/08/20 07:27:00 [debug] 607847#607847: counter: 0000736F3764B080, 1 +2025/08/20 07:27:00 [notice] 607847#607847: nginx/1.18.0 (Ubuntu) +2025/08/20 07:27:00 [notice] 607847#607847: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:27:00 [notice] 607847#607847: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:27:00 [debug] 607848#607847: write: 6, 00007FFEEE189A80, 7, 0 +2025/08/20 07:27:00 [debug] 607848#607848: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:27:00 [notice] 607848#607848: start worker processes +2025/08/20 07:27:00 [debug] 607848#607848: channel 6:7 +2025/08/20 07:27:00 [notice] 607848#607848: start worker process 607849 +2025/08/20 07:27:00 [debug] 607848#607848: sigsuspend +2025/08/20 07:27:00 [debug] 607849#607849: add cleanup: 00006236391F4A80 +2025/08/20 07:27:00 [debug] 607849#607849: malloc: 00006236391A7BD0:8 +2025/08/20 07:27:00 [debug] 607849#607849: notify eventfd: 9 +2025/08/20 07:27:00 [debug] 607849#607849: testing the EPOLLRDHUP flag: success +2025/08/20 07:27:00 [debug] 607849#607849: malloc: 00006236391BA590:6144 +2025/08/20 07:27:00 [debug] 607849#607849: malloc: 0000736F36FC5010:237568 +2025/08/20 07:27:00 [debug] 607849#607849: malloc: 00006236391F76B0:98304 +2025/08/20 07:27:00 [debug] 607849#607849: malloc: 000062363920F6C0:98304 +2025/08/20 07:27:00 [debug] 607849#607849: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:27:00 [debug] 607849#607849: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:27:00 [debug] 607849#607849: setproctitle: "nginx: worker process" +2025/08/20 07:27:00 [debug] 607849#607849: worker cycle +2025/08/20 07:27:00 [debug] 607849#607849: epoll timer: -1 +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:5 ev:0001 d:0000736F36FC5010 +2025/08/20 07:27:24 [debug] 607849#607849: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:27:24 [debug] 607849#607849: posix_memalign: 00006236391A6840:512 @16 +2025/08/20 07:27:24 [debug] 607849#607849: *1 accept: 127.0.0.1:38178 fd:6 +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer add: 6: 60000:256037276 +2025/08/20 07:27:24 [debug] 607849#607849: *1 reusable connection: 1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:27:24 [debug] 607849#607849: timer delta: 23180 +2025/08/20 07:27:24 [debug] 607849#607849: worker cycle +2025/08/20 07:27:24 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:6 ev:0001 d:0000736F36FC51E0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http wait request handler +2025/08/20 07:27:24 [debug] 607849#607849: *1 malloc: 00006236391A90A0:1024 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: eof:0, avail:-1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: fd:6 782 of 1024 +2025/08/20 07:27:24 [debug] 607849#607849: *1 reusable connection: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 posix_memalign: 00006236391C5A30:4096 @16 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http process request line +2025/08/20 07:27:24 [debug] 607849#607849: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http uri: "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http args: "" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http exten: "" +2025/08/20 07:27:24 [debug] 607849#607849: *1 posix_memalign: 00006236391BBDA0:4096 @16 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http process request header line +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "Host: localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "Accept: */*" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "Content-Type: text/plain" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header: "Content-Length: 13" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http header done +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer del: 6: 256037276 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 rewrite phase: 1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: "/health" +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:27:24 [debug] 607849#607849: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:27:24 [debug] 607849#607849: *1 using configuration "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http cl:13 max:104857600 +2025/08/20 07:27:24 [debug] 607849#607849: *1 rewrite phase: 3 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "PUT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script regex: "^(PUT)$" +2025/08/20 07:27:24 [notice] 607849#607849: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script if +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script if: false +2025/08/20 07:27:24 [debug] 607849#607849: *1 post rewrite phase: 4 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 5 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 6 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 7 +2025/08/20 07:27:24 [debug] 607849#607849: *1 access phase: 8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 access phase: 9 +2025/08/20 07:27:24 [debug] 607849#607849: *1 access phase: 10 +2025/08/20 07:27:24 [debug] 607849#607849: *1 post access phase: 11 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 12 +2025/08/20 07:27:24 [debug] 607849#607849: *1 generic phase: 13 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http client request body preread 13 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http request body content length filter +2025/08/20 07:27:24 [debug] 607849#607849: *1 http body new buf t:1 f:0 00006236391A93A1, pos 00006236391A93A1, size: 13 file: 0, size: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http init upstream, client timer: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "QUERY_STRING" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REQUEST_METHOD" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "PUT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "CONTENT_TYPE" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "text/plain" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "13" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "CONTENT_LENGTH: 13" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SCRIPT_NAME" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REQUEST_URI" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "DOCUMENT_URI" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "./blobs" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "HTTP/1.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "http" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "CGI/1.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "nginx/" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "1.18.0" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REMOTE_ADDR" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "127.0.0.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REMOTE_PORT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "38178" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REMOTE_PORT: 38178" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SERVER_ADDR" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "127.0.0.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SERVER_PORT" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SERVER_NAME" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "localhost" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "200" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script var: "./blobs" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0=" +2025/08/20 07:27:24 [debug] 607849#607849: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 13" +2025/08/20 07:27:24 [debug] 607849#607849: *1 posix_memalign: 00006236391B0150:4096 @16 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http cleanup add: 00006236391BCD88 +2025/08/20 07:27:24 [debug] 607849#607849: *1 get rr peer, try: 1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 stream socket 10 +2025/08/20 07:27:24 [debug] 607849#607849: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:27:24 [debug] 607849#607849: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 07:27:24 [debug] 607849#607849: *1 connected +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream connect: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 posix_memalign: 000062363918FF20:128 @16 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream send request +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream send request body +2025/08/20 07:27:24 [debug] 607849#607849: *1 chain writer buf fl:0 s:1224 +2025/08/20 07:27:24 [debug] 607849#607849: *1 chain writer buf fl:0 s:13 +2025/08/20 07:27:24 [debug] 607849#607849: *1 chain writer buf fl:0 s:11 +2025/08/20 07:27:24 [debug] 607849#607849: *1 chain writer in: 00006236391B0288 +2025/08/20 07:27:24 [debug] 607849#607849: *1 writev: 1248 of 1248 +2025/08/20 07:27:24 [debug] 607849#607849: *1 chain writer out: 0000000000000000 +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer add: 10: 60000:256037276 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http request count:2 blk:0 +2025/08/20 07:27:24 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:27:24 [debug] 607849#607849: worker cycle +2025/08/20 07:27:24 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:6 ev:0004 d:0000736F36FC51E0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http run request: "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream check client, write event:1, "/upload" +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:10 ev:0004 d:0000736F36FC52C8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream request: "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream dummy handler +2025/08/20 07:27:24 [debug] 607849#607849: timer delta: 3 +2025/08/20 07:27:24 [debug] 607849#607849: worker cycle +2025/08/20 07:27:24 [debug] 607849#607849: epoll timer: 59997 +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:10 ev:0005 d:0000736F36FC52C8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream request: "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http upstream process header +2025/08/20 07:27:24 [debug] 607849#607849: *1 malloc: 00006236391B1160:4096 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: eof:0, avail:-1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: fd:10 4096 of 4096 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: avail:784 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: "═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: a1fff0ffefb9eace7230c24e50731f0a91c62f9cefdfe77121c2f607125dffae +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_he" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: "ader called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: "_at":1755685428,"tags":[["t","upload"],["x","84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"],["expiration","1755689028"]],"content":"","sig":"95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6", + "pubkey": "79be667ef9dcbbac55a06295ce870b0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: "7029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755685428, + "tags": [["t", "upload"], ["x", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"], ["expiration", "1755689028"]], + "content": "", + "sig": "95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 9561605b1062ce37e95ab9b81d300d9ad5bfb9c544ae395e1eb41f000c7d89f6 +ℹ️ INFO:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: " pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 95316ab75f8d02bb995a1248c274b99f9bc5dc0af5649e6949015d069904d4bdf3a3c79427ac82456986a2e937b1d25b6d2ee8ee1e446a849cb19774df948ead +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755685428 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: F8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 504 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: " 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing stru" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 97 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 407 +2025/08/20 07:27:24 [error] 607849#607849: *1 FastCGI sent in stderr: "cture validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 07 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 06 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 01 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 05 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 46 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 02 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record byte: 00 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi record length: 1350 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "LOG: [2025-08-20 07:27:24] PUT /upload - Auth: pending - Status: 0" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi header: "DEBUG: content_length=13" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http fastcgi parser: -2 +2025/08/20 07:27:24 [debug] 607849#607849: *1 upstream split a header line in FastCGI records +2025/08/20 07:27:24 [error] 607849#607849: *1 upstream sent too big header while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http next upstream, 8 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free rr peer 1 4 +2025/08/20 07:27:24 [debug] 607849#607849: *1 finalize http upstream request: 502 +2025/08/20 07:27:24 [debug] 607849#607849: *1 finalize http fastcgi request +2025/08/20 07:27:24 [debug] 607849#607849: *1 close http upstream connection: 10 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 000062363918FF20, unused: 48 +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer del: 10: 256037276 +2025/08/20 07:27:24 [debug] 607849#607849: *1 reusable connection: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http finalize request: 502, "/upload?" a:1, c:1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http special response: 502, "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 HTTP/1.1 502 Bad Gateway +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:27:24 GMT +Content-Type: text/html +Content-Length: 166 +Connection: keep-alive + +2025/08/20 07:27:24 [debug] 607849#607849: *1 write new buf t:1 f:0 00006236391B0628, pos 00006236391B0628, size: 166 file: 0, size: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http write filter: l:0 f:0 s:166 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http output filter "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http copy filter: "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http postpone filter "/upload?" 00006236391B0268 +2025/08/20 07:27:24 [debug] 607849#607849: *1 write old buf t:1 f:0 00006236391B0628, pos 00006236391B0628, size: 166 file: 0, size: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 write new buf t:0 f:0 0000000000000000, pos 0000623639118A40, size: 104 file: 0, size: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 write new buf t:0 f:0 0000000000000000, pos 0000623639119C80, size: 62 file: 0, size: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http write filter: l:1 f:0 s:332 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http write filter limit 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 writev: 332 of 332 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http write filter 0000000000000000 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http copy filter: 0 "/upload?" +2025/08/20 07:27:24 [debug] 607849#607849: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 set http keepalive handler +2025/08/20 07:27:24 [debug] 607849#607849: *1 http close request +2025/08/20 07:27:24 [debug] 607849#607849: *1 http log handler +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391B1160 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391C5A30, unused: 3 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391BBDA0, unused: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391B0150, unused: 2250 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391A90A0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 hc free: 0000000000000000 +2025/08/20 07:27:24 [debug] 607849#607849: *1 hc busy: 0000000000000000 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 tcp_nodelay +2025/08/20 07:27:24 [debug] 607849#607849: *1 reusable connection: 1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer add: 6: 65000:256042279 +2025/08/20 07:27:24 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:27:24 [debug] 607849#607849: worker cycle +2025/08/20 07:27:24 [debug] 607849#607849: epoll timer: 65000 +2025/08/20 07:27:24 [debug] 607849#607849: epoll: fd:6 ev:2005 d:0000736F36FC51E0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 http keepalive handler +2025/08/20 07:27:24 [debug] 607849#607849: *1 malloc: 00006236391A90A0:1024 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: eof:1, avail:-1 +2025/08/20 07:27:24 [debug] 607849#607849: *1 recv: fd:6 0 of 1024 +2025/08/20 07:27:24 [info] 607849#607849: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 07:27:24 [debug] 607849#607849: *1 close http connection: 6 +2025/08/20 07:27:24 [debug] 607849#607849: *1 event timer del: 6: 256042279 +2025/08/20 07:27:24 [debug] 607849#607849: *1 reusable connection: 0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391A90A0 +2025/08/20 07:27:24 [debug] 607849#607849: *1 free: 00006236391A6840, unused: 120 +2025/08/20 07:27:24 [debug] 607849#607849: timer delta: 2 +2025/08/20 07:27:24 [debug] 607849#607849: worker cycle +2025/08/20 07:27:24 [debug] 607849#607849: epoll timer: -1 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:5 ev:0001 d:0000736F36FC5010 +2025/08/20 07:37:36 [debug] 607849#607849: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:37:36 [debug] 607849#607849: posix_memalign: 00006236391A6840:512 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 accept: 127.0.0.1:46770 fd:6 +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer add: 6: 60000:256649341 +2025/08/20 07:37:36 [debug] 607849#607849: *3 reusable connection: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 612060 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:6 ev:0001 d:0000736F36FC51E1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http wait request handler +2025/08/20 07:37:36 [debug] 607849#607849: *3 malloc: 00006236391A90A0:1024 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:0, avail:-1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: fd:6 1024 of 1024 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: avail:112 +2025/08/20 07:37:36 [debug] 607849#607849: *3 reusable connection: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 posix_memalign: 00006236391C5A30:4096 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http process request line +2025/08/20 07:37:36 [debug] 607849#607849: *3 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http uri: "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http args: "" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http exten: "" +2025/08/20 07:37:36 [debug] 607849#607849: *3 posix_memalign: 00006236391BBDA0:4096 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http process request header line +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Host: localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Accept: */*" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2MmQzMWI0YzJlZmFjOWE3ZDQxNzRkNDc4YjYyNmExNGEzOTY1Nzc0MjY4ZWY0MWM3YWNjZGY1NWYyM2ZhMDg5IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk4NTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI0NzJhYzlhMzM0N2Q4MTQyMDllODExNzJjOTI0Y2JlNjE3MDlmNGEzOTY2MzlmYjEzODNkZWFmMmU3NmJhMDA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzQ1NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjAxOTZjYzg1NjlkNWRjMTRjYzg4NzgwODY3YzMxMjc3NjA1MzMzNjAwZTJmNTA4ODlkYWM1Yzk0ZTcxNjcyYjFhZWFmYmM1Mzk0YTk3YWNmZjIzODgxZWI5NDQxOTQwMmI1MTk5MzRmNDRhZWFjNWFmYzc0ZjBhNzE5YzQxYTI3In0=" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Content-Type: text/plain" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Content-Disposition: attachment; filename="test_blob_1755689855.txt"" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header: "Content-Length: 296" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http header done +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer del: 6: 256649341 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 rewrite phase: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: "/health" +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:37:36 [debug] 607849#607849: *3 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:37:36 [debug] 607849#607849: *3 using configuration "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http cl:296 max:104857600 +2025/08/20 07:37:36 [debug] 607849#607849: *3 rewrite phase: 3 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "PUT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script regex: "^(PUT)$" +2025/08/20 07:37:36 [notice] 607849#607849: *3 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script if +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script if: false +2025/08/20 07:37:36 [debug] 607849#607849: *3 post rewrite phase: 4 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 5 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 6 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 7 +2025/08/20 07:37:36 [debug] 607849#607849: *3 access phase: 8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 access phase: 9 +2025/08/20 07:37:36 [debug] 607849#607849: *3 access phase: 10 +2025/08/20 07:37:36 [debug] 607849#607849: *3 post access phase: 11 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 12 +2025/08/20 07:37:36 [debug] 607849#607849: *3 generic phase: 13 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http client request body preread 184 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http request body content length filter +2025/08/20 07:37:36 [debug] 607849#607849: *3 http body new buf t:1 f:0 00006236391A93E8, pos 00006236391A93E8, size: 184 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http read client request body +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:0, avail:112 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: fd:6 112 of 112 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: avail:0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http client request body recv 112 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http body new buf t:1 f:0 00006236391BC830, pos 00006236391BC830, size: 112 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http client request body rest 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http init upstream, client timer: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:37:36 [debug] 607849#607849: *3 posix_memalign: 00006236391B0150:4096 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "QUERY_STRING" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "QUERY_STRING: " +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REQUEST_METHOD" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "PUT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "CONTENT_TYPE" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "text/plain" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "CONTENT_LENGTH" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "296" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SCRIPT_NAME" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REQUEST_URI" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "DOCUMENT_URI" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "./blobs" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "HTTP/1.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REQUEST_SCHEME" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "http" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "CGI/1.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "nginx/" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "1.18.0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REMOTE_ADDR" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "127.0.0.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REMOTE_PORT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "46770" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REMOTE_PORT: 46770" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SERVER_ADDR" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "127.0.0.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SERVER_PORT" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SERVER_NAME" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "localhost" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "REDIRECT_STATUS" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "200" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script var: "./blobs" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http script copy: "/ginxsom.fcgi" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2MmQzMWI0YzJlZmFjOWE3ZDQxNzRkNDc4YjYyNmExNGEzOTY1Nzc0MjY4ZWY0MWM3YWNjZGY1NWYyM2ZhMDg5IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk4NTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI0NzJhYzlhMzM0N2Q4MTQyMDllODExNzJjOTI0Y2JlNjE3MDlmNGEzOTY2MzlmYjEzODNkZWFmMmU3NmJhMDA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzQ1NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjAxOTZjYzg1NjlkNWRjMTRjYzg4NzgwODY3YzMxMjc3NjA1MzMzNjAwZTJmNTA4ODlkYWM1Yzk0ZTcxNjcyYjFhZWFmYmM1Mzk0YTk3YWNmZjIzODgxZWI5NDQxOTQwMmI1MTk5MzRmNDRhZWFjNWFmYzc0ZjBhNzE5YzQxYTI3In0=" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755689855.txt"" +2025/08/20 07:37:36 [debug] 607849#607849: *3 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http cleanup add: 00006236391BCB80 +2025/08/20 07:37:36 [debug] 607849#607849: *3 get rr peer, try: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 stream socket 10 +2025/08/20 07:37:36 [debug] 607849#607849: *3 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:37:36 [debug] 607849#607849: *3 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #4 +2025/08/20 07:37:36 [debug] 607849#607849: *3 connected +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream connect: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 posix_memalign: 000062363918FF20:128 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream send request +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream send request body +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer buf fl:0 s:1304 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer buf fl:0 s:184 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer buf fl:0 s:8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer buf fl:0 s:112 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer buf fl:0 s:8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer in: 00006236391BCC10 +2025/08/20 07:37:36 [debug] 607849#607849: *3 writev: 1616 of 1616 +2025/08/20 07:37:36 [debug] 607849#607849: *3 chain writer out: 0000000000000000 +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer add: 10: 60000:256649341 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http request count:2 blk:0 +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:6 ev:0004 d:0000736F36FC51E1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http run request: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream check client, write event:1, "/upload" +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:10 ev:0004 d:0000736F36FC52C9 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream request: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream dummy handler +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 2 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: 59998 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:10 ev:0005 d:0000736F36FC52C9 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream request: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream process header +2025/08/20 07:37:36 [debug] 607849#607849: *3 malloc: 00006236391B1160:4096 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:0, avail:-1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: fd:10 3072 of 4096 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: "═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 472ac9a3347d814209e81172c924cbe61709f4a396639fb1383deaf2e76ba008 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_he" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: "ader called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2MmQzMWI0YzJlZmFj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"62d31b4c2efac9a7d4174d478b626a14a3965774268ef41c7accdf55f23fa089","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: "_at":1755689856,"tags":[["t","upload"],["x","472ac9a3347d814209e81172c924cbe61709f4a396639fb1383deaf2e76ba008"],["expiration","1755693455"]],"content":"","sig":"0196cc8569d5dc14cc88780867c31277605333600e2f50889dac5c94e71672b1aeafbc5394a97acff23881eb94419402b519934f44aeac5afc74f0a719c41a27"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "62d31b4c2efac9a7d4174d478b626a14a3965774268ef41c7accdf55f23fa089", + "pubkey": "79be667ef9dcbbac55a06295ce870b0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: "7029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755689856, + "tags": [["t", "upload"], ["x", "472ac9a3347d814209e81172c924cbe61709f4a396639fb1383deaf2e76ba008"], ["expiration", "1755693455"]], + "content": "", + "sig": "0196cc8569d5dc14cc88780867c31277605333600e2f50889dac5c94e71672b1aeafbc5394a97acff23881eb94419402b519934f44aeac5afc74f0a719c41a27" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 62d31b4c2efac9a7d4174d478b626a14a3965774268ef41c7accdf55f23fa089 +ℹ️ INFO:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: " pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 0196cc8569d5dc14cc88780867c31277605333600e2f50889dac5c94e71672b1aeafbc5394a97acff23881eb94419402b519934f44aeac5afc74f0a719c41a27 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755689856 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: F8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 504 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: " 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing stru" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:0, avail:0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream request: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream dummy handler +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: 59998 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:10 ev:2005 d:0000736F36FC52C9 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream request: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream process header +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:1, avail:-1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: fd:10 1808 of 4096 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 97 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 407 +2025/08/20 07:37:36 [error] 607849#607849: *3 FastCGI sent in stderr: "cture validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 07 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 06 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 05 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 47 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 1351 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "LOG: [2025-08-20 07:37:36] PUT /upload - Auth: pending - Status: 0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2MmQzMWI0YzJlZmFjOWE3ZDQxNzRkNDc4YjYyNmExNGEzOTY1Nzc0MjY4ZWY0MWM3YWNjZGY1NWYyM2ZhMDg5IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk4NTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI0NzJhYzlhMzM0N2Q4MTQyMDllODExNzJjOTI0Y2JlNjE3MDlmNGEzOTY2MzlmYjEzODNkZWFmMmU3NmJhMDA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzQ1NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjAxOTZjYzg1NjlkNWRjMTRjYzg4NzgwODY3YzMxMjc3NjA1MzMzNjAwZTJmNTA4ODlkYWM1Yzk0ZTcxNjcyYjFhZWFmYmM1Mzk0YTk3YWNmZjIzODgxZWI5NDQxOTQwMmI1MTk5MzRmNDRhZWFjNWFmYzc0ZjBhNzE5YzQxYTI3In0=" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "LOG: [2025-08-20 07:37:36] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 472ac9a3347d814209e81172c924cbe61709f4a396639fb1383deaf2e76ba008" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header: "Content-Type: application/json" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi parser: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi header done +2025/08/20 07:37:36 [debug] 607849#607849: *3 posix_memalign: 00006236391B2170:4096 @16 +2025/08/20 07:37:36 [debug] 607849#607849: *3 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:37:36 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 07:37:36] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI2MmQzMWI0YzJlZmFjOWE3ZDQxNzRkNDc4YjYyNmExNGEzOTY1Nzc0MjY4ZWY0MWM3YWNjZGY1NWYyM2ZhMDg5IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk4NTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI0NzJhYzlhMzM0N2Q4MTQyMDllODExNzJjOTI0Y2JlNjE3MDlmNGEzOTY2MzlmYjEzODNkZWFmMmU3NmJhMDA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzQ1NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjAxOTZjYzg1NjlkNWRjMTRjYzg4NzgwODY3YzMxMjc3NjA1MzMzNjAwZTJmNTA4ODlkYWM1Yzk0ZTcxNjcyYjFhZWFmYmM1Mzk0YTk3YWNmZjIzODgxZWI5NDQxOTQwMmI1MTk5MzRmNDRhZWFjNWFmYzc0ZjBhNzE5YzQxYTI3In0= +LOG: [2025-08-20 07:37:36] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 472ac9a3347d814209e81172c924cbe61709f4a396639fb1383deaf2e76ba008 + +2025/08/20 07:37:36 [debug] 607849#607849: *3 write new buf t:1 f:0 00006236391B2190, pos 00006236391B2190, size: 1259 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter: l:0 f:0 s:1259 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http cacheable: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream process upstream +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe read upstream: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe preread: 238 +2025/08/20 07:37:36 [debug] 607849#607849: *3 readv: eof:1, avail:0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 readv: 1, last:2288 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe recv chain: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe buf free s:0 t:1 f:0 00006236391B1160, pos 00006236391B1782, size: 238 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe length: -1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 input buf #0 00006236391B1782 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 06 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi closed stdout +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 03 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 01 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 08 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record byte: 00 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi record length: 8 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http fastcgi sent end request +2025/08/20 07:37:36 [debug] 607849#607849: *3 input buf 00006236391B1782 213 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe write downstream: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe write downstream flush in +2025/08/20 07:37:36 [debug] 607849#607849: *3 http output filter "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http copy filter: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http postpone filter "/upload?" 00006236391BCBE0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http chunk: 213 +2025/08/20 07:37:36 [debug] 607849#607849: *3 write old buf t:1 f:0 00006236391B2190, pos 00006236391B2190, size: 1259 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 write new buf t:1 f:0 00006236391B1010, pos 00006236391B1010, size: 4 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 write new buf t:1 f:0 00006236391B1160, pos 00006236391B1782, size: 213 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 write new buf t:0 f:0 0000000000000000, pos 00006236390DA2E8, size: 2 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter: l:0 f:0 s:1478 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter limit 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 writev: 1478 of 1478 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter 0000000000000000 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http copy filter: 0 "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 pipe write downstream done +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer: 10, old: 256649341, new: 256649344 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream exit: 0000000000000000 +2025/08/20 07:37:36 [debug] 607849#607849: *3 finalize http upstream request: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 finalize http fastcgi request +2025/08/20 07:37:36 [debug] 607849#607849: *3 free rr peer 1 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 close http upstream connection: 10 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 000062363918FF20, unused: 48 +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer del: 10: 256649341 +2025/08/20 07:37:36 [debug] 607849#607849: *3 reusable connection: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http upstream temp fd: -1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http output filter "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http copy filter: "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http postpone filter "/upload?" 00007FFEEE1896C0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http chunk: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 write new buf t:0 f:0 0000000000000000, pos 00006236390DA2E5, size: 5 file: 0, size: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter: l:1 f:0 s:5 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter limit 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 writev: 5 of 5 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http write filter 0000000000000000 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http copy filter: 0 "/upload?" +2025/08/20 07:37:36 [debug] 607849#607849: *3 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 set http keepalive handler +2025/08/20 07:37:36 [debug] 607849#607849: *3 http close request +2025/08/20 07:37:36 [debug] 607849#607849: *3 http log handler +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391B1160 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391C5A30, unused: 3 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391BBDA0, unused: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391B0150, unused: 10 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391B2170, unused: 2805 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391A90A0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 hc free: 0000000000000000 +2025/08/20 07:37:36 [debug] 607849#607849: *3 hc busy: 0000000000000000 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 tcp_nodelay +2025/08/20 07:37:36 [debug] 607849#607849: *3 reusable connection: 1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer add: 6: 65000:256654344 +2025/08/20 07:37:36 [debug] 607849#607849: *3 post event 00006236391F7770 +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 1 +2025/08/20 07:37:36 [debug] 607849#607849: posted event 00006236391F7770 +2025/08/20 07:37:36 [debug] 607849#607849: *3 delete posted event 00006236391F7770 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http keepalive handler +2025/08/20 07:37:36 [debug] 607849#607849: *3 malloc: 00006236391A90A0:1024 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:0, avail:0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391A90A0 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: 65000 +2025/08/20 07:37:36 [debug] 607849#607849: epoll: fd:6 ev:2005 d:0000736F36FC51E1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 http keepalive handler +2025/08/20 07:37:36 [debug] 607849#607849: *3 malloc: 00006236391A90A0:1024 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: eof:1, avail:-1 +2025/08/20 07:37:36 [debug] 607849#607849: *3 recv: fd:6 0 of 1024 +2025/08/20 07:37:36 [info] 607849#607849: *3 client 127.0.0.1 closed keepalive connection +2025/08/20 07:37:36 [debug] 607849#607849: *3 close http connection: 6 +2025/08/20 07:37:36 [debug] 607849#607849: *3 event timer del: 6: 256654344 +2025/08/20 07:37:36 [debug] 607849#607849: *3 reusable connection: 0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391A90A0 +2025/08/20 07:37:36 [debug] 607849#607849: *3 free: 00006236391A6840, unused: 120 +2025/08/20 07:37:36 [debug] 607849#607849: timer delta: 2 +2025/08/20 07:37:36 [debug] 607849#607849: worker cycle +2025/08/20 07:37:36 [debug] 607849#607849: epoll timer: -1 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:5 ev:0001 d:0000736F36FC5010 +2025/08/20 07:38:36 [debug] 607849#607849: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:38:36 [debug] 607849#607849: posix_memalign: 00006236391A6840:512 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 accept: 127.0.0.1:50596 fd:6 +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer add: 6: 60000:256709221 +2025/08/20 07:38:36 [debug] 607849#607849: *5 reusable connection: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 59875 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:6 ev:0001 d:0000736F36FC51E0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http wait request handler +2025/08/20 07:38:36 [debug] 607849#607849: *5 malloc: 00006236391A90A0:1024 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:0, avail:-1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: fd:6 1024 of 1024 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: avail:112 +2025/08/20 07:38:36 [debug] 607849#607849: *5 reusable connection: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 posix_memalign: 00006236391C5A30:4096 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http process request line +2025/08/20 07:38:36 [debug] 607849#607849: *5 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http uri: "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http args: "" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http exten: "" +2025/08/20 07:38:36 [debug] 607849#607849: *5 posix_memalign: 00006236391BBDA0:4096 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http process request header line +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Host: localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Accept: */*" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxMjgyZjk5YmVhYTMzMzQyNWIxY2QwODg1ZDA1YmQ5YjczMzc0MWNkNGRhMDRiYWVlMTAwY2VhMjY2YjEwNjkyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk5MTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1NjA2YTBiYjdmMGUzNDZlMzc2NWY2ODFmOGZmMjQ0OTkwMTViZTkwMzliMDQwNDMyZGEzNzdiYmUyMTZiYjZiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzUxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjI5ZTExOTMyYTQ5ZmI3YzMyZjUxYjBmZTZiMGVjYmJkZWM3MTBlNDUyNWViNGUzNzIxZjUwZWVjMmQwMDlkZTQ0NmQ1MDYzNDU4NTc5ZGQxMWI0M2U3ZGRhNzMyMDNkZmQ0M2E0MGIzNWQyMzkyNWM0NGYzYTI4MTJkYTczNjg4In0=" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Content-Type: text/plain" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Content-Disposition: attachment; filename="test_blob_1755689915.txt"" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header: "Content-Length: 296" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http header done +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer del: 6: 256709221 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 rewrite phase: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: "/health" +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:38:36 [debug] 607849#607849: *5 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:38:36 [debug] 607849#607849: *5 using configuration "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http cl:296 max:104857600 +2025/08/20 07:38:36 [debug] 607849#607849: *5 rewrite phase: 3 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "PUT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script regex: "^(PUT)$" +2025/08/20 07:38:36 [notice] 607849#607849: *5 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script if +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script if: false +2025/08/20 07:38:36 [debug] 607849#607849: *5 post rewrite phase: 4 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 5 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 6 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 7 +2025/08/20 07:38:36 [debug] 607849#607849: *5 access phase: 8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 access phase: 9 +2025/08/20 07:38:36 [debug] 607849#607849: *5 access phase: 10 +2025/08/20 07:38:36 [debug] 607849#607849: *5 post access phase: 11 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 12 +2025/08/20 07:38:36 [debug] 607849#607849: *5 generic phase: 13 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http client request body preread 184 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http request body content length filter +2025/08/20 07:38:36 [debug] 607849#607849: *5 http body new buf t:1 f:0 00006236391A93E8, pos 00006236391A93E8, size: 184 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http read client request body +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:0, avail:112 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: fd:6 112 of 112 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: avail:0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http client request body recv 112 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http body new buf t:1 f:0 00006236391BC830, pos 00006236391BC830, size: 112 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http client request body rest 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http init upstream, client timer: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:38:36 [debug] 607849#607849: *5 posix_memalign: 00006236391B0150:4096 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "QUERY_STRING" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "QUERY_STRING: " +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REQUEST_METHOD" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "PUT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "CONTENT_TYPE" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "text/plain" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "CONTENT_LENGTH" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "296" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SCRIPT_NAME" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REQUEST_URI" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "DOCUMENT_URI" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "./blobs" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "HTTP/1.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REQUEST_SCHEME" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "http" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "CGI/1.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "nginx/" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "1.18.0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REMOTE_ADDR" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "127.0.0.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REMOTE_PORT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "50596" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REMOTE_PORT: 50596" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SERVER_ADDR" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "127.0.0.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SERVER_PORT" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SERVER_NAME" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "localhost" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "REDIRECT_STATUS" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "200" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script var: "./blobs" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http script copy: "/ginxsom.fcgi" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxMjgyZjk5YmVhYTMzMzQyNWIxY2QwODg1ZDA1YmQ5YjczMzc0MWNkNGRhMDRiYWVlMTAwY2VhMjY2YjEwNjkyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk5MTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1NjA2YTBiYjdmMGUzNDZlMzc2NWY2ODFmOGZmMjQ0OTkwMTViZTkwMzliMDQwNDMyZGEzNzdiYmUyMTZiYjZiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzUxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjI5ZTExOTMyYTQ5ZmI3YzMyZjUxYjBmZTZiMGVjYmJkZWM3MTBlNDUyNWViNGUzNzIxZjUwZWVjMmQwMDlkZTQ0NmQ1MDYzNDU4NTc5ZGQxMWI0M2U3ZGRhNzMyMDNkZmQ0M2E0MGIzNWQyMzkyNWM0NGYzYTI4MTJkYTczNjg4In0=" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755689915.txt"" +2025/08/20 07:38:36 [debug] 607849#607849: *5 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http cleanup add: 00006236391BCB80 +2025/08/20 07:38:36 [debug] 607849#607849: *5 get rr peer, try: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 stream socket 10 +2025/08/20 07:38:36 [debug] 607849#607849: *5 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:38:36 [debug] 607849#607849: *5 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #6 +2025/08/20 07:38:36 [debug] 607849#607849: *5 connected +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream connect: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 posix_memalign: 000062363918FF20:128 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream send request +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream send request body +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer buf fl:0 s:1304 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer buf fl:0 s:184 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer buf fl:0 s:8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer buf fl:0 s:112 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer buf fl:0 s:8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer in: 00006236391BCC10 +2025/08/20 07:38:36 [debug] 607849#607849: *5 writev: 1616 of 1616 +2025/08/20 07:38:36 [debug] 607849#607849: *5 chain writer out: 0000000000000000 +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer add: 10: 60000:256709221 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http request count:2 blk:0 +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: 60000 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:6 ev:0004 d:0000736F36FC51E0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http run request: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream check client, write event:1, "/upload" +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:10 ev:0004 d:0000736F36FC52C8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream request: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream dummy handler +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 2 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: 59998 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:10 ev:0005 d:0000736F36FC52C8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream request: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream process header +2025/08/20 07:38:36 [debug] 607849#607849: *5 malloc: 00006236391B1160:4096 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:0, avail:-1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: fd:10 3072 of 4096 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: "═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 5606a0bb7f0e346e3765f681f8ff24499015be9039b040432da377bbe216bb6b +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_he" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: "ader called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxMjgyZjk5YmVhYTMz... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"1282f99beaa333425b1cd0885d05bd9b733741cd4da04baee100cea266b10692","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: "_at":1755689916,"tags":[["t","upload"],["x","5606a0bb7f0e346e3765f681f8ff24499015be9039b040432da377bbe216bb6b"],["expiration","1755693515"]],"content":"","sig":"29e11932a49fb7c32f51b0fe6b0ecbbdec710e4525eb4e3721f50eec2d009de446d5063458579dd11b43e7dda73203dfd43a40b35d23925c44f3a2812da73688"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "1282f99beaa333425b1cd0885d05bd9b733741cd4da04baee100cea266b10692", + "pubkey": "79be667ef9dcbbac55a06295ce870b0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: "7029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755689916, + "tags": [["t", "upload"], ["x", "5606a0bb7f0e346e3765f681f8ff24499015be9039b040432da377bbe216bb6b"], ["expiration", "1755693515"]], + "content": "", + "sig": "29e11932a49fb7c32f51b0fe6b0ecbbdec710e4525eb4e3721f50eec2d009de446d5063458579dd11b43e7dda73203dfd43a40b35d23925c44f3a2812da73688" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 1282f99beaa333425b1cd0885d05bd9b733741cd4da04baee100cea266b10692 +ℹ️ INFO:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: " pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 29e11932a49fb7c32f51b0fe6b0ecbbdec710e4525eb4e3721f50eec2d009de446d5063458579dd11b43e7dda73203dfd43a40b35d23925c44f3a2812da73688 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755689916 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37)" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: F8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 504 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: " 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing stru" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:0, avail:0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream request: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream dummy handler +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 0 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: 59998 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:10 ev:2005 d:0000736F36FC52C8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream request: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream process header +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:1, avail:-1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: fd:10 1808 of 4096 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 97 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 407 +2025/08/20 07:38:36 [error] 607849#607849: *5 FastCGI sent in stderr: "cture validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 07 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 06 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 05 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 47 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 1351 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: FastCGI received request" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: METHOD=PUT, URI=/upload" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: handle_upload_request called" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "LOG: [2025-08-20 07:38:36] PUT /upload - Auth: pending - Status: 0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: content_type=text/plain" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: content_length=296" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxMjgyZjk5YmVhYTMzMzQyNWIxY2QwODg1ZDA1YmQ5YjczMzc0MWNkNGRhMDRiYWVlMTAwY2VhMjY2YjEwNjkyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk5MTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1NjA2YTBiYjdmMGUzNDZlMzc2NWY2ODFmOGZmMjQ0OTkwMTViZTkwMzliMDQwNDMyZGEzNzdiYmUyMTZiYjZiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzUxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjI5ZTExOTMyYTQ5ZmI3YzMyZjUxYjBmZTZiMGVjYmJkZWM3MTBlNDUyNWViNGUzNzIxZjUwZWVjMmQwMDlkZTQ0NmQ1MDYzNDU4NTc5ZGQxMWI0M2U3ZGRhNzMyMDNkZmQ0M2E0MGIzNWQyMzkyNWM0NGYzYTI4MTJkYTczNjg4In0=" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "LOG: [2025-08-20 07:38:36] PUT /upload - Auth: auth_provided - Status: 0" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "DEBUG: Successfully read DEBUG: Calculated SHA-256: 5606a0bb7f0e346e3765f681f8ff24499015be9039b040432da377bbe216bb6b" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header: "Content-Type: application/json" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi parser: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi header done +2025/08/20 07:38:36 [debug] 607849#607849: *5 posix_memalign: 00006236391B2170:4096 @16 +2025/08/20 07:38:36 [debug] 607849#607849: *5 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:38:36 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 07:38:36] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIxMjgyZjk5YmVhYTMzMzQyNWIxY2QwODg1ZDA1YmQ5YjczMzc0MWNkNGRhMDRiYWVlMTAwY2VhMjY2YjEwNjkyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODk5MTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1NjA2YTBiYjdmMGUzNDZlMzc2NWY2ODFmOGZmMjQ0OTkwMTViZTkwMzliMDQwNDMyZGEzNzdiYmUyMTZiYjZiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5MzUxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjI5ZTExOTMyYTQ5ZmI3YzMyZjUxYjBmZTZiMGVjYmJkZWM3MTBlNDUyNWViNGUzNzIxZjUwZWVjMmQwMDlkZTQ0NmQ1MDYzNDU4NTc5ZGQxMWI0M2U3ZGRhNzMyMDNkZmQ0M2E0MGIzNWQyMzkyNWM0NGYzYTI4MTJkYTczNjg4In0= +LOG: [2025-08-20 07:38:36] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG: Calculated SHA-256: 5606a0bb7f0e346e3765f681f8ff24499015be9039b040432da377bbe216bb6b + +2025/08/20 07:38:36 [debug] 607849#607849: *5 write new buf t:1 f:0 00006236391B2190, pos 00006236391B2190, size: 1259 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter: l:0 f:0 s:1259 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http cacheable: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream process upstream +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe read upstream: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe preread: 238 +2025/08/20 07:38:36 [debug] 607849#607849: *5 readv: eof:1, avail:0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 readv: 1, last:2288 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe recv chain: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe buf free s:0 t:1 f:0 00006236391B1160, pos 00006236391B1782, size: 238 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe length: -1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 input buf #0 00006236391B1782 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 06 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi closed stdout +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 03 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 01 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 08 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record byte: 00 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi record length: 8 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http fastcgi sent end request +2025/08/20 07:38:36 [debug] 607849#607849: *5 input buf 00006236391B1782 213 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe write downstream: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe write downstream flush in +2025/08/20 07:38:36 [debug] 607849#607849: *5 http output filter "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http copy filter: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http postpone filter "/upload?" 00006236391BCBE0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http chunk: 213 +2025/08/20 07:38:36 [debug] 607849#607849: *5 write old buf t:1 f:0 00006236391B2190, pos 00006236391B2190, size: 1259 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 write new buf t:1 f:0 00006236391B1010, pos 00006236391B1010, size: 4 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 write new buf t:1 f:0 00006236391B1160, pos 00006236391B1782, size: 213 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 write new buf t:0 f:0 0000000000000000, pos 00006236390DA2E8, size: 2 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter: l:0 f:0 s:1478 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter limit 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 writev: 1478 of 1478 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter 0000000000000000 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http copy filter: 0 "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 pipe write downstream done +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer: 10, old: 256709221, new: 256709224 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream exit: 0000000000000000 +2025/08/20 07:38:36 [debug] 607849#607849: *5 finalize http upstream request: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 finalize http fastcgi request +2025/08/20 07:38:36 [debug] 607849#607849: *5 free rr peer 1 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 close http upstream connection: 10 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 000062363918FF20, unused: 48 +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer del: 10: 256709221 +2025/08/20 07:38:36 [debug] 607849#607849: *5 reusable connection: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http upstream temp fd: -1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http output filter "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http copy filter: "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http postpone filter "/upload?" 00007FFEEE1896C0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http chunk: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 write new buf t:0 f:0 0000000000000000, pos 00006236390DA2E5, size: 5 file: 0, size: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter: l:1 f:0 s:5 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter limit 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 writev: 5 of 5 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http write filter 0000000000000000 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http copy filter: 0 "/upload?" +2025/08/20 07:38:36 [debug] 607849#607849: *5 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 set http keepalive handler +2025/08/20 07:38:36 [debug] 607849#607849: *5 http close request +2025/08/20 07:38:36 [debug] 607849#607849: *5 http log handler +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391B1160 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391C5A30, unused: 3 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391BBDA0, unused: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391B0150, unused: 10 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391B2170, unused: 2805 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391A90A0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 hc free: 0000000000000000 +2025/08/20 07:38:36 [debug] 607849#607849: *5 hc busy: 0000000000000000 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 tcp_nodelay +2025/08/20 07:38:36 [debug] 607849#607849: *5 reusable connection: 1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer add: 6: 65000:256714224 +2025/08/20 07:38:36 [debug] 607849#607849: *5 post event 00006236391F7770 +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 1 +2025/08/20 07:38:36 [debug] 607849#607849: posted event 00006236391F7770 +2025/08/20 07:38:36 [debug] 607849#607849: *5 delete posted event 00006236391F7770 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http keepalive handler +2025/08/20 07:38:36 [debug] 607849#607849: *5 malloc: 00006236391A90A0:1024 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:0, avail:0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391A90A0 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: 65000 +2025/08/20 07:38:36 [debug] 607849#607849: epoll: fd:6 ev:2005 d:0000736F36FC51E0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 http keepalive handler +2025/08/20 07:38:36 [debug] 607849#607849: *5 malloc: 00006236391A90A0:1024 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: eof:1, avail:-1 +2025/08/20 07:38:36 [debug] 607849#607849: *5 recv: fd:6 0 of 1024 +2025/08/20 07:38:36 [info] 607849#607849: *5 client 127.0.0.1 closed keepalive connection +2025/08/20 07:38:36 [debug] 607849#607849: *5 close http connection: 6 +2025/08/20 07:38:36 [debug] 607849#607849: *5 event timer del: 6: 256714224 +2025/08/20 07:38:36 [debug] 607849#607849: *5 reusable connection: 0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391A90A0 +2025/08/20 07:38:36 [debug] 607849#607849: *5 free: 00006236391A6840, unused: 120 +2025/08/20 07:38:36 [debug] 607849#607849: timer delta: 2 +2025/08/20 07:38:36 [debug] 607849#607849: worker cycle +2025/08/20 07:38:36 [debug] 607849#607849: epoll timer: -1 +2025/08/20 07:53:36 [notice] 607848#607848: signal 15 (SIGTERM) received from 610631, exiting +2025/08/20 07:53:36 [debug] 607848#607848: wake up, sigio 0 +2025/08/20 07:53:36 [debug] 607848#607848: child: 0 607849 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:53:36 [debug] 607848#607848: termination cycle: 50 +2025/08/20 07:53:36 [debug] 607848#607848: sigsuspend +2025/08/20 07:53:36 [debug] 607849#607849: epoll: fd:7 ev:0001 d:0000736F36FC50F8 +2025/08/20 07:53:36 [debug] 607849#607849: channel handler +2025/08/20 07:53:36 [debug] 607849#607849: channel: 32 +2025/08/20 07:53:36 [debug] 607849#607849: channel command: 4 +2025/08/20 07:53:36 [debug] 607849#607849: channel: -2 +2025/08/20 07:53:36 [debug] 607849#607849: timer delta: 899892 +2025/08/20 07:53:36 [notice] 607849#607849: exiting +2025/08/20 07:53:36 [debug] 607849#607849: flush files +2025/08/20 07:53:36 [debug] 607849#607849: run cleanup: 00006236391F4A80 +2025/08/20 07:53:36 [debug] 607849#607849: run cleanup: 00006236391E7A18 +2025/08/20 07:53:36 [debug] 607849#607849: cleanup resolver +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391F5DE0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391E8BE0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391C7B50 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391C6A40 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391C0A10 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391BF950 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391BE890 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391BD7D0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391B5170 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391AC140, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391B6580, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391C1A20, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391C8B60, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391CCB70, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391D0B80, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391D4B90, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391D8BA0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391DCBB0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391E0BC0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391E4BD0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391E9DB0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391EDDC0, unused: 0 +2025/08/20 07:53:36 [debug] 607849#607849: free: 00006236391F1DD0, unused: 4920 +2025/08/20 07:53:36 [notice] 607849#607849: exit +2025/08/20 07:53:36 [notice] 607848#607848: signal 17 (SIGCHLD) received from 607849 +2025/08/20 07:53:36 [notice] 607848#607848: worker process 607849 exited with code 0 +2025/08/20 07:53:36 [debug] 607848#607848: shmtx forced unlock +2025/08/20 07:53:36 [debug] 607848#607848: wake up, sigio 3 +2025/08/20 07:53:36 [debug] 607848#607848: reap children +2025/08/20 07:53:36 [debug] 607848#607848: child: 0 607849 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:53:36 [notice] 607848#607848: exit +2025/08/20 07:53:36 [debug] 607848#607848: close listening 0.0.0.0:9001 #5 +2025/08/20 07:53:36 [debug] 607848#607848: run cleanup: 00006236391E7A18 +2025/08/20 07:53:36 [debug] 607848#607848: cleanup resolver +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391F5DE0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391E8BE0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391C7B50 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391C6A40 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391C0A10 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391BF950 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391BE890 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391BD7D0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391B5170 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391AC140, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391B6580, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391C1A20, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391C8B60, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391CCB70, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391D0B80, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391D4B90, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391D8BA0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391DCBB0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391E0BC0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391E4BD0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391E9DB0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391EDDC0, unused: 0 +2025/08/20 07:53:36 [debug] 607848#607848: free: 00006236391F1DD0, unused: 4951 +2025/08/20 07:53:39 [debug] 610665#610665: bind() 0.0.0.0:9001 #5 +2025/08/20 07:53:39 [debug] 610665#610665: counter: 0000782133DE6080, 1 +2025/08/20 07:53:39 [debug] 610666#610666: bind() 0.0.0.0:9001 #5 +2025/08/20 07:53:39 [notice] 610666#610666: using the "epoll" event method +2025/08/20 07:53:39 [debug] 610666#610666: counter: 000077BA99F99080, 1 +2025/08/20 07:53:39 [notice] 610666#610666: nginx/1.18.0 (Ubuntu) +2025/08/20 07:53:39 [notice] 610666#610666: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:53:39 [notice] 610666#610666: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:53:39 [debug] 610667#610666: write: 6, 00007FFDF3EBD690, 7, 0 +2025/08/20 07:53:39 [debug] 610667#610667: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:53:39 [notice] 610667#610667: start worker processes +2025/08/20 07:53:39 [debug] 610667#610667: channel 6:7 +2025/08/20 07:53:39 [notice] 610667#610667: start worker process 610668 +2025/08/20 07:53:39 [debug] 610667#610667: sigsuspend +2025/08/20 07:53:39 [debug] 610668#610668: add cleanup: 00005CBBF1D58A80 +2025/08/20 07:53:39 [debug] 610668#610668: malloc: 00005CBBF1D0BBD0:8 +2025/08/20 07:53:39 [debug] 610668#610668: notify eventfd: 9 +2025/08/20 07:53:39 [debug] 610668#610668: testing the EPOLLRDHUP flag: success +2025/08/20 07:53:39 [debug] 610668#610668: malloc: 00005CBBF1D1E590:6144 +2025/08/20 07:53:39 [debug] 610668#610668: malloc: 000077BA99D91010:237568 +2025/08/20 07:53:39 [debug] 610668#610668: malloc: 00005CBBF1D5B6B0:98304 +2025/08/20 07:53:39 [debug] 610668#610668: malloc: 00005CBBF1D736C0:98304 +2025/08/20 07:53:39 [debug] 610668#610668: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:53:39 [debug] 610668#610668: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:53:39 [debug] 610668#610668: setproctitle: "nginx: worker process" +2025/08/20 07:53:39 [debug] 610668#610668: worker cycle +2025/08/20 07:53:39 [debug] 610668#610668: epoll timer: -1 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:5 ev:0001 d:000077BA99D91010 +2025/08/20 07:53:48 [debug] 610668#610668: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:53:48 [debug] 610668#610668: posix_memalign: 00005CBBF1D0A840:512 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *1 accept: 127.0.0.1:57652 fd:6 +2025/08/20 07:53:48 [debug] 610668#610668: *1 event timer add: 6: 60000:257621285 +2025/08/20 07:53:48 [debug] 610668#610668: *1 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 8969 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 60000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:0001 d:000077BA99D911E0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http wait request handler +2025/08/20 07:53:48 [debug] 610668#610668: *1 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *1 recv: eof:0, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 recv: fd:6 84 of 1024 +2025/08/20 07:53:48 [debug] 610668#610668: *1 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 posix_memalign: 00005CBBF1D29A30:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http process request line +2025/08/20 07:53:48 [debug] 610668#610668: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http uri: "/health" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http args: "" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http exten: "" +2025/08/20 07:53:48 [debug] 610668#610668: *1 posix_memalign: 00005CBBF1D1FDA0:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http process request header line +2025/08/20 07:53:48 [debug] 610668#610668: *1 http header: "Host: localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http header: "Accept: */*" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http header done +2025/08/20 07:53:48 [debug] 610668#610668: *1 event timer del: 6: 257621285 +2025/08/20 07:53:48 [debug] 610668#610668: *1 generic phase: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 rewrite phase: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 test location: "/health" +2025/08/20 07:53:48 [debug] 610668#610668: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:53:48 [debug] 610668#610668: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *1 using configuration "/health" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http cl:-1 max:104857600 +2025/08/20 07:53:48 [debug] 610668#610668: *1 rewrite phase: 3 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http set discard body +2025/08/20 07:53:48 [debug] 610668#610668: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:53:48 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 07:53:48 [debug] 610668#610668: *1 write new buf t:1 f:0 00005CBBF1D20180, pos 00005CBBF1D20180, size: 196 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http write filter: l:0 f:0 s:196 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http output filter "/health?" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http copy filter: "/health?" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http postpone filter "/health?" 00007FFDF3EBD220 +2025/08/20 07:53:48 [debug] 610668#610668: *1 write old buf t:1 f:0 00005CBBF1D20180, pos 00005CBBF1D20180, size: 196 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 write new buf t:0 f:0 0000000000000000, pos 00005CBBF1D47B42, size: 3 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http write filter: l:1 f:0 s:199 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http write filter limit 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 writev: 199 of 199 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http write filter 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http copy filter: 0 "/health?" +2025/08/20 07:53:48 [debug] 610668#610668: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 set http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *1 http close request +2025/08/20 07:53:48 [debug] 610668#610668: *1 http log handler +2025/08/20 07:53:48 [debug] 610668#610668: *1 free: 00005CBBF1D29A30, unused: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 free: 00005CBBF1D1FDA0, unused: 2736 +2025/08/20 07:53:48 [debug] 610668#610668: *1 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 hc free: 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *1 hc busy: 0000000000000000 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 tcp_nodelay +2025/08/20 07:53:48 [debug] 610668#610668: *1 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 event timer add: 6: 65000:257626285 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 0 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 65000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:2001 d:000077BA99D911E0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *1 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *1 recv: eof:1, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *1 recv: fd:6 0 of 1024 +2025/08/20 07:53:48 [info] 610668#610668: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 07:53:48 [debug] 610668#610668: *1 close http connection: 6 +2025/08/20 07:53:48 [debug] 610668#610668: *1 event timer del: 6: 257626285 +2025/08/20 07:53:48 [debug] 610668#610668: *1 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *1 free: 00005CBBF1D0A840, unused: 136 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 1 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: -1 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:5 ev:0001 d:000077BA99D91010 +2025/08/20 07:53:48 [debug] 610668#610668: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:53:48 [debug] 610668#610668: posix_memalign: 00005CBBF1D0A840:512 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *2 accept: 127.0.0.1:57668 fd:6 +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer add: 6: 60000:257621614 +2025/08/20 07:53:48 [debug] 610668#610668: *2 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 328 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 60000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:0001 d:000077BA99D911E1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http wait request handler +2025/08/20 07:53:48 [debug] 610668#610668: *2 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:0, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: fd:6 1024 of 1024 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: avail:112 +2025/08/20 07:53:48 [debug] 610668#610668: *2 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 posix_memalign: 00005CBBF1D29A30:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http process request line +2025/08/20 07:53:48 [debug] 610668#610668: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http uri: "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http args: "" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http exten: "" +2025/08/20 07:53:48 [debug] 610668#610668: *2 posix_memalign: 00005CBBF1D1FDA0:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http process request header line +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Host: localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Accept: */*" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJjOWVmOWU3OTkzMDg0ZmNiNzc5ZTUwMDllNDAzNDUwOGZjNjU5YWNkNzEzZmU1NjlhMDliYjIzNmQyYzA4OTAxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTA4MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MDY3ZWNlYTE3NWNmNjUzYTYyYWVlNDBmZjU1MGE2MjNlMjg5YjJmNTI2OWYyY2Q5MDk5MTkzZjQ1NTQ3YmM2Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDQyOCJdXSwiY29udGVudCI6IiIsInNpZyI6IjFkMDVmZjU5YzRiNDU1ODkyYTk0YWJmNjA0M2EzMzhkNDM3MzEyYmNiNGQ3ZDQ5ZGM1Nzk4Y2IwNGJhMjU0MDc1OGVmMzk2YmU4M2MzZmQ2ZWY4ZDAzZjMwYWY4YzNmOWZjZGU0MTQ3NjJmMWU0OWYxMzdmYWRiNTlmYzYwYmUwIn0=" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Content-Type: text/plain" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755690828.txt"" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header: "Content-Length: 296" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http header done +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer del: 6: 257621614 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 rewrite phase: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: "/health" +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *2 using configuration "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http cl:296 max:104857600 +2025/08/20 07:53:48 [debug] 610668#610668: *2 rewrite phase: 3 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "PUT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script regex: "^(PUT)$" +2025/08/20 07:53:48 [notice] 610668#610668: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script if +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script if: false +2025/08/20 07:53:48 [debug] 610668#610668: *2 post rewrite phase: 4 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 5 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 6 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 7 +2025/08/20 07:53:48 [debug] 610668#610668: *2 access phase: 8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 access phase: 9 +2025/08/20 07:53:48 [debug] 610668#610668: *2 access phase: 10 +2025/08/20 07:53:48 [debug] 610668#610668: *2 post access phase: 11 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 12 +2025/08/20 07:53:48 [debug] 610668#610668: *2 generic phase: 13 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http client request body preread 184 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http request body content length filter +2025/08/20 07:53:48 [debug] 610668#610668: *2 http body new buf t:1 f:0 00005CBBF1D0D3E8, pos 00005CBBF1D0D3E8, size: 184 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http read client request body +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:0, avail:112 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: fd:6 112 of 112 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: avail:0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http client request body recv 112 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http body new buf t:1 f:0 00005CBBF1D20830, pos 00005CBBF1D20830, size: 112 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http client request body rest 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http init upstream, client timer: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:53:48 [debug] 610668#610668: *2 posix_memalign: 00005CBBF1D14150:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "QUERY_STRING" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REQUEST_METHOD" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "PUT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "CONTENT_TYPE" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "text/plain" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "296" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SCRIPT_NAME" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REQUEST_URI" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "DOCUMENT_URI" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "./blobs" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "HTTP/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "http" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "CGI/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "nginx/" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "1.18.0" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REMOTE_ADDR" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "127.0.0.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REMOTE_PORT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "57668" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REMOTE_PORT: 57668" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SERVER_ADDR" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "127.0.0.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SERVER_PORT" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SERVER_NAME" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "localhost" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "200" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script var: "./blobs" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJjOWVmOWU3OTkzMDg0ZmNiNzc5ZTUwMDllNDAzNDUwOGZjNjU5YWNkNzEzZmU1NjlhMDliYjIzNmQyYzA4OTAxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTA4MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MDY3ZWNlYTE3NWNmNjUzYTYyYWVlNDBmZjU1MGE2MjNlMjg5YjJmNTI2OWYyY2Q5MDk5MTkzZjQ1NTQ3YmM2Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDQyOCJdXSwiY29udGVudCI6IiIsInNpZyI6IjFkMDVmZjU5YzRiNDU1ODkyYTk0YWJmNjA0M2EzMzhkNDM3MzEyYmNiNGQ3ZDQ5ZGM1Nzk4Y2IwNGJhMjU0MDc1OGVmMzk2YmU4M2MzZmQ2ZWY4ZDAzZjMwYWY4YzNmOWZjZGU0MTQ3NjJmMWU0OWYxMzdmYWRiNTlmYzYwYmUwIn0=" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755690828.txt"" +2025/08/20 07:53:48 [debug] 610668#610668: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http cleanup add: 00005CBBF1D20B80 +2025/08/20 07:53:48 [debug] 610668#610668: *2 get rr peer, try: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 stream socket 10 +2025/08/20 07:53:48 [debug] 610668#610668: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:53:48 [debug] 610668#610668: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 07:53:48 [debug] 610668#610668: *2 connected +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream connect: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 posix_memalign: 00005CBBF1CF3F20:128 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream send request +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream send request body +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer buf fl:0 s:1304 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer buf fl:0 s:184 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer buf fl:0 s:8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer buf fl:0 s:112 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer buf fl:0 s:8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer in: 00005CBBF1D20C10 +2025/08/20 07:53:48 [debug] 610668#610668: *2 writev: 1616 of 1616 +2025/08/20 07:53:48 [debug] 610668#610668: *2 chain writer out: 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer add: 10: 60000:257621615 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http request count:2 blk:0 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 1 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 60000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:0004 d:000077BA99D911E1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http run request: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream check client, write event:1, "/upload" +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:10 ev:0004 d:000077BA99D912C8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream request: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream dummy handler +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 2 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 59998 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:10 ev:0005 d:000077BA99D912C8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream request: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream process header +2025/08/20 07:53:48 [debug] 610668#610668: *2 malloc: 00005CBBF1D15160:4096 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:0, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: fd:10 2560 of 4096 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 07:53:48] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJjOWVmOWU3OTkzMDg0ZmNiNzc5ZTUwMDllNDAzNDUwOGZjNjU5YWNkNzEzZmU1NjlhMDliYjIzNmQyYzA4OTAxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "NTU2OTA4MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MDY3ZWNlYTE3NWNmNjUzYTYyYWVlNDBmZjU1MGE2MjNlMjg5YjJmNTI2OWYyY2Q5MDk5MTkzZjQ1NTQ3YmM2Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDQyOCJdXSwiY29udGVudCI6IiIsInNpZyI6IjFkMDVmZjU5YzRiNDU1ODkyYTk0YWJmNjA0M2EzMzhkNDM3MzEyYmNiNGQ3ZDQ5ZGM1Nzk4Y2IwNGJhMjU0MDc1OGVmMzk2YmU4M2MzZmQ2ZWY4ZDAzZjMwYWY4YzNmOWZjZGU0MTQ3NjJmMWU0OWYxMzdmYWRiNTlmYzYwYmUwIn0= +LOG: [2025-08-20 07:53:48] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-LAAN: DATA TO HAS" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "H: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T07:53:48-04:00 +Random data: 48cf531eb9f4747119e7737943ff0e055f5ec5a780fc9dff4eb0d7112e4be602 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: 9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6 +══════════════════════════════════" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJjOWVmOWU3OTkzMDg0... +DEBUG: Extracted base64" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"c9ef9e7993084fcb779e5009e4034508fc659acd713fe569a09bb236d2c08901","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755690828,"tags":[["t","upload"],["x","9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:0, avail:0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream request: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream dummy handler +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 0 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 59998 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:10 ev:2005 d:000077BA99D912C8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream request: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream process header +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:1, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: fd:10 2680 of 4096 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "547bc6"],["expiration","1755694428"]],"content":"","sig":"1d05ff59c4b455892a94abf6043a338d437312bcb4d7d49dc5798cb04ba2540758ef396be83c3fd6ef8d03f30af8c3f9fcde414762f1e49f137fadb59fc60be0"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "c9ef9e7993084fcb779e5009e4034508fc659acd713fe569a09bb236d2c08901", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755690828, + "tags": [["t", "upload"], ["x", "9067ec" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "ea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6"], ["expiration", "1755694428"]], + "content": "", + "sig": "1d05ff59c4b455892a94abf6043a338d437312bcb4d7d49dc5798cb04ba2540758ef396be83c3fd6ef8d03f30af8c3f9fcde414762f1e49f137fadb59fc60be0" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: c9ef9e7993084fcb779e5009e4034508fc659acd713fe569a09bb236d2c08901 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 1d05ff59" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "c4b455892a94abf6043a338d437312bcb4d7d49dc5798cb04ba2540758ef396be83c3fd6ef8d03f30af8c3f9fcde414762f1e49f137fadb59fc60be0 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755690828 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-valid" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: F8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 504 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "ation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Str" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 7A +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 06 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 378 +2025/08/20 07:53:48 [error] 610668#610668: *2 FastCGI sent in stderr: "ucture validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: LOG: [2025-08-20 07:53:48] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 07 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 06 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: C7 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 199 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi parser: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi parser: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi parser: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi header done +2025/08/20 07:53:48 [debug] 610668#610668: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:53:48 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 07:53:48 [debug] 610668#610668: *2 write new buf t:1 f:0 00005CBBF1D14808, pos 00005CBBF1D14808, size: 181 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http write filter: l:0 f:0 s:181 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http cacheable: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream process upstream +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe read upstream: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe preread: 164 +2025/08/20 07:53:48 [debug] 610668#610668: *2 readv: eof:1, avail:0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 readv: 1, last:1416 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe recv chain: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe buf free s:0 t:1 f:0 00005CBBF1D15160, pos 00005CBBF1D15B34, size: 164 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe length: -1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 input buf #0 00005CBBF1D15B34 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 06 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi closed stdout +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 03 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 01 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 08 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record byte: 00 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi record length: 8 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http fastcgi sent end request +2025/08/20 07:53:48 [debug] 610668#610668: *2 input buf 00005CBBF1D15B34 139 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe write downstream: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe write downstream flush in +2025/08/20 07:53:48 [debug] 610668#610668: *2 http output filter "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http copy filter: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http postpone filter "/upload?" 00005CBBF1D20BE0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http chunk: 139 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write old buf t:1 f:0 00005CBBF1D14808, pos 00005CBBF1D14808, size: 181 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write new buf t:1 f:0 00005CBBF1D20D78, pos 00005CBBF1D20D78, size: 4 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write new buf t:1 f:0 00005CBBF1D15160, pos 00005CBBF1D15B34, size: 139 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write new buf t:0 f:0 0000000000000000, pos 00005CBBDF0D22E8, size: 2 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http write filter: l:0 f:0 s:326 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http copy filter: 0 "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 pipe write downstream done +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer: 10, old: 257621615, new: 257621618 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream exit: 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *2 finalize http upstream request: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 finalize http fastcgi request +2025/08/20 07:53:48 [debug] 610668#610668: *2 free rr peer 1 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 close http upstream connection: 10 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1CF3F20, unused: 48 +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer del: 10: 257621615 +2025/08/20 07:53:48 [debug] 610668#610668: *2 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http upstream temp fd: -1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http output filter "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http copy filter: "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http postpone filter "/upload?" 00007FFDF3EBD2D0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http chunk: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write old buf t:1 f:0 00005CBBF1D14808, pos 00005CBBF1D14808, size: 181 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write old buf t:1 f:0 00005CBBF1D20D78, pos 00005CBBF1D20D78, size: 4 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write old buf t:1 f:0 00005CBBF1D15160, pos 00005CBBF1D15B34, size: 139 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write old buf t:0 f:0 0000000000000000, pos 00005CBBDF0D22E8, size: 2 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 write new buf t:0 f:0 0000000000000000, pos 00005CBBDF0D22E5, size: 5 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http write filter: l:1 f:0 s:331 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http write filter limit 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 writev: 331 of 331 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http write filter 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http copy filter: 0 "/upload?" +2025/08/20 07:53:48 [debug] 610668#610668: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 set http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *2 http close request +2025/08/20 07:53:48 [debug] 610668#610668: *2 http log handler +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D15160 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D29A30, unused: 3 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D1FDA0, unused: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D14150, unused: 1250 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 hc free: 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *2 hc busy: 0000000000000000 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 tcp_nodelay +2025/08/20 07:53:48 [debug] 610668#610668: *2 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer add: 6: 65000:257626618 +2025/08/20 07:53:48 [debug] 610668#610668: *2 post event 00005CBBF1D5B770 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 1 +2025/08/20 07:53:48 [debug] 610668#610668: posted event 00005CBBF1D5B770 +2025/08/20 07:53:48 [debug] 610668#610668: *2 delete posted event 00005CBBF1D5B770 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *2 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:0, avail:0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 65000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:2005 d:000077BA99D911E1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *2 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: eof:1, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *2 recv: fd:6 0 of 1024 +2025/08/20 07:53:48 [info] 610668#610668: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 07:53:48 [debug] 610668#610668: *2 close http connection: 6 +2025/08/20 07:53:48 [debug] 610668#610668: *2 event timer del: 6: 257626618 +2025/08/20 07:53:48 [debug] 610668#610668: *2 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *2 free: 00005CBBF1D0A840, unused: 120 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 2 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: -1 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:5 ev:0001 d:000077BA99D91010 +2025/08/20 07:53:48 [debug] 610668#610668: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:53:48 [debug] 610668#610668: posix_memalign: 00005CBBF1D0A840:512 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *4 accept: 127.0.0.1:57670 fd:6 +2025/08/20 07:53:48 [debug] 610668#610668: *4 event timer add: 6: 60000:257621632 +2025/08/20 07:53:48 [debug] 610668#610668: *4 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 12 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 60000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:0001 d:000077BA99D911E0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http wait request handler +2025/08/20 07:53:48 [debug] 610668#610668: *4 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *4 recv: eof:0, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 recv: fd:6 142 of 1024 +2025/08/20 07:53:48 [debug] 610668#610668: *4 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 posix_memalign: 00005CBBF1D29A30:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http process request line +2025/08/20 07:53:48 [debug] 610668#610668: *4 http request line: "GET /9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6 HTTP/1.1" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http uri: "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http args: "" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http exten: "" +2025/08/20 07:53:48 [debug] 610668#610668: *4 posix_memalign: 00005CBBF1D1FDA0:4096 @16 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http process request header line +2025/08/20 07:53:48 [debug] 610668#610668: *4 http header: "Host: localhost:9001" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http header: "Accept: */*" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http header done +2025/08/20 07:53:48 [debug] 610668#610668: *4 event timer del: 6: 257621632 +2025/08/20 07:53:48 [debug] 610668#610668: *4 generic phase: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 rewrite phase: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 test location: "/health" +2025/08/20 07:53:48 [debug] 610668#610668: *4 test location: "/debug/list" +2025/08/20 07:53:48 [debug] 610668#610668: *4 test location: "/" +2025/08/20 07:53:48 [debug] 610668#610668: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http cl:-1 max:104857600 +2025/08/20 07:53:48 [debug] 610668#610668: *4 rewrite phase: 3 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http script var +2025/08/20 07:53:48 [debug] 610668#610668: *4 http script var: "GET" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http script value: "DELETE" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http script not equal +2025/08/20 07:53:48 [debug] 610668#610668: *4 http script if +2025/08/20 07:53:48 [debug] 610668#610668: *4 http finalize request: 404, "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" a:1, c:1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http special response: 404, "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http set discard body +2025/08/20 07:53:48 [debug] 610668#610668: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:53:48 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 07:53:48 [debug] 610668#610668: *4 write new buf t:1 f:0 00005CBBF1D20180, pos 00005CBBF1D20180, size: 164 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http write filter: l:0 f:0 s:164 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http output filter "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http copy filter: "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http postpone filter "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" 00005CBBF1D20310 +2025/08/20 07:53:48 [debug] 610668#610668: *4 write old buf t:1 f:0 00005CBBF1D20180, pos 00005CBBF1D20180, size: 164 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 write new buf t:0 f:0 0000000000000000, pos 00005CBBDF111580, size: 100 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 write new buf t:0 f:0 0000000000000000, pos 00005CBBDF111C80, size: 62 file: 0, size: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http write filter: l:1 f:0 s:326 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http write filter limit 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 writev: 326 of 326 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http write filter 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http copy filter: 0 "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" +2025/08/20 07:53:48 [debug] 610668#610668: *4 http finalize request: 0, "/9067ecea175cf653a62aee40ff550a623e289b2f5269f2cd9099193f45547bc6?" a:1, c:1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 set http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *4 http close request +2025/08/20 07:53:48 [debug] 610668#610668: *4 http log handler +2025/08/20 07:53:48 [debug] 610668#610668: *4 free: 00005CBBF1D29A30, unused: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 free: 00005CBBF1D1FDA0, unused: 2456 +2025/08/20 07:53:48 [debug] 610668#610668: *4 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 hc free: 0000000000000000 +2025/08/20 07:53:48 [debug] 610668#610668: *4 hc busy: 0000000000000000 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 tcp_nodelay +2025/08/20 07:53:48 [debug] 610668#610668: *4 reusable connection: 1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 event timer add: 6: 65000:257626632 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 0 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: 65000 +2025/08/20 07:53:48 [debug] 610668#610668: epoll: fd:6 ev:2001 d:000077BA99D911E0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 http keepalive handler +2025/08/20 07:53:48 [debug] 610668#610668: *4 malloc: 00005CBBF1D0D0A0:1024 +2025/08/20 07:53:48 [debug] 610668#610668: *4 recv: eof:1, avail:-1 +2025/08/20 07:53:48 [debug] 610668#610668: *4 recv: fd:6 0 of 1024 +2025/08/20 07:53:48 [info] 610668#610668: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 07:53:48 [debug] 610668#610668: *4 close http connection: 6 +2025/08/20 07:53:48 [debug] 610668#610668: *4 event timer del: 6: 257626632 +2025/08/20 07:53:48 [debug] 610668#610668: *4 reusable connection: 0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 free: 00005CBBF1D0D0A0 +2025/08/20 07:53:48 [debug] 610668#610668: *4 free: 00005CBBF1D0A840, unused: 136 +2025/08/20 07:53:48 [debug] 610668#610668: timer delta: 1 +2025/08/20 07:53:48 [debug] 610668#610668: worker cycle +2025/08/20 07:53:48 [debug] 610668#610668: epoll timer: -1 +2025/08/20 07:58:02 [notice] 610667#610667: signal 15 (SIGTERM) received from 611433, exiting +2025/08/20 07:58:02 [debug] 610667#610667: wake up, sigio 0 +2025/08/20 07:58:02 [debug] 610667#610667: child: 0 610668 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:58:02 [debug] 610667#610667: termination cycle: 50 +2025/08/20 07:58:02 [debug] 610667#610667: sigsuspend +2025/08/20 07:58:02 [debug] 610668#610668: epoll: fd:7 ev:0001 d:000077BA99D910F8 +2025/08/20 07:58:02 [debug] 610668#610668: channel handler +2025/08/20 07:58:02 [debug] 610668#610668: channel: 32 +2025/08/20 07:58:02 [debug] 610668#610668: channel command: 4 +2025/08/20 07:58:02 [debug] 610668#610668: channel: -2 +2025/08/20 07:58:02 [debug] 610668#610668: timer delta: 254205 +2025/08/20 07:58:02 [notice] 610668#610668: exiting +2025/08/20 07:58:02 [debug] 610668#610668: flush files +2025/08/20 07:58:02 [debug] 610668#610668: run cleanup: 00005CBBF1D58A80 +2025/08/20 07:58:02 [debug] 610668#610668: run cleanup: 00005CBBF1D4BA18 +2025/08/20 07:58:02 [debug] 610668#610668: cleanup resolver +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D59DE0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D4CBE0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D2BB50 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D2AA40 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D24A10 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D23950 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D22890 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D217D0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D19170 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D10140, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D1A580, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D25A20, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D2CB60, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D30B70, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D34B80, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D38B90, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D3CBA0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D40BB0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D44BC0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D48BD0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D4DDB0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D51DC0, unused: 0 +2025/08/20 07:58:02 [debug] 610668#610668: free: 00005CBBF1D55DD0, unused: 4920 +2025/08/20 07:58:02 [notice] 610668#610668: exit +2025/08/20 07:58:02 [notice] 610667#610667: signal 17 (SIGCHLD) received from 610668 +2025/08/20 07:58:02 [notice] 610667#610667: worker process 610668 exited with code 0 +2025/08/20 07:58:02 [debug] 610667#610667: shmtx forced unlock +2025/08/20 07:58:02 [debug] 610667#610667: wake up, sigio 3 +2025/08/20 07:58:02 [debug] 610667#610667: reap children +2025/08/20 07:58:02 [debug] 610667#610667: child: 0 610668 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:58:02 [notice] 610667#610667: exit +2025/08/20 07:58:02 [debug] 610667#610667: close listening 0.0.0.0:9001 #5 +2025/08/20 07:58:02 [debug] 610667#610667: run cleanup: 00005CBBF1D4BA18 +2025/08/20 07:58:02 [debug] 610667#610667: cleanup resolver +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D59DE0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D4CBE0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D2BB50 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D2AA40 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D24A10 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D23950 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D22890 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D217D0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D19170 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D10140, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D1A580, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D25A20, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D2CB60, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D30B70, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D34B80, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D38B90, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D3CBA0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D40BB0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D44BC0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D48BD0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D4DDB0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D51DC0, unused: 0 +2025/08/20 07:58:02 [debug] 610667#610667: free: 00005CBBF1D55DD0, unused: 4951 +2025/08/20 07:58:05 [debug] 611476#611476: bind() 0.0.0.0:9001 #5 +2025/08/20 07:58:05 [debug] 611476#611476: counter: 00007D354ED61080, 1 +2025/08/20 07:58:05 [debug] 611477#611477: bind() 0.0.0.0:9001 #5 +2025/08/20 07:58:05 [notice] 611477#611477: using the "epoll" event method +2025/08/20 07:58:05 [debug] 611477#611477: counter: 000077603C7D8080, 1 +2025/08/20 07:58:05 [notice] 611477#611477: nginx/1.18.0 (Ubuntu) +2025/08/20 07:58:05 [notice] 611477#611477: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:58:05 [notice] 611477#611477: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:58:05 [debug] 611478#611477: write: 6, 00007FFFB0D98160, 7, 0 +2025/08/20 07:58:05 [debug] 611478#611478: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:58:05 [notice] 611478#611478: start worker processes +2025/08/20 07:58:05 [debug] 611478#611478: channel 6:7 +2025/08/20 07:58:05 [notice] 611478#611478: start worker process 611479 +2025/08/20 07:58:05 [debug] 611478#611478: sigsuspend +2025/08/20 07:58:05 [debug] 611479#611479: add cleanup: 00005A22F4A59A80 +2025/08/20 07:58:05 [debug] 611479#611479: malloc: 00005A22F4A0CBD0:8 +2025/08/20 07:58:05 [debug] 611479#611479: notify eventfd: 9 +2025/08/20 07:58:05 [debug] 611479#611479: testing the EPOLLRDHUP flag: success +2025/08/20 07:58:05 [debug] 611479#611479: malloc: 00005A22F4A1F590:6144 +2025/08/20 07:58:05 [debug] 611479#611479: malloc: 000077603C5D0010:237568 +2025/08/20 07:58:05 [debug] 611479#611479: malloc: 00005A22F4A5C6B0:98304 +2025/08/20 07:58:05 [debug] 611479#611479: malloc: 00005A22F4A746C0:98304 +2025/08/20 07:58:05 [debug] 611479#611479: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:58:05 [debug] 611479#611479: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:58:05 [debug] 611479#611479: setproctitle: "nginx: worker process" +2025/08/20 07:58:05 [debug] 611479#611479: worker cycle +2025/08/20 07:58:05 [debug] 611479#611479: epoll timer: -1 +2025/08/20 07:58:15 [notice] 611478#611478: signal 15 (SIGTERM) received from 611558, exiting +2025/08/20 07:58:15 [debug] 611478#611478: wake up, sigio 0 +2025/08/20 07:58:15 [debug] 611478#611478: child: 0 611479 e:0 t:0 d:0 r:1 j:0 +2025/08/20 07:58:15 [debug] 611478#611478: termination cycle: 50 +2025/08/20 07:58:15 [debug] 611478#611478: sigsuspend +2025/08/20 07:58:15 [debug] 611479#611479: epoll: fd:7 ev:0001 d:000077603C5D00F8 +2025/08/20 07:58:15 [debug] 611479#611479: channel handler +2025/08/20 07:58:15 [debug] 611479#611479: channel: 32 +2025/08/20 07:58:15 [debug] 611479#611479: channel command: 4 +2025/08/20 07:58:15 [debug] 611479#611479: channel: -2 +2025/08/20 07:58:15 [debug] 611479#611479: timer delta: 9394 +2025/08/20 07:58:15 [notice] 611479#611479: exiting +2025/08/20 07:58:15 [debug] 611479#611479: flush files +2025/08/20 07:58:15 [debug] 611479#611479: run cleanup: 00005A22F4A59A80 +2025/08/20 07:58:15 [debug] 611479#611479: run cleanup: 00005A22F4A4CA18 +2025/08/20 07:58:15 [debug] 611479#611479: cleanup resolver +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A5ADE0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A4DBE0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A2CB50 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A2BA40 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A25A10 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A24950 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A23890 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A227D0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A1A170 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A11140, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A1B580, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A26A20, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A2DB60, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A31B70, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A35B80, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A39B90, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A3DBA0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A41BB0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A45BC0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A49BD0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A4EDB0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A52DC0, unused: 0 +2025/08/20 07:58:15 [debug] 611479#611479: free: 00005A22F4A56DD0, unused: 4920 +2025/08/20 07:58:15 [notice] 611479#611479: exit +2025/08/20 07:58:15 [notice] 611478#611478: signal 17 (SIGCHLD) received from 611479 +2025/08/20 07:58:15 [notice] 611478#611478: worker process 611479 exited with code 0 +2025/08/20 07:58:15 [debug] 611478#611478: shmtx forced unlock +2025/08/20 07:58:15 [debug] 611478#611478: wake up, sigio 3 +2025/08/20 07:58:15 [debug] 611478#611478: reap children +2025/08/20 07:58:15 [debug] 611478#611478: child: 0 611479 e:1 t:1 d:0 r:1 j:0 +2025/08/20 07:58:15 [notice] 611478#611478: exit +2025/08/20 07:58:15 [debug] 611478#611478: close listening 0.0.0.0:9001 #5 +2025/08/20 07:58:15 [debug] 611478#611478: run cleanup: 00005A22F4A4CA18 +2025/08/20 07:58:15 [debug] 611478#611478: cleanup resolver +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A5ADE0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A4DBE0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A2CB50 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A2BA40 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A25A10 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A24950 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A23890 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A227D0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A1A170 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A11140, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A1B580, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A26A20, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A2DB60, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A31B70, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A35B80, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A39B90, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A3DBA0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A41BB0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A45BC0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A49BD0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A4EDB0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A52DC0, unused: 0 +2025/08/20 07:58:15 [debug] 611478#611478: free: 00005A22F4A56DD0, unused: 4951 +2025/08/20 07:58:18 [debug] 611586#611586: bind() 0.0.0.0:9001 #5 +2025/08/20 07:58:18 [debug] 611586#611586: counter: 0000714401CBE080, 1 +2025/08/20 07:58:18 [debug] 611587#611587: bind() 0.0.0.0:9001 #5 +2025/08/20 07:58:18 [notice] 611587#611587: using the "epoll" event method +2025/08/20 07:58:18 [debug] 611587#611587: counter: 0000718734997080, 1 +2025/08/20 07:58:18 [notice] 611587#611587: nginx/1.18.0 (Ubuntu) +2025/08/20 07:58:18 [notice] 611587#611587: OS: Linux 6.12.10-76061203-generic +2025/08/20 07:58:18 [notice] 611587#611587: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 07:58:18 [debug] 611588#611587: write: 6, 00007FFDAA9112C0, 7, 0 +2025/08/20 07:58:18 [debug] 611588#611588: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 07:58:18 [notice] 611588#611588: start worker processes +2025/08/20 07:58:18 [debug] 611588#611588: channel 6:7 +2025/08/20 07:58:18 [notice] 611588#611588: start worker process 611589 +2025/08/20 07:58:18 [debug] 611588#611588: sigsuspend +2025/08/20 07:58:18 [debug] 611589#611589: add cleanup: 0000576823B17A80 +2025/08/20 07:58:18 [debug] 611589#611589: malloc: 0000576823ACABD0:8 +2025/08/20 07:58:18 [debug] 611589#611589: notify eventfd: 9 +2025/08/20 07:58:18 [debug] 611589#611589: testing the EPOLLRDHUP flag: success +2025/08/20 07:58:18 [debug] 611589#611589: malloc: 0000576823ADD590:6144 +2025/08/20 07:58:18 [debug] 611589#611589: malloc: 000071873478F010:237568 +2025/08/20 07:58:18 [debug] 611589#611589: malloc: 0000576823B1A6B0:98304 +2025/08/20 07:58:18 [debug] 611589#611589: malloc: 0000576823B326C0:98304 +2025/08/20 07:58:18 [debug] 611589#611589: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 07:58:18 [debug] 611589#611589: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 07:58:18 [debug] 611589#611589: setproctitle: "nginx: worker process" +2025/08/20 07:58:18 [debug] 611589#611589: worker cycle +2025/08/20 07:58:18 [debug] 611589#611589: epoll timer: -1 +2025/08/20 07:58:26 [debug] 611589#611589: epoll: fd:5 ev:0001 d:000071873478F010 +2025/08/20 07:58:26 [debug] 611589#611589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:58:26 [debug] 611589#611589: posix_memalign: 0000576823AC9840:512 @16 +2025/08/20 07:58:26 [debug] 611589#611589: *1 accept: 127.0.0.1:34424 fd:6 +2025/08/20 07:58:26 [debug] 611589#611589: *1 event timer add: 6: 60000:257899986 +2025/08/20 07:58:26 [debug] 611589#611589: *1 reusable connection: 1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:58:26 [debug] 611589#611589: timer delta: 8310 +2025/08/20 07:58:26 [debug] 611589#611589: worker cycle +2025/08/20 07:58:26 [debug] 611589#611589: epoll timer: 60000 +2025/08/20 07:58:26 [debug] 611589#611589: epoll: fd:6 ev:0001 d:000071873478F1E0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http wait request handler +2025/08/20 07:58:26 [debug] 611589#611589: *1 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:26 [debug] 611589#611589: *1 recv: eof:0, avail:-1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 recv: fd:6 84 of 1024 +2025/08/20 07:58:26 [debug] 611589#611589: *1 reusable connection: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 posix_memalign: 0000576823AE8A30:4096 @16 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http process request line +2025/08/20 07:58:26 [debug] 611589#611589: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http uri: "/health" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http args: "" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http exten: "" +2025/08/20 07:58:26 [debug] 611589#611589: *1 posix_memalign: 0000576823ADEDA0:4096 @16 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http process request header line +2025/08/20 07:58:26 [debug] 611589#611589: *1 http header: "Host: localhost:9001" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http header: "Accept: */*" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http header done +2025/08/20 07:58:26 [debug] 611589#611589: *1 event timer del: 6: 257899986 +2025/08/20 07:58:26 [debug] 611589#611589: *1 generic phase: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 rewrite phase: 1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 test location: "/health" +2025/08/20 07:58:26 [debug] 611589#611589: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:58:26 [debug] 611589#611589: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:58:26 [debug] 611589#611589: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:58:26 [debug] 611589#611589: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:58:26 [debug] 611589#611589: *1 using configuration "/health" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http cl:-1 max:104857600 +2025/08/20 07:58:26 [debug] 611589#611589: *1 rewrite phase: 3 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http set discard body +2025/08/20 07:58:26 [debug] 611589#611589: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:58:26 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 07:58:26 [debug] 611589#611589: *1 write new buf t:1 f:0 0000576823ADF180, pos 0000576823ADF180, size: 196 file: 0, size: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http write filter: l:0 f:0 s:196 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http output filter "/health?" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http copy filter: "/health?" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http postpone filter "/health?" 00007FFDAA910E50 +2025/08/20 07:58:26 [debug] 611589#611589: *1 write old buf t:1 f:0 0000576823ADF180, pos 0000576823ADF180, size: 196 file: 0, size: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 write new buf t:0 f:0 0000000000000000, pos 0000576823B06B42, size: 3 file: 0, size: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http write filter: l:1 f:0 s:199 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http write filter limit 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 writev: 199 of 199 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http write filter 0000000000000000 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http copy filter: 0 "/health?" +2025/08/20 07:58:26 [debug] 611589#611589: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 set http keepalive handler +2025/08/20 07:58:26 [debug] 611589#611589: *1 http close request +2025/08/20 07:58:26 [debug] 611589#611589: *1 http log handler +2025/08/20 07:58:26 [debug] 611589#611589: *1 free: 0000576823AE8A30, unused: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 free: 0000576823ADEDA0, unused: 2736 +2025/08/20 07:58:26 [debug] 611589#611589: *1 free: 0000576823ACC0A0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 hc free: 0000000000000000 +2025/08/20 07:58:26 [debug] 611589#611589: *1 hc busy: 0000000000000000 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 tcp_nodelay +2025/08/20 07:58:26 [debug] 611589#611589: *1 reusable connection: 1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 event timer add: 6: 65000:257904986 +2025/08/20 07:58:26 [debug] 611589#611589: timer delta: 0 +2025/08/20 07:58:26 [debug] 611589#611589: worker cycle +2025/08/20 07:58:26 [debug] 611589#611589: epoll timer: 65000 +2025/08/20 07:58:26 [debug] 611589#611589: epoll: fd:6 ev:2001 d:000071873478F1E0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 http keepalive handler +2025/08/20 07:58:26 [debug] 611589#611589: *1 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:26 [debug] 611589#611589: *1 recv: eof:1, avail:-1 +2025/08/20 07:58:26 [debug] 611589#611589: *1 recv: fd:6 0 of 1024 +2025/08/20 07:58:26 [info] 611589#611589: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 07:58:26 [debug] 611589#611589: *1 close http connection: 6 +2025/08/20 07:58:26 [debug] 611589#611589: *1 event timer del: 6: 257904986 +2025/08/20 07:58:26 [debug] 611589#611589: *1 reusable connection: 0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 free: 0000576823ACC0A0 +2025/08/20 07:58:26 [debug] 611589#611589: *1 free: 0000576823AC9840, unused: 136 +2025/08/20 07:58:26 [debug] 611589#611589: timer delta: 1 +2025/08/20 07:58:26 [debug] 611589#611589: worker cycle +2025/08/20 07:58:26 [debug] 611589#611589: epoll timer: -1 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:5 ev:0001 d:000071873478F010 +2025/08/20 07:58:27 [debug] 611589#611589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:58:27 [debug] 611589#611589: posix_memalign: 0000576823AC9840:512 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *2 accept: 127.0.0.1:34426 fd:6 +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer add: 6: 60000:257900310 +2025/08/20 07:58:27 [debug] 611589#611589: *2 reusable connection: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 323 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 60000 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:6 ev:0001 d:000071873478F1E1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http wait request handler +2025/08/20 07:58:27 [debug] 611589#611589: *2 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:0, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: fd:6 1024 of 1024 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: avail:112 +2025/08/20 07:58:27 [debug] 611589#611589: *2 reusable connection: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 posix_memalign: 0000576823AE8A30:4096 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http process request line +2025/08/20 07:58:27 [debug] 611589#611589: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http uri: "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http args: "" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http exten: "" +2025/08/20 07:58:27 [debug] 611589#611589: *2 posix_memalign: 0000576823ADEDA0:4096 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http process request header line +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Host: localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Accept: */*" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJiNjQ2ZjkwMjE4MWQ3YTQwMmQ1Y2E4YmJiN2E1YmE3NWQ1OWVlYmQwZTJkZmExZmQyM2E3Mjc1ZDY3Nzk0NTgyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTExMDcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJlY2MxMTZlNWEwNjA2NmY0NWI2MjgzYTNmMjI5NTBmZTdhYjVkYzQ3NmM5ZmI1OTQyNzQyYzk0MzNiYjJhYmM3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDcwNiJdXSwiY29udGVudCI6IiIsInNpZyI6IjY3OTk1NTY3ZDdlMWM5YzQ0YWY4Yjg4ZGM2Y2RmYjBkNTQyOTBiY2UzZDc5ZjJhODNlNzc0MThlMzJlMWVhN2Q0M2ZmZTE1YjRhYTA5YjVjN2MyMTRjNjBjMDQxY2IwZjkwNjg0MmQyOWZkZDYzODYyYmFhOTE3YzQzZWEwNjJlIn0=" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Content-Type: text/plain" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755691106.txt"" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header: "Content-Length: 296" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http header done +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer del: 6: 257900310 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 rewrite phase: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: "/health" +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 07:58:27 [debug] 611589#611589: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 07:58:27 [debug] 611589#611589: *2 using configuration "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http cl:296 max:104857600 +2025/08/20 07:58:27 [debug] 611589#611589: *2 rewrite phase: 3 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "PUT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script regex: "^(PUT)$" +2025/08/20 07:58:27 [notice] 611589#611589: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script if +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script if: false +2025/08/20 07:58:27 [debug] 611589#611589: *2 post rewrite phase: 4 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 5 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 6 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 7 +2025/08/20 07:58:27 [debug] 611589#611589: *2 access phase: 8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 access phase: 9 +2025/08/20 07:58:27 [debug] 611589#611589: *2 access phase: 10 +2025/08/20 07:58:27 [debug] 611589#611589: *2 post access phase: 11 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 12 +2025/08/20 07:58:27 [debug] 611589#611589: *2 generic phase: 13 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http client request body preread 184 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http request body content length filter +2025/08/20 07:58:27 [debug] 611589#611589: *2 http body new buf t:1 f:0 0000576823ACC3E8, pos 0000576823ACC3E8, size: 184 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http read client request body +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:0, avail:112 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: fd:6 112 of 112 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: avail:0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http client request body recv 112 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http body new buf t:1 f:0 0000576823ADF830, pos 0000576823ADF830, size: 112 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http client request body rest 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http init upstream, client timer: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 07:58:27 [debug] 611589#611589: *2 posix_memalign: 0000576823AD3150:4096 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "QUERY_STRING" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REQUEST_METHOD" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "PUT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "CONTENT_TYPE" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "text/plain" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "296" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SCRIPT_NAME" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REQUEST_URI" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "DOCUMENT_URI" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "./blobs" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "HTTP/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "http" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "CGI/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "nginx/" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "1.18.0" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REMOTE_ADDR" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "127.0.0.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REMOTE_PORT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "34426" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REMOTE_PORT: 34426" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SERVER_ADDR" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "127.0.0.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SERVER_PORT" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SERVER_NAME" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "localhost" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "200" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script var: "./blobs" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJiNjQ2ZjkwMjE4MWQ3YTQwMmQ1Y2E4YmJiN2E1YmE3NWQ1OWVlYmQwZTJkZmExZmQyM2E3Mjc1ZDY3Nzk0NTgyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTExMDcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJlY2MxMTZlNWEwNjA2NmY0NWI2MjgzYTNmMjI5NTBmZTdhYjVkYzQ3NmM5ZmI1OTQyNzQyYzk0MzNiYjJhYmM3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDcwNiJdXSwiY29udGVudCI6IiIsInNpZyI6IjY3OTk1NTY3ZDdlMWM5YzQ0YWY4Yjg4ZGM2Y2RmYjBkNTQyOTBiY2UzZDc5ZjJhODNlNzc0MThlMzJlMWVhN2Q0M2ZmZTE1YjRhYTA5YjVjN2MyMTRjNjBjMDQxY2IwZjkwNjg0MmQyOWZkZDYzODYyYmFhOTE3YzQzZWEwNjJlIn0=" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755691106.txt"" +2025/08/20 07:58:27 [debug] 611589#611589: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http cleanup add: 0000576823ADFB80 +2025/08/20 07:58:27 [debug] 611589#611589: *2 get rr peer, try: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 stream socket 10 +2025/08/20 07:58:27 [debug] 611589#611589: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 07:58:27 [debug] 611589#611589: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 07:58:27 [debug] 611589#611589: *2 connected +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream connect: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 posix_memalign: 0000576823AB2F20:128 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream send request +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream send request body +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer buf fl:0 s:1304 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer buf fl:0 s:184 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer buf fl:0 s:8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer buf fl:0 s:112 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer buf fl:0 s:8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer in: 0000576823ADFC10 +2025/08/20 07:58:27 [debug] 611589#611589: *2 writev: 1616 of 1616 +2025/08/20 07:58:27 [debug] 611589#611589: *2 chain writer out: 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer add: 10: 60000:257900310 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http request count:2 blk:0 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 0 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 60000 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:6 ev:0004 d:000071873478F1E1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http run request: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream check client, write event:1, "/upload" +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:10 ev:0004 d:000071873478F2C8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream request: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream dummy handler +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 2 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 59998 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:10 ev:0005 d:000071873478F2C8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream request: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream process header +2025/08/20 07:58:27 [debug] 611589#611589: *2 malloc: 0000576823AD4160:4096 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:0, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: fd:10 1536 of 4096 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +DEBUG: handle_upload_request called +LOG: [2025-08-20 07:58:27] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJiNjQ2ZjkwMjE4MWQ3YTQwMmQ1Y2E4YmJiN2E1YmE3NWQ1OWVlYmQwZTJkZmExZmQyM2E3Mjc1ZDY3Nzk0NTgyIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "NTU2OTExMDcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJlY2MxMTZlNWEwNjA2NmY0NWI2MjgzYTNmMjI5NTBmZTdhYjVkYzQ3NmM5ZmI1OTQyNzQyYzk0MzNiYjJhYmM3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5NDcwNiJdXSwiY29udGVudCI6IiIsInNpZyI6IjY3OTk1NTY3ZDdlMWM5YzQ0YWY4Yjg4ZGM2Y2RmYjBkNTQyOTBiY2UzZDc5ZjJhODNlNzc0MThlMzJlMWVhN2Q0M2ZmZTE1YjRhYTA5YjVjN2MyMTRjNjBjMDQxY2IwZjkwNjg0MmQyOWZkZDYzODYyYmFhOTE3YzQzZWEwNjJlIn0= +LOG: [2025-08-20 07:58:27] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-LAAN: DATA TO HAS" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "H: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T07:58:26-04:00 +Random data: c1ea3e4159f9996079d446601a2948818623399f073bfebcedac5086091db7cb +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7 +══════════════════════════════════" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:0, avail:0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream request: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream dummy handler +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 0 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 59998 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:10 ev:2005 d:000071873478F2C8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream request: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream process header +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:1, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: fd:10 3704 of 4096 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJiNjQ2ZjkwMjE4MWQ3... +DEBUG: Extracted base64" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"b646f902181d7a402d5ca8bbb7a5ba75d59eebd0e2dfa1fd23a7275d67794582","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755691107,"tags":[["t","upload"],["x","ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433b" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "b2abc7"],["expiration","1755694706"]],"content":"","sig":"67995567d7e1c9c44af8b88dc6cdfb0d54290bce3d79f2a83e77418e32e1ea7d43ffe15b4aa09b5c7c214c60c041cb0f906842d29fdd63862baa917c43ea062e"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "b646f902181d7a402d5ca8bbb7a5ba75d59eebd0e2dfa1fd23a7275d67794582", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755691107, + "tags": [["t", "upload"], ["x", "ecc116" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7"], ["expiration", "1755694706"]], + "content": "", + "sig": "67995567d7e1c9c44af8b88dc6cdfb0d54290bce3d79f2a83e77418e32e1ea7d43ffe15b4aa09b5c7c214c60c041cb0f906842d29fdd63862baa917c43ea062e" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: b646f902181d7a402d5ca8bbb7a5ba75d59eebd0e2dfa1fd23a7275d67794582 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 67995567" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "d7e1c9c44af8b88dc6cdfb0d54290bce3d79f2a83e77418e32e1ea7d43ffe15b4aa09b5c7c214c60c041cb0f906842d29fdd63862baa917c43ea062e +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755691107 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-valid" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: F8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 504 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "ation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Str" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 7A +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 06 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 378 +2025/08/20 07:58:27 [error] 611589#611589: *2 FastCGI sent in stderr: "ucture validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: LOG: [2025-08-20 07:58:27] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 07 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 06 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: C7 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 199 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi parser: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi parser: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi parser: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi header done +2025/08/20 07:58:27 [debug] 611589#611589: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:58:27 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 07:58:27 [debug] 611589#611589: *2 write new buf t:1 f:0 0000576823AD3808, pos 0000576823AD3808, size: 181 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http write filter: l:0 f:0 s:181 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http cacheable: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream process upstream +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe read upstream: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe preread: 164 +2025/08/20 07:58:27 [debug] 611589#611589: *2 readv: eof:1, avail:0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 readv: 1, last:392 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe recv chain: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe buf free s:0 t:1 f:0 0000576823AD4160, pos 0000576823AD4F34, size: 164 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe length: -1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 input buf #0 0000576823AD4F34 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 06 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi closed stdout +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 03 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 01 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 08 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record byte: 00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi record length: 8 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http fastcgi sent end request +2025/08/20 07:58:27 [debug] 611589#611589: *2 input buf 0000576823AD4F34 139 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe write downstream: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe write downstream flush in +2025/08/20 07:58:27 [debug] 611589#611589: *2 http output filter "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http copy filter: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http postpone filter "/upload?" 0000576823ADFBE0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http chunk: 139 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write old buf t:1 f:0 0000576823AD3808, pos 0000576823AD3808, size: 181 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write new buf t:1 f:0 0000576823ADFD78, pos 0000576823ADFD78, size: 4 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write new buf t:1 f:0 0000576823AD4160, pos 0000576823AD4F34, size: 139 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write new buf t:0 f:0 0000000000000000, pos 00005767E40412E8, size: 2 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http write filter: l:0 f:0 s:326 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http copy filter: 0 "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 pipe write downstream done +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer: 10, old: 257900310, new: 257900313 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream exit: 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *2 finalize http upstream request: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 finalize http fastcgi request +2025/08/20 07:58:27 [debug] 611589#611589: *2 free rr peer 1 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 close http upstream connection: 10 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823AB2F20, unused: 48 +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer del: 10: 257900310 +2025/08/20 07:58:27 [debug] 611589#611589: *2 reusable connection: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http upstream temp fd: -1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http output filter "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http copy filter: "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http postpone filter "/upload?" 00007FFDAA910F00 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http chunk: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write old buf t:1 f:0 0000576823AD3808, pos 0000576823AD3808, size: 181 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write old buf t:1 f:0 0000576823ADFD78, pos 0000576823ADFD78, size: 4 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write old buf t:1 f:0 0000576823AD4160, pos 0000576823AD4F34, size: 139 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write old buf t:0 f:0 0000000000000000, pos 00005767E40412E8, size: 2 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 write new buf t:0 f:0 0000000000000000, pos 00005767E40412E5, size: 5 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http write filter: l:1 f:0 s:331 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http write filter limit 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 writev: 331 of 331 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http write filter 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http copy filter: 0 "/upload?" +2025/08/20 07:58:27 [debug] 611589#611589: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 set http keepalive handler +2025/08/20 07:58:27 [debug] 611589#611589: *2 http close request +2025/08/20 07:58:27 [debug] 611589#611589: *2 http log handler +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823AD4160 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823AE8A30, unused: 3 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823ADEDA0, unused: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823AD3150, unused: 1250 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823ACC0A0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 hc free: 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *2 hc busy: 0000000000000000 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 tcp_nodelay +2025/08/20 07:58:27 [debug] 611589#611589: *2 reusable connection: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer add: 6: 65000:257905313 +2025/08/20 07:58:27 [debug] 611589#611589: *2 post event 0000576823B1A770 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 1 +2025/08/20 07:58:27 [debug] 611589#611589: posted event 0000576823B1A770 +2025/08/20 07:58:27 [debug] 611589#611589: *2 delete posted event 0000576823B1A770 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http keepalive handler +2025/08/20 07:58:27 [debug] 611589#611589: *2 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:0, avail:0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823ACC0A0 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 65000 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:6 ev:2005 d:000071873478F1E1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 http keepalive handler +2025/08/20 07:58:27 [debug] 611589#611589: *2 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: eof:1, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *2 recv: fd:6 0 of 1024 +2025/08/20 07:58:27 [info] 611589#611589: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 07:58:27 [debug] 611589#611589: *2 close http connection: 6 +2025/08/20 07:58:27 [debug] 611589#611589: *2 event timer del: 6: 257905313 +2025/08/20 07:58:27 [debug] 611589#611589: *2 reusable connection: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823ACC0A0 +2025/08/20 07:58:27 [debug] 611589#611589: *2 free: 0000576823AC9840, unused: 120 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 2 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: -1 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:5 ev:0001 d:000071873478F010 +2025/08/20 07:58:27 [debug] 611589#611589: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 07:58:27 [debug] 611589#611589: posix_memalign: 0000576823AC9840:512 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *4 accept: 127.0.0.1:34442 fd:6 +2025/08/20 07:58:27 [debug] 611589#611589: *4 event timer add: 6: 60000:257900327 +2025/08/20 07:58:27 [debug] 611589#611589: *4 reusable connection: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 12 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 60000 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:6 ev:0001 d:000071873478F1E0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http wait request handler +2025/08/20 07:58:27 [debug] 611589#611589: *4 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:27 [debug] 611589#611589: *4 recv: eof:0, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 recv: fd:6 142 of 1024 +2025/08/20 07:58:27 [debug] 611589#611589: *4 reusable connection: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 posix_memalign: 0000576823AE8A30:4096 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http process request line +2025/08/20 07:58:27 [debug] 611589#611589: *4 http request line: "GET /ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7 HTTP/1.1" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http uri: "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http args: "" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http exten: "" +2025/08/20 07:58:27 [debug] 611589#611589: *4 posix_memalign: 0000576823ADEDA0:4096 @16 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http process request header line +2025/08/20 07:58:27 [debug] 611589#611589: *4 http header: "Host: localhost:9001" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http header: "Accept: */*" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http header done +2025/08/20 07:58:27 [debug] 611589#611589: *4 event timer del: 6: 257900327 +2025/08/20 07:58:27 [debug] 611589#611589: *4 generic phase: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 rewrite phase: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 test location: "/health" +2025/08/20 07:58:27 [debug] 611589#611589: *4 test location: "/debug/list" +2025/08/20 07:58:27 [debug] 611589#611589: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 07:58:27 [debug] 611589#611589: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http cl:-1 max:104857600 +2025/08/20 07:58:27 [debug] 611589#611589: *4 rewrite phase: 3 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http script var +2025/08/20 07:58:27 [debug] 611589#611589: *4 http script var: "GET" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http script value: "DELETE" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http script not equal +2025/08/20 07:58:27 [debug] 611589#611589: *4 http script if +2025/08/20 07:58:27 [debug] 611589#611589: *4 http finalize request: 404, "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" a:1, c:1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http special response: 404, "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http set discard body +2025/08/20 07:58:27 [debug] 611589#611589: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 11:58:27 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 07:58:27 [debug] 611589#611589: *4 write new buf t:1 f:0 0000576823ADF180, pos 0000576823ADF180, size: 164 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http write filter: l:0 f:0 s:164 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http output filter "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http copy filter: "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http postpone filter "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" 0000576823ADF310 +2025/08/20 07:58:27 [debug] 611589#611589: *4 write old buf t:1 f:0 0000576823ADF180, pos 0000576823ADF180, size: 164 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 write new buf t:0 f:0 0000000000000000, pos 00005767E4080580, size: 100 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 write new buf t:0 f:0 0000000000000000, pos 00005767E4080C80, size: 62 file: 0, size: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http write filter: l:1 f:0 s:326 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http write filter limit 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 writev: 326 of 326 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http write filter 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http copy filter: 0 "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" +2025/08/20 07:58:27 [debug] 611589#611589: *4 http finalize request: 0, "/ecc116e5a06066f45b6283a3f22950fe7ab5dc476c9fb5942742c9433bb2abc7?" a:1, c:1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 set http keepalive handler +2025/08/20 07:58:27 [debug] 611589#611589: *4 http close request +2025/08/20 07:58:27 [debug] 611589#611589: *4 http log handler +2025/08/20 07:58:27 [debug] 611589#611589: *4 free: 0000576823AE8A30, unused: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 free: 0000576823ADEDA0, unused: 2456 +2025/08/20 07:58:27 [debug] 611589#611589: *4 free: 0000576823ACC0A0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 hc free: 0000000000000000 +2025/08/20 07:58:27 [debug] 611589#611589: *4 hc busy: 0000000000000000 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 tcp_nodelay +2025/08/20 07:58:27 [debug] 611589#611589: *4 reusable connection: 1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 event timer add: 6: 65000:257905327 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 0 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: 65000 +2025/08/20 07:58:27 [debug] 611589#611589: epoll: fd:6 ev:2001 d:000071873478F1E0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 http keepalive handler +2025/08/20 07:58:27 [debug] 611589#611589: *4 malloc: 0000576823ACC0A0:1024 +2025/08/20 07:58:27 [debug] 611589#611589: *4 recv: eof:1, avail:-1 +2025/08/20 07:58:27 [debug] 611589#611589: *4 recv: fd:6 0 of 1024 +2025/08/20 07:58:27 [info] 611589#611589: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 07:58:27 [debug] 611589#611589: *4 close http connection: 6 +2025/08/20 07:58:27 [debug] 611589#611589: *4 event timer del: 6: 257905327 +2025/08/20 07:58:27 [debug] 611589#611589: *4 reusable connection: 0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 free: 0000576823ACC0A0 +2025/08/20 07:58:27 [debug] 611589#611589: *4 free: 0000576823AC9840, unused: 136 +2025/08/20 07:58:27 [debug] 611589#611589: timer delta: 1 +2025/08/20 07:58:27 [debug] 611589#611589: worker cycle +2025/08/20 07:58:27 [debug] 611589#611589: epoll timer: -1 +2025/08/20 09:03:49 [notice] 611588#611588: signal 15 (SIGTERM) received from 620856, exiting +2025/08/20 09:03:49 [debug] 611588#611588: wake up, sigio 0 +2025/08/20 09:03:49 [debug] 611588#611588: child: 0 611589 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:03:49 [debug] 611588#611588: termination cycle: 50 +2025/08/20 09:03:49 [debug] 611589#611589: epoll: fd:7 ev:0001 d:000071873478F0F8 +2025/08/20 09:03:49 [debug] 611588#611588: sigsuspend +2025/08/20 09:03:49 [debug] 611589#611589: channel handler +2025/08/20 09:03:49 [debug] 611589#611589: channel: 32 +2025/08/20 09:03:49 [debug] 611589#611589: channel command: 4 +2025/08/20 09:03:49 [debug] 611589#611589: channel: -2 +2025/08/20 09:03:49 [debug] 611589#611589: timer delta: 3921920 +2025/08/20 09:03:49 [notice] 611589#611589: exiting +2025/08/20 09:03:49 [debug] 611589#611589: flush files +2025/08/20 09:03:49 [debug] 611589#611589: run cleanup: 0000576823B17A80 +2025/08/20 09:03:49 [debug] 611589#611589: run cleanup: 0000576823B0AA18 +2025/08/20 09:03:49 [debug] 611589#611589: cleanup resolver +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B18DE0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B0BBE0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AEAB50 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE9A40 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE3A10 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE2950 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE1890 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE07D0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AD8170 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823ACF140, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AD9580, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AE4A20, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AEBB60, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AEFB70, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AF3B80, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AF7B90, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AFBBA0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823AFFBB0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B03BC0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B07BD0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B0CDB0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B10DC0, unused: 0 +2025/08/20 09:03:49 [debug] 611589#611589: free: 0000576823B14DD0, unused: 4920 +2025/08/20 09:03:49 [notice] 611589#611589: exit +2025/08/20 09:03:49 [notice] 611588#611588: signal 17 (SIGCHLD) received from 611589 +2025/08/20 09:03:49 [notice] 611588#611588: worker process 611589 exited with code 0 +2025/08/20 09:03:49 [debug] 611588#611588: shmtx forced unlock +2025/08/20 09:03:49 [debug] 611588#611588: wake up, sigio 3 +2025/08/20 09:03:49 [debug] 611588#611588: reap children +2025/08/20 09:03:49 [debug] 611588#611588: child: 0 611589 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:03:49 [notice] 611588#611588: exit +2025/08/20 09:03:49 [debug] 611588#611588: close listening 0.0.0.0:9001 #5 +2025/08/20 09:03:49 [debug] 611588#611588: run cleanup: 0000576823B0AA18 +2025/08/20 09:03:49 [debug] 611588#611588: cleanup resolver +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B18DE0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B0BBE0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AEAB50 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE9A40 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE3A10 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE2950 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE1890 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE07D0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AD8170 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823ACF140, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AD9580, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AE4A20, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AEBB60, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AEFB70, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AF3B80, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AF7B90, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AFBBA0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823AFFBB0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B03BC0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B07BD0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B0CDB0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B10DC0, unused: 0 +2025/08/20 09:03:49 [debug] 611588#611588: free: 0000576823B14DD0, unused: 4951 +2025/08/20 09:03:52 [debug] 620890#620890: bind() 0.0.0.0:9001 #5 +2025/08/20 09:03:52 [debug] 620890#620890: counter: 000071744BE47080, 1 +2025/08/20 09:03:52 [debug] 620891#620891: bind() 0.0.0.0:9001 #5 +2025/08/20 09:03:52 [notice] 620891#620891: using the "epoll" event method +2025/08/20 09:03:52 [debug] 620891#620891: counter: 00007580042B8080, 1 +2025/08/20 09:03:52 [notice] 620891#620891: nginx/1.18.0 (Ubuntu) +2025/08/20 09:03:52 [notice] 620891#620891: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:03:52 [notice] 620891#620891: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:03:52 [debug] 620892#620891: write: 6, 00007FFE76083CE0, 7, 0 +2025/08/20 09:03:52 [debug] 620892#620892: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:03:52 [notice] 620892#620892: start worker processes +2025/08/20 09:03:52 [debug] 620892#620892: channel 6:7 +2025/08/20 09:03:52 [notice] 620892#620892: start worker process 620893 +2025/08/20 09:03:52 [debug] 620892#620892: sigsuspend +2025/08/20 09:03:52 [debug] 620893#620893: add cleanup: 00005FEA6773DA80 +2025/08/20 09:03:52 [debug] 620893#620893: malloc: 00005FEA676F0BD0:8 +2025/08/20 09:03:52 [debug] 620893#620893: notify eventfd: 9 +2025/08/20 09:03:52 [debug] 620893#620893: testing the EPOLLRDHUP flag: success +2025/08/20 09:03:52 [debug] 620893#620893: malloc: 00005FEA67703590:6144 +2025/08/20 09:03:52 [debug] 620893#620893: malloc: 00007580040B0010:237568 +2025/08/20 09:03:52 [debug] 620893#620893: malloc: 00005FEA677406B0:98304 +2025/08/20 09:03:52 [debug] 620893#620893: malloc: 00005FEA677586C0:98304 +2025/08/20 09:03:52 [debug] 620893#620893: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:03:52 [debug] 620893#620893: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:03:52 [debug] 620893#620893: setproctitle: "nginx: worker process" +2025/08/20 09:03:52 [debug] 620893#620893: worker cycle +2025/08/20 09:03:52 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:04:29 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:04:29 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *1 accept: 127.0.0.1:51212 fd:6 +2025/08/20 09:04:29 [debug] 620893#620893: *1 event timer add: 6: 60000:261862670 +2025/08/20 09:04:29 [debug] 620893#620893: *1 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 37194 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http wait request handler +2025/08/20 09:04:29 [debug] 620893#620893: *1 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *1 recv: eof:0, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 recv: fd:6 84 of 1024 +2025/08/20 09:04:29 [debug] 620893#620893: *1 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http process request line +2025/08/20 09:04:29 [debug] 620893#620893: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http uri: "/health" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http args: "" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http exten: "" +2025/08/20 09:04:29 [debug] 620893#620893: *1 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http process request header line +2025/08/20 09:04:29 [debug] 620893#620893: *1 http header: "Host: localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http header: "Accept: */*" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http header done +2025/08/20 09:04:29 [debug] 620893#620893: *1 event timer del: 6: 261862670 +2025/08/20 09:04:29 [debug] 620893#620893: *1 generic phase: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 rewrite phase: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 test location: "/health" +2025/08/20 09:04:29 [debug] 620893#620893: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:04:29 [debug] 620893#620893: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *1 using configuration "/health" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http cl:-1 max:104857600 +2025/08/20 09:04:29 [debug] 620893#620893: *1 rewrite phase: 3 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http set discard body +2025/08/20 09:04:29 [debug] 620893#620893: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:04:29 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:04:29 [debug] 620893#620893: *1 write new buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 196 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http write filter: l:0 f:0 s:196 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http output filter "/health?" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http copy filter: "/health?" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http postpone filter "/health?" 00007FFE76083870 +2025/08/20 09:04:29 [debug] 620893#620893: *1 write old buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 196 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 write new buf t:0 f:0 0000000000000000, pos 00005FEA6772CB42, size: 3 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http write filter: l:1 f:0 s:199 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http write filter limit 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 writev: 199 of 199 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http write filter 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http copy filter: 0 "/health?" +2025/08/20 09:04:29 [debug] 620893#620893: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 set http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *1 http close request +2025/08/20 09:04:29 [debug] 620893#620893: *1 http log handler +2025/08/20 09:04:29 [debug] 620893#620893: *1 free: 00005FEA6770EA30, unused: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 free: 00005FEA67704DA0, unused: 2736 +2025/08/20 09:04:29 [debug] 620893#620893: *1 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 hc free: 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *1 hc busy: 0000000000000000 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 tcp_nodelay +2025/08/20 09:04:29 [debug] 620893#620893: *1 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 event timer add: 6: 65000:261867670 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:2001 d:00007580040B01E0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *1 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *1 recv: eof:1, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *1 recv: fd:6 0 of 1024 +2025/08/20 09:04:29 [info] 620893#620893: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:04:29 [debug] 620893#620893: *1 close http connection: 6 +2025/08/20 09:04:29 [debug] 620893#620893: *1 event timer del: 6: 261867670 +2025/08/20 09:04:29 [debug] 620893#620893: *1 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *1 free: 00005FEA676EF840, unused: 136 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:04:29 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:04:29 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *2 accept: 127.0.0.1:51228 fd:6 +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer add: 6: 60000:261863026 +2025/08/20 09:04:29 [debug] 620893#620893: *2 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 355 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http wait request handler +2025/08/20 09:04:29 [debug] 620893#620893: *2 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:0, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: fd:6 1024 of 1024 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: avail:112 +2025/08/20 09:04:29 [debug] 620893#620893: *2 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http process request line +2025/08/20 09:04:29 [debug] 620893#620893: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http uri: "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http args: "" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http exten: "" +2025/08/20 09:04:29 [debug] 620893#620893: *2 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http process request header line +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Host: localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Accept: */*" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI3YTc5YTg4MzU1NDAwYjBlOWU1OTE4YTQ5Mjc1YTBhZjljOGViZGRhNTA3ZGVhMjRmYjIzMGVhZTUwNzI1ZDRmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUwNjksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1Y2RhM2Q5NzQ1YzYxZDkxODI4ZmRmYzJjZjZiNDFjYmM1ODUxZTBjYzk1MTM2NmM1ZDc5OTNlOGNlMzA3M2FhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODY2OSJdXSwiY29udGVudCI6IiIsInNpZyI6IjU3OGM2MWVjOTkzMGNkZmUyZWJhYWU5N2Y0NWRlZDFhYzJlYmRiY2RhZjlmNzM2NDliYTRlYWVlZTJmYTc4MGRiZWM2YmE3ZmFjMGZhMTUyNTQ4MmYyMjA1OTE2MWU1OGVhYjA4ODc2MTE3YWViODc3YmU3MGNjYTU5Njc5NDFhIn0=" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Content-Type: text/plain" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755695069.txt"" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header: "Content-Length: 296" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http header done +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer del: 6: 261863026 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 rewrite phase: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: "/health" +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *2 using configuration "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http cl:296 max:104857600 +2025/08/20 09:04:29 [debug] 620893#620893: *2 rewrite phase: 3 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "PUT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script regex: "^(PUT)$" +2025/08/20 09:04:29 [notice] 620893#620893: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script if +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script if: false +2025/08/20 09:04:29 [debug] 620893#620893: *2 post rewrite phase: 4 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 5 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 6 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 7 +2025/08/20 09:04:29 [debug] 620893#620893: *2 access phase: 8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 access phase: 9 +2025/08/20 09:04:29 [debug] 620893#620893: *2 access phase: 10 +2025/08/20 09:04:29 [debug] 620893#620893: *2 post access phase: 11 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 12 +2025/08/20 09:04:29 [debug] 620893#620893: *2 generic phase: 13 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http client request body preread 184 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http request body content length filter +2025/08/20 09:04:29 [debug] 620893#620893: *2 http body new buf t:1 f:0 00005FEA676F23E8, pos 00005FEA676F23E8, size: 184 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http read client request body +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:0, avail:112 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: fd:6 112 of 112 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: avail:0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http client request body recv 112 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http body new buf t:1 f:0 00005FEA67705830, pos 00005FEA67705830, size: 112 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http client request body rest 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http init upstream, client timer: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:04:29 [debug] 620893#620893: *2 posix_memalign: 00005FEA676F9150:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "QUERY_STRING" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REQUEST_METHOD" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "PUT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "CONTENT_TYPE" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "text/plain" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "296" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SCRIPT_NAME" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REQUEST_URI" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "DOCUMENT_URI" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "./blobs" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "HTTP/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "http" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "CGI/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "nginx/" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "1.18.0" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REMOTE_ADDR" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "127.0.0.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REMOTE_PORT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "51228" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REMOTE_PORT: 51228" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SERVER_ADDR" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "127.0.0.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SERVER_PORT" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SERVER_NAME" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "localhost" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "200" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script var: "./blobs" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI3YTc5YTg4MzU1NDAwYjBlOWU1OTE4YTQ5Mjc1YTBhZjljOGViZGRhNTA3ZGVhMjRmYjIzMGVhZTUwNzI1ZDRmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUwNjksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1Y2RhM2Q5NzQ1YzYxZDkxODI4ZmRmYzJjZjZiNDFjYmM1ODUxZTBjYzk1MTM2NmM1ZDc5OTNlOGNlMzA3M2FhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODY2OSJdXSwiY29udGVudCI6IiIsInNpZyI6IjU3OGM2MWVjOTkzMGNkZmUyZWJhYWU5N2Y0NWRlZDFhYzJlYmRiY2RhZjlmNzM2NDliYTRlYWVlZTJmYTc4MGRiZWM2YmE3ZmFjMGZhMTUyNTQ4MmYyMjA1OTE2MWU1OGVhYjA4ODc2MTE3YWViODc3YmU3MGNjYTU5Njc5NDFhIn0=" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755695069.txt"" +2025/08/20 09:04:29 [debug] 620893#620893: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http cleanup add: 00005FEA67705B80 +2025/08/20 09:04:29 [debug] 620893#620893: *2 get rr peer, try: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 stream socket 10 +2025/08/20 09:04:29 [debug] 620893#620893: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:04:29 [debug] 620893#620893: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 09:04:29 [debug] 620893#620893: *2 connected +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream connect: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 posix_memalign: 00005FEA676D8F20:128 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream send request +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream send request body +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer buf fl:0 s:1304 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer buf fl:0 s:184 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer buf fl:0 s:8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer buf fl:0 s:112 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer buf fl:0 s:8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer in: 00005FEA67705C10 +2025/08/20 09:04:29 [debug] 620893#620893: *2 writev: 1616 of 1616 +2025/08/20 09:04:29 [debug] 620893#620893: *2 chain writer out: 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer add: 10: 60000:261863026 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http request count:2 blk:0 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:0004 d:00007580040B01E1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http run request: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream check client, write event:1, "/upload" +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:10 ev:0004 d:00007580040B02C8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream request: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream dummy handler +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 2 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:10 ev:0005 d:00007580040B02C8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream request: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream process header +2025/08/20 09:04:29 [debug] 620893#620893: *2 malloc: 00005FEA676FA160:4096 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:0, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: fd:10 2048 of 4096 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:04:29] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI3YTc5YTg4MzU1NDAwYjBlOWU1OTE4YTQ5Mjc1YTBhZjljOGViZGRhNTA3ZGVhMjRmYjIzMGVhZTUwNzI1ZDRmIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUwNjksInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI1Y2RhM2Q5NzQ1YzYxZDkxODI4ZmRmYzJjZjZiNDFjYmM1ODUxZTBjYzk1MTM2NmM1ZDc5OTNlOGNlMzA3M2FhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODY2OSJdXSwiY29udGVudCI6IiIsInNpZyI6IjU3OGM2MWVjOTkzMGNkZmUyZWJhYWU5N2Y0NWRlZDFhYzJlYmRiY2RhZjlmNzM2NDliYTRlYWVlZTJmYTc4MGRiZWM2YmE3ZmFjMGZhMTUyNTQ4MmYyMjA1OTE2MWU1OGVhYjA4ODc2MTE3YWViODc3YmU3MGNjYTU5Njc5NDFhIn0= +LOG: [2025-08-20 09:04:29] PUT /upload - Auth: auth_provided - Status: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: " +DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:04:29-04:00 +Random data: 853869ec9a7eea8cb6d544528eecbe766b37d430dc4a049917e7078830fed9dc +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: 5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa +AUTH: About to perform authentication - auth_header p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "resent: YES +AUTH: Calling authenticate_request with hash: 5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 5cda3d9745c61d91828fdfc2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:0, avail:0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream request: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream dummy handler +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:10 ev:2005 d:00007580040B02C8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream request: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream process header +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:1, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: fd:10 3464 of 4096 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "cf6b41cbc5851e0cc951366c5d7993e8ce3073aa +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI3YTc5YTg4MzU1NDAw... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"7a79a88355400b0e9e5918a49" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "275a0af9c8ebdda507dea24fb230eae50725d4f","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695069,"tags":[["t","upload"],["x","5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa"],["expiration","1755698669"]],"content":"","sig":"578c61ec9930cdfe2ebaae97f45ded1ac2ebdbcdaf9f73649ba4eaeee2fa780dbec6ba7fac0fa1525482f22059161e58eab08876117aeb877be70cca5967941a"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": " while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "24242, + "id": "7a79a88355400b0e9e5918a49275a0af9c8ebdda507dea24fb230eae50725d4f", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695069, + "tags": [["t", "upload"], ["x", "5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa"], ["expiration", "1755698669"]], + "content": "", + "sig": "578c61ec9930cdfe2ebaae97f45ded1ac2ebdbcdaf9f73649ba4eaeee2fa780dbec6ba7fac0fa1525482f22059161e58eab08876117aeb877be70cca5967941a" +} +🔍 STEP SERVER-4: Event" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "fields before validation +ℹ️ INFO: id: 7a79a88355400b0e9e5918a49275a0af9c8ebdda507dea24fb230eae50725d4f +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 578c61ec9930cdfe2ebaae97f45ded1ac2ebdbcdaf9f73649ba4eaeee2fa780dbec6ba7fac0fa1525482f22059161e58eab08876117aeb877be70cca5967941a +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695069 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character val" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: F8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 504 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "idation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 90 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 144 +2025/08/20 09:04:29 [error] 620893#620893: *2 FastCGI sent in stderr: "d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:04:29] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 07 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 06 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: C7 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 199 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi parser: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi parser: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi parser: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi header done +2025/08/20 09:04:29 [debug] 620893#620893: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:04:29 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:04:29 [debug] 620893#620893: *2 write new buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http write filter: l:0 f:0 s:181 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http cacheable: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream process upstream +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe read upstream: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe preread: 164 +2025/08/20 09:04:29 [debug] 620893#620893: *2 readv: eof:1, avail:0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 readv: 1, last:632 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe recv chain: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe buf free s:0 t:1 f:0 00005FEA676FA160, pos 00005FEA676FAE44, size: 164 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe length: -1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 input buf #0 00005FEA676FAE44 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 06 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi closed stdout +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 03 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 01 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 08 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record byte: 00 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi record length: 8 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http fastcgi sent end request +2025/08/20 09:04:29 [debug] 620893#620893: *2 input buf 00005FEA676FAE44 139 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe write downstream: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe write downstream flush in +2025/08/20 09:04:29 [debug] 620893#620893: *2 http output filter "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http copy filter: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http postpone filter "/upload?" 00005FEA67705BE0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http chunk: 139 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write old buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write new buf t:1 f:0 00005FEA67705D78, pos 00005FEA67705D78, size: 4 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write new buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FAE44, size: 139 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http write filter: l:0 f:0 s:326 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http copy filter: 0 "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 pipe write downstream done +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer: 10, old: 261863026, new: 261863028 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream exit: 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *2 finalize http upstream request: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 finalize http fastcgi request +2025/08/20 09:04:29 [debug] 620893#620893: *2 free rr peer 1 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 close http upstream connection: 10 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676D8F20, unused: 48 +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer del: 10: 261863026 +2025/08/20 09:04:29 [debug] 620893#620893: *2 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http upstream temp fd: -1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http output filter "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http copy filter: "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http postpone filter "/upload?" 00007FFE76083920 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http chunk: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write old buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write old buf t:1 f:0 00005FEA67705D78, pos 00005FEA67705D78, size: 4 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write old buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FAE44, size: 139 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write old buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E5, size: 5 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http write filter: l:1 f:0 s:331 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http write filter limit 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 writev: 331 of 331 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http write filter 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http copy filter: 0 "/upload?" +2025/08/20 09:04:29 [debug] 620893#620893: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 set http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *2 http close request +2025/08/20 09:04:29 [debug] 620893#620893: *2 http log handler +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676FA160 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA6770EA30, unused: 3 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA67704DA0, unused: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676F9150, unused: 1250 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 hc free: 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *2 hc busy: 0000000000000000 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 tcp_nodelay +2025/08/20 09:04:29 [debug] 620893#620893: *2 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer add: 6: 65000:261868028 +2025/08/20 09:04:29 [debug] 620893#620893: *2 post event 00005FEA67740770 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:04:29 [debug] 620893#620893: posted event 00005FEA67740770 +2025/08/20 09:04:29 [debug] 620893#620893: *2 delete posted event 00005FEA67740770 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *2 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:0, avail:0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:2005 d:00007580040B01E1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *2 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: eof:1, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *2 recv: fd:6 0 of 1024 +2025/08/20 09:04:29 [info] 620893#620893: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 09:04:29 [debug] 620893#620893: *2 close http connection: 6 +2025/08/20 09:04:29 [debug] 620893#620893: *2 event timer del: 6: 261868028 +2025/08/20 09:04:29 [debug] 620893#620893: *2 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *2 free: 00005FEA676EF840, unused: 120 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 3 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:04:29 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:04:29 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *4 accept: 127.0.0.1:51230 fd:6 +2025/08/20 09:04:29 [debug] 620893#620893: *4 event timer add: 6: 60000:261863042 +2025/08/20 09:04:29 [debug] 620893#620893: *4 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 11 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http wait request handler +2025/08/20 09:04:29 [debug] 620893#620893: *4 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *4 recv: eof:0, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 recv: fd:6 142 of 1024 +2025/08/20 09:04:29 [debug] 620893#620893: *4 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http process request line +2025/08/20 09:04:29 [debug] 620893#620893: *4 http request line: "GET /5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa HTTP/1.1" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http uri: "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http args: "" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http exten: "" +2025/08/20 09:04:29 [debug] 620893#620893: *4 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http process request header line +2025/08/20 09:04:29 [debug] 620893#620893: *4 http header: "Host: localhost:9001" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http header: "Accept: */*" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http header done +2025/08/20 09:04:29 [debug] 620893#620893: *4 event timer del: 6: 261863042 +2025/08/20 09:04:29 [debug] 620893#620893: *4 generic phase: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 rewrite phase: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 test location: "/health" +2025/08/20 09:04:29 [debug] 620893#620893: *4 test location: "/debug/list" +2025/08/20 09:04:29 [debug] 620893#620893: *4 test location: "/" +2025/08/20 09:04:29 [debug] 620893#620893: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http cl:-1 max:104857600 +2025/08/20 09:04:29 [debug] 620893#620893: *4 rewrite phase: 3 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http script var +2025/08/20 09:04:29 [debug] 620893#620893: *4 http script var: "GET" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http script value: "DELETE" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http script not equal +2025/08/20 09:04:29 [debug] 620893#620893: *4 http script if +2025/08/20 09:04:29 [debug] 620893#620893: *4 http finalize request: 404, "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" a:1, c:1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http special response: 404, "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http set discard body +2025/08/20 09:04:29 [debug] 620893#620893: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:04:29 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:04:29 [debug] 620893#620893: *4 write new buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 164 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http write filter: l:0 f:0 s:164 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http output filter "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http copy filter: "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http postpone filter "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" 00005FEA67705310 +2025/08/20 09:04:29 [debug] 620893#620893: *4 write old buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 164 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 write new buf t:0 f:0 0000000000000000, pos 00005FEA4FA1A580, size: 100 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 write new buf t:0 f:0 0000000000000000, pos 00005FEA4FA1AC80, size: 62 file: 0, size: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http write filter: l:1 f:0 s:326 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http write filter limit 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 writev: 326 of 326 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http write filter 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http copy filter: 0 "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" +2025/08/20 09:04:29 [debug] 620893#620893: *4 http finalize request: 0, "/5cda3d9745c61d91828fdfc2cf6b41cbc5851e0cc951366c5d7993e8ce3073aa?" a:1, c:1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 set http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *4 http close request +2025/08/20 09:04:29 [debug] 620893#620893: *4 http log handler +2025/08/20 09:04:29 [debug] 620893#620893: *4 free: 00005FEA6770EA30, unused: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 free: 00005FEA67704DA0, unused: 2456 +2025/08/20 09:04:29 [debug] 620893#620893: *4 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 hc free: 0000000000000000 +2025/08/20 09:04:29 [debug] 620893#620893: *4 hc busy: 0000000000000000 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 tcp_nodelay +2025/08/20 09:04:29 [debug] 620893#620893: *4 reusable connection: 1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 event timer add: 6: 65000:261868042 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:04:29 [debug] 620893#620893: epoll: fd:6 ev:2001 d:00007580040B01E0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 http keepalive handler +2025/08/20 09:04:29 [debug] 620893#620893: *4 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:04:29 [debug] 620893#620893: *4 recv: eof:1, avail:-1 +2025/08/20 09:04:29 [debug] 620893#620893: *4 recv: fd:6 0 of 1024 +2025/08/20 09:04:29 [info] 620893#620893: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 09:04:29 [debug] 620893#620893: *4 close http connection: 6 +2025/08/20 09:04:29 [debug] 620893#620893: *4 event timer del: 6: 261868042 +2025/08/20 09:04:29 [debug] 620893#620893: *4 reusable connection: 0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 free: 00005FEA676F20A0 +2025/08/20 09:04:29 [debug] 620893#620893: *4 free: 00005FEA676EF840, unused: 136 +2025/08/20 09:04:29 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:04:29 [debug] 620893#620893: worker cycle +2025/08/20 09:04:29 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:05:13 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:05:13 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:05:13 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:05:13 [debug] 620893#620893: *5 accept: 127.0.0.1:44926 fd:6 +2025/08/20 09:05:13 [debug] 620893#620893: *5 event timer add: 6: 60000:261906878 +2025/08/20 09:05:13 [debug] 620893#620893: *5 reusable connection: 1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:05:13 [debug] 620893#620893: timer delta: 43835 +2025/08/20 09:05:13 [debug] 620893#620893: worker cycle +2025/08/20 09:05:13 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:13 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http wait request handler +2025/08/20 09:05:13 [debug] 620893#620893: *5 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:13 [debug] 620893#620893: *5 recv: eof:0, avail:-1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 recv: fd:6 84 of 1024 +2025/08/20 09:05:13 [debug] 620893#620893: *5 reusable connection: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http process request line +2025/08/20 09:05:13 [debug] 620893#620893: *5 http request line: "GET /health HTTP/1.1" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http uri: "/health" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http args: "" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http exten: "" +2025/08/20 09:05:13 [debug] 620893#620893: *5 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http process request header line +2025/08/20 09:05:13 [debug] 620893#620893: *5 http header: "Host: localhost:9001" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http header: "Accept: */*" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http header done +2025/08/20 09:05:13 [debug] 620893#620893: *5 event timer del: 6: 261906878 +2025/08/20 09:05:13 [debug] 620893#620893: *5 generic phase: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 rewrite phase: 1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 test location: "/health" +2025/08/20 09:05:13 [debug] 620893#620893: *5 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:05:13 [debug] 620893#620893: *5 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:05:13 [debug] 620893#620893: *5 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:05:13 [debug] 620893#620893: *5 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:05:13 [debug] 620893#620893: *5 using configuration "/health" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http cl:-1 max:104857600 +2025/08/20 09:05:13 [debug] 620893#620893: *5 rewrite phase: 3 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http set discard body +2025/08/20 09:05:13 [debug] 620893#620893: *5 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:05:13 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:05:13 [debug] 620893#620893: *5 write new buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 196 file: 0, size: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http write filter: l:0 f:0 s:196 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http output filter "/health?" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http copy filter: "/health?" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http postpone filter "/health?" 00007FFE76083870 +2025/08/20 09:05:13 [debug] 620893#620893: *5 write old buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 196 file: 0, size: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 write new buf t:0 f:0 0000000000000000, pos 00005FEA6772CB42, size: 3 file: 0, size: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http write filter: l:1 f:0 s:199 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http write filter limit 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 writev: 199 of 199 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http write filter 0000000000000000 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http copy filter: 0 "/health?" +2025/08/20 09:05:13 [debug] 620893#620893: *5 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 set http keepalive handler +2025/08/20 09:05:13 [debug] 620893#620893: *5 http close request +2025/08/20 09:05:13 [debug] 620893#620893: *5 http log handler +2025/08/20 09:05:13 [debug] 620893#620893: *5 free: 00005FEA6770EA30, unused: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 free: 00005FEA67704DA0, unused: 2736 +2025/08/20 09:05:13 [debug] 620893#620893: *5 free: 00005FEA676F20A0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 hc free: 0000000000000000 +2025/08/20 09:05:13 [debug] 620893#620893: *5 hc busy: 0000000000000000 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 tcp_nodelay +2025/08/20 09:05:13 [debug] 620893#620893: *5 reusable connection: 1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 event timer add: 6: 65000:261911879 +2025/08/20 09:05:13 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:05:13 [debug] 620893#620893: worker cycle +2025/08/20 09:05:13 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:05:13 [debug] 620893#620893: epoll: fd:6 ev:2001 d:00007580040B01E1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 http keepalive handler +2025/08/20 09:05:13 [debug] 620893#620893: *5 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:13 [debug] 620893#620893: *5 recv: eof:1, avail:-1 +2025/08/20 09:05:13 [debug] 620893#620893: *5 recv: fd:6 0 of 1024 +2025/08/20 09:05:13 [info] 620893#620893: *5 client 127.0.0.1 closed keepalive connection +2025/08/20 09:05:13 [debug] 620893#620893: *5 close http connection: 6 +2025/08/20 09:05:13 [debug] 620893#620893: *5 event timer del: 6: 261911879 +2025/08/20 09:05:13 [debug] 620893#620893: *5 reusable connection: 0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 free: 00005FEA676F20A0 +2025/08/20 09:05:13 [debug] 620893#620893: *5 free: 00005FEA676EF840, unused: 136 +2025/08/20 09:05:13 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:05:13 [debug] 620893#620893: worker cycle +2025/08/20 09:05:13 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:05:14 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:05:14 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *6 accept: 127.0.0.1:44928 fd:6 +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer add: 6: 60000:261907136 +2025/08/20 09:05:14 [debug] 620893#620893: *6 reusable connection: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 256 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http wait request handler +2025/08/20 09:05:14 [debug] 620893#620893: *6 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:6 1024 of 1024 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: avail:112 +2025/08/20 09:05:14 [debug] 620893#620893: *6 reusable connection: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http process request line +2025/08/20 09:05:14 [debug] 620893#620893: *6 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http uri: "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http args: "" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http exten: "" +2025/08/20 09:05:14 [debug] 620893#620893: *6 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http process request header line +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Host: localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Accept: */*" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0=" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Content-Type: text/plain" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Content-Disposition: attachment; filename="test_blob_1755695113.txt"" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header: "Content-Length: 296" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http header done +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer del: 6: 261907136 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 rewrite phase: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: "/health" +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:05:14 [debug] 620893#620893: *6 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:05:14 [debug] 620893#620893: *6 using configuration "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http cl:296 max:104857600 +2025/08/20 09:05:14 [debug] 620893#620893: *6 rewrite phase: 3 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "PUT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script regex: "^(PUT)$" +2025/08/20 09:05:14 [notice] 620893#620893: *6 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script if +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script if: false +2025/08/20 09:05:14 [debug] 620893#620893: *6 post rewrite phase: 4 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 5 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 6 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 7 +2025/08/20 09:05:14 [debug] 620893#620893: *6 access phase: 8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 access phase: 9 +2025/08/20 09:05:14 [debug] 620893#620893: *6 access phase: 10 +2025/08/20 09:05:14 [debug] 620893#620893: *6 post access phase: 11 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 12 +2025/08/20 09:05:14 [debug] 620893#620893: *6 generic phase: 13 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http client request body preread 184 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http request body content length filter +2025/08/20 09:05:14 [debug] 620893#620893: *6 http body new buf t:1 f:0 00005FEA676F23E8, pos 00005FEA676F23E8, size: 184 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http read client request body +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:112 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:6 112 of 112 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: avail:0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http client request body recv 112 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http body new buf t:1 f:0 00005FEA67705830, pos 00005FEA67705830, size: 112 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http client request body rest 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http init upstream, client timer: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:05:14 [debug] 620893#620893: *6 posix_memalign: 00005FEA676F9150:4096 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "QUERY_STRING" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "QUERY_STRING: " +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REQUEST_METHOD" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "PUT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "CONTENT_TYPE" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "text/plain" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "CONTENT_LENGTH" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "296" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SCRIPT_NAME" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REQUEST_URI" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "DOCUMENT_URI" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "./blobs" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "HTTP/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REQUEST_SCHEME" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "http" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "CGI/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "nginx/" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "1.18.0" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REMOTE_ADDR" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "127.0.0.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REMOTE_PORT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "44928" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REMOTE_PORT: 44928" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SERVER_ADDR" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "127.0.0.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SERVER_PORT" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SERVER_NAME" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "localhost" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "REDIRECT_STATUS" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "200" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script var: "./blobs" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http script copy: "/ginxsom.fcgi" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0=" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755695113.txt"" +2025/08/20 09:05:14 [debug] 620893#620893: *6 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http cleanup add: 00005FEA67705B80 +2025/08/20 09:05:14 [debug] 620893#620893: *6 get rr peer, try: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 stream socket 10 +2025/08/20 09:05:14 [debug] 620893#620893: *6 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:05:14 [debug] 620893#620893: *6 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #7 +2025/08/20 09:05:14 [debug] 620893#620893: *6 connected +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream connect: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 posix_memalign: 00005FEA676D8F20:128 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream send request +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream send request body +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer buf fl:0 s:1304 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer buf fl:0 s:184 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer buf fl:0 s:8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer buf fl:0 s:112 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer buf fl:0 s:8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer in: 00005FEA67705C10 +2025/08/20 09:05:14 [debug] 620893#620893: *6 writev: 1616 of 1616 +2025/08/20 09:05:14 [debug] 620893#620893: *6 chain writer out: 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer add: 10: 60000:261907136 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http request count:2 blk:0 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:6 ev:0004 d:00007580040B01E0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http run request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream check client, write event:1, "/upload" +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:10 ev:0004 d:00007580040B02C9 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream dummy handler +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 2 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:10 ev:0005 d:00007580040B02C9 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream process header +2025/08/20 09:05:14 [debug] 620893#620893: *6 malloc: 00005FEA676FA160:4096 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:10 1024 of 4096 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:05:14] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0= +LOG: [2025-08-20 09:05:14] PUT /upload - Auth: auth_provided - Status: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream dummy handler +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:10 ev:0005 d:00007580040B02C9 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream process header +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:10 3072 of 4096 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: " +DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:05:13-04:00 +Random data: db7810e2fb1ab96791cbe32deb13db017ae0ab4b722d99265054a45bad0b5a61 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: 92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4 +AUTH: About to perform authentication - auth_header p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "resent: YES +AUTH: Calling authenticate_request with hash: 92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 92bf39ce2ecfa788d8b5d97c" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "65d99cc7a16f05d317df40cf7c824db55d861ee4 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"3bdc350fc6d37694c4262d5ca" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "1dbe43619dc42a851c05dbd772fef75590bfa31","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695114,"tags":[["t","upload"],["x","92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4"],["expiration","1755698713"]],"content":"","sig":"7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": " while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "24242, + "id": "3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695114, + "tags": [["t", "upload"], ["x", "92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4"], ["expiration", "1755698713"]], + "content": "", + "sig": "7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7" +} +🔍 STEP SERVER-4: Event" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "fields before validation +ℹ️ INFO: id: 3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695114 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream dummy handler +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:10 ev:2005 d:00007580040B02C9 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream request: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream process header +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:1, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:10 1416 of 4096 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character val" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: F8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 504 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "idation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 90 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 144 +2025/08/20 09:05:14 [error] 620893#620893: *6 FastCGI sent in stderr: "d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:05:14] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 07 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 06 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: C7 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 199 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi parser: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi parser: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi parser: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi header done +2025/08/20 09:05:14 [debug] 620893#620893: *6 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:05:14 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:05:14 [debug] 620893#620893: *6 write new buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http write filter: l:0 f:0 s:181 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http cacheable: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream process upstream +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe read upstream: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe preread: 164 +2025/08/20 09:05:14 [debug] 620893#620893: *6 readv: eof:1, avail:0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 readv: 1, last:2680 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe recv chain: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe buf free s:0 t:1 f:0 00005FEA676FA160, pos 00005FEA676FA644, size: 164 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe length: -1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 input buf #0 00005FEA676FA644 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 06 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi closed stdout +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 03 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 01 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 08 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record byte: 00 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi record length: 8 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http fastcgi sent end request +2025/08/20 09:05:14 [debug] 620893#620893: *6 input buf 00005FEA676FA644 139 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe write downstream: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe write downstream flush in +2025/08/20 09:05:14 [debug] 620893#620893: *6 http output filter "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http copy filter: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http postpone filter "/upload?" 00005FEA67705BE0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http chunk: 139 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write old buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write new buf t:1 f:0 00005FEA67705D78, pos 00005FEA67705D78, size: 4 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write new buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FA644, size: 139 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http write filter: l:0 f:0 s:326 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http copy filter: 0 "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 pipe write downstream done +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer: 10, old: 261907136, new: 261907138 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream exit: 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *6 finalize http upstream request: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 finalize http fastcgi request +2025/08/20 09:05:14 [debug] 620893#620893: *6 free rr peer 1 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 close http upstream connection: 10 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676D8F20, unused: 48 +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer del: 10: 261907136 +2025/08/20 09:05:14 [debug] 620893#620893: *6 reusable connection: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http upstream temp fd: -1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http output filter "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http copy filter: "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http postpone filter "/upload?" 00007FFE76083920 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http chunk: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write old buf t:1 f:0 00005FEA676F9808, pos 00005FEA676F9808, size: 181 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write old buf t:1 f:0 00005FEA67705D78, pos 00005FEA67705D78, size: 4 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write old buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FA644, size: 139 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write old buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E5, size: 5 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http write filter: l:1 f:0 s:331 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http write filter limit 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 writev: 331 of 331 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http write filter 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http copy filter: 0 "/upload?" +2025/08/20 09:05:14 [debug] 620893#620893: *6 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 set http keepalive handler +2025/08/20 09:05:14 [debug] 620893#620893: *6 http close request +2025/08/20 09:05:14 [debug] 620893#620893: *6 http log handler +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676FA160 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA6770EA30, unused: 3 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA67704DA0, unused: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676F9150, unused: 1250 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676F20A0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 hc free: 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *6 hc busy: 0000000000000000 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 tcp_nodelay +2025/08/20 09:05:14 [debug] 620893#620893: *6 reusable connection: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer add: 6: 65000:261912138 +2025/08/20 09:05:14 [debug] 620893#620893: *6 post event 00005FEA67740770 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:14 [debug] 620893#620893: posted event 00005FEA67740770 +2025/08/20 09:05:14 [debug] 620893#620893: *6 delete posted event 00005FEA67740770 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http keepalive handler +2025/08/20 09:05:14 [debug] 620893#620893: *6 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:0, avail:0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676F20A0 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:6 ev:2005 d:00007580040B01E0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 http keepalive handler +2025/08/20 09:05:14 [debug] 620893#620893: *6 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: eof:1, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *6 recv: fd:6 0 of 1024 +2025/08/20 09:05:14 [info] 620893#620893: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 09:05:14 [debug] 620893#620893: *6 close http connection: 6 +2025/08/20 09:05:14 [debug] 620893#620893: *6 event timer del: 6: 261912138 +2025/08/20 09:05:14 [debug] 620893#620893: *6 reusable connection: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676F20A0 +2025/08/20 09:05:14 [debug] 620893#620893: *6 free: 00005FEA676EF840, unused: 120 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:05:14 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:05:14 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *8 accept: 127.0.0.1:44934 fd:6 +2025/08/20 09:05:14 [debug] 620893#620893: *8 event timer add: 6: 60000:261907150 +2025/08/20 09:05:14 [debug] 620893#620893: *8 reusable connection: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 11 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http wait request handler +2025/08/20 09:05:14 [debug] 620893#620893: *8 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:14 [debug] 620893#620893: *8 recv: eof:0, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 recv: fd:6 142 of 1024 +2025/08/20 09:05:14 [debug] 620893#620893: *8 reusable connection: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http process request line +2025/08/20 09:05:14 [debug] 620893#620893: *8 http request line: "GET /92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4 HTTP/1.1" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http uri: "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http args: "" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http exten: "" +2025/08/20 09:05:14 [debug] 620893#620893: *8 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http process request header line +2025/08/20 09:05:14 [debug] 620893#620893: *8 http header: "Host: localhost:9001" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http header: "Accept: */*" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http header done +2025/08/20 09:05:14 [debug] 620893#620893: *8 event timer del: 6: 261907150 +2025/08/20 09:05:14 [debug] 620893#620893: *8 generic phase: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 rewrite phase: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 test location: "/health" +2025/08/20 09:05:14 [debug] 620893#620893: *8 test location: "/debug/list" +2025/08/20 09:05:14 [debug] 620893#620893: *8 test location: "/" +2025/08/20 09:05:14 [debug] 620893#620893: *8 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:05:14 [debug] 620893#620893: *8 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http cl:-1 max:104857600 +2025/08/20 09:05:14 [debug] 620893#620893: *8 rewrite phase: 3 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http script var +2025/08/20 09:05:14 [debug] 620893#620893: *8 http script var: "GET" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http script value: "DELETE" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http script not equal +2025/08/20 09:05:14 [debug] 620893#620893: *8 http script if +2025/08/20 09:05:14 [debug] 620893#620893: *8 http finalize request: 404, "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" a:1, c:1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http special response: 404, "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http set discard body +2025/08/20 09:05:14 [debug] 620893#620893: *8 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:05:14 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:05:14 [debug] 620893#620893: *8 write new buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 164 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http write filter: l:0 f:0 s:164 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http output filter "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http copy filter: "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http postpone filter "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" 00005FEA67705310 +2025/08/20 09:05:14 [debug] 620893#620893: *8 write old buf t:1 f:0 00005FEA67705180, pos 00005FEA67705180, size: 164 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 write new buf t:0 f:0 0000000000000000, pos 00005FEA4FA1A580, size: 100 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 write new buf t:0 f:0 0000000000000000, pos 00005FEA4FA1AC80, size: 62 file: 0, size: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http write filter: l:1 f:0 s:326 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http write filter limit 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 writev: 326 of 326 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http write filter 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http copy filter: 0 "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" +2025/08/20 09:05:14 [debug] 620893#620893: *8 http finalize request: 0, "/92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4?" a:1, c:1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 set http keepalive handler +2025/08/20 09:05:14 [debug] 620893#620893: *8 http close request +2025/08/20 09:05:14 [debug] 620893#620893: *8 http log handler +2025/08/20 09:05:14 [debug] 620893#620893: *8 free: 00005FEA6770EA30, unused: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 free: 00005FEA67704DA0, unused: 2456 +2025/08/20 09:05:14 [debug] 620893#620893: *8 free: 00005FEA676F20A0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 hc free: 0000000000000000 +2025/08/20 09:05:14 [debug] 620893#620893: *8 hc busy: 0000000000000000 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 tcp_nodelay +2025/08/20 09:05:14 [debug] 620893#620893: *8 reusable connection: 1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 event timer add: 6: 65000:261912150 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:05:14 [debug] 620893#620893: epoll: fd:6 ev:2001 d:00007580040B01E1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 http keepalive handler +2025/08/20 09:05:14 [debug] 620893#620893: *8 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:14 [debug] 620893#620893: *8 recv: eof:1, avail:-1 +2025/08/20 09:05:14 [debug] 620893#620893: *8 recv: fd:6 0 of 1024 +2025/08/20 09:05:14 [info] 620893#620893: *8 client 127.0.0.1 closed keepalive connection +2025/08/20 09:05:14 [debug] 620893#620893: *8 close http connection: 6 +2025/08/20 09:05:14 [debug] 620893#620893: *8 event timer del: 6: 261912150 +2025/08/20 09:05:14 [debug] 620893#620893: *8 reusable connection: 0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 free: 00005FEA676F20A0 +2025/08/20 09:05:14 [debug] 620893#620893: *8 free: 00005FEA676EF840, unused: 136 +2025/08/20 09:05:14 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:05:14 [debug] 620893#620893: worker cycle +2025/08/20 09:05:14 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:5 ev:0001 d:00007580040B0010 +2025/08/20 09:05:46 [debug] 620893#620893: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:05:46 [debug] 620893#620893: posix_memalign: 00005FEA676EF840:512 @16 +2025/08/20 09:05:46 [debug] 620893#620893: *9 accept: 127.0.0.1:55810 fd:6 +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer add: 6: 60000:261939606 +2025/08/20 09:05:46 [debug] 620893#620893: *9 reusable connection: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 32455 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:6 ev:0001 d:00007580040B01E0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http wait request handler +2025/08/20 09:05:46 [debug] 620893#620893: *9 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: eof:0, avail:-1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: fd:6 777 of 1024 +2025/08/20 09:05:46 [debug] 620893#620893: *9 reusable connection: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 posix_memalign: 00005FEA6770EA30:4096 @16 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http process request line +2025/08/20 09:05:46 [debug] 620893#620893: *9 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http uri: "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http args: "" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http exten: "" +2025/08/20 09:05:46 [debug] 620893#620893: *9 posix_memalign: 00005FEA67704DA0:4096 @16 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http process request header line +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "Host: localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "Accept: */*" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "Content-Type: text/plain" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header: "Content-Length: 9" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http header done +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer del: 6: 261939606 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 rewrite phase: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: "/health" +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:05:46 [debug] 620893#620893: *9 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:05:46 [debug] 620893#620893: *9 using configuration "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http cl:9 max:104857600 +2025/08/20 09:05:46 [debug] 620893#620893: *9 rewrite phase: 3 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "PUT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script regex: "^(PUT)$" +2025/08/20 09:05:46 [notice] 620893#620893: *9 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script if +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script if: false +2025/08/20 09:05:46 [debug] 620893#620893: *9 post rewrite phase: 4 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 5 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 6 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 7 +2025/08/20 09:05:46 [debug] 620893#620893: *9 access phase: 8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 access phase: 9 +2025/08/20 09:05:46 [debug] 620893#620893: *9 access phase: 10 +2025/08/20 09:05:46 [debug] 620893#620893: *9 post access phase: 11 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 12 +2025/08/20 09:05:46 [debug] 620893#620893: *9 generic phase: 13 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http client request body preread 9 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http request body content length filter +2025/08/20 09:05:46 [debug] 620893#620893: *9 http body new buf t:1 f:0 00005FEA676F23A0, pos 00005FEA676F23A0, size: 9 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http init upstream, client timer: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "QUERY_STRING" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "QUERY_STRING: " +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REQUEST_METHOD" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "PUT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "CONTENT_TYPE" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "text/plain" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "CONTENT_LENGTH" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "9" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "CONTENT_LENGTH: 9" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SCRIPT_NAME" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REQUEST_URI" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "DOCUMENT_URI" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "./blobs" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "HTTP/1.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REQUEST_SCHEME" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "http" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "CGI/1.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "nginx/" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "1.18.0" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REMOTE_ADDR" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "127.0.0.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REMOTE_PORT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "55810" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REMOTE_PORT: 55810" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SERVER_ADDR" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "127.0.0.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SERVER_PORT" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SERVER_NAME" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "localhost" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "REDIRECT_STATUS" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "200" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script var: "./blobs" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http script copy: "/ginxsom.fcgi" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K" +2025/08/20 09:05:46 [debug] 620893#620893: *9 fastcgi param: "HTTP_CONTENT_LENGTH: 9" +2025/08/20 09:05:46 [debug] 620893#620893: *9 posix_memalign: 00005FEA676F9150:4096 @16 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http cleanup add: 00005FEA67705D88 +2025/08/20 09:05:46 [debug] 620893#620893: *9 get rr peer, try: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 stream socket 10 +2025/08/20 09:05:46 [debug] 620893#620893: *9 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:05:46 [debug] 620893#620893: *9 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #10 +2025/08/20 09:05:46 [debug] 620893#620893: *9 connected +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream connect: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 posix_memalign: 00005FEA676D8F20:128 @16 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream send request +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream send request body +2025/08/20 09:05:46 [debug] 620893#620893: *9 chain writer buf fl:0 s:1224 +2025/08/20 09:05:46 [debug] 620893#620893: *9 chain writer buf fl:0 s:9 +2025/08/20 09:05:46 [debug] 620893#620893: *9 chain writer buf fl:0 s:15 +2025/08/20 09:05:46 [debug] 620893#620893: *9 chain writer in: 00005FEA676F9288 +2025/08/20 09:05:46 [debug] 620893#620893: *9 writev: 1248 of 1248 +2025/08/20 09:05:46 [debug] 620893#620893: *9 chain writer out: 0000000000000000 +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer add: 10: 60000:261939606 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http request count:2 blk:0 +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: 60000 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:6 ev:0004 d:00007580040B01E0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http run request: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream check client, write event:1, "/upload" +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:10 ev:0004 d:00007580040B02C8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream request: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream dummy handler +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 2 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:10 ev:0005 d:00007580040B02C8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream request: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream process header +2025/08/20 09:05:46 [debug] 620893#620893: *9 malloc: 00005FEA676FA160:4096 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: eof:0, avail:-1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: fd:10 3072 of 4096 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:05:46] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=9 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2Uy" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "OGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K +LOG: [2025-08-20 09:05:46] PUT /upload - Auth: auth_provided - Status: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: test datada +DEBUG-LAAN: Calculated SHA-256: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +═════════════════════════════════════════════════════" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "═════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DE" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "BUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695114,"tags":[["t","upload"],["x","92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4"],["expiration","1755698713"]],"content":"","sig":"" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7"} + +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695114, + "tags": [["t", "upload"], ["x", "92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: eof:0, avail:0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream request: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream dummy handler +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 0 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: 59998 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:10 ev:2005 d:00007580040B02C8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream request: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream process header +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: eof:1, avail:-1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: fd:10 2152 of 4096 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "4"], ["expiration", "1755698713"]], + "content": "", + "sig": "7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621c" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "e8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695114 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9d" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: F8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 504 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "cbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptograp" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 6B +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 05 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 363 +2025/08/20 09:05:46 [error] 620893#620893: *9 FastCGI sent in stderr: "hic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:05:46] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 07 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 06 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: C7 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 199 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi parser: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi parser: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi parser: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi header done +2025/08/20 09:05:46 [debug] 620893#620893: *9 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:05:46 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:05:46 [debug] 620893#620893: *9 write new buf t:1 f:0 00005FEA676F9550, pos 00005FEA676F9550, size: 181 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http write filter: l:0 f:0 s:181 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http cacheable: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream process upstream +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe read upstream: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe preread: 164 +2025/08/20 09:05:46 [debug] 620893#620893: *9 readv: eof:1, avail:0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 readv: 1, last:1944 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe recv chain: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe buf free s:0 t:1 f:0 00005FEA676FA160, pos 00005FEA676FA924, size: 164 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe length: -1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 input buf #0 00005FEA676FA924 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 06 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi closed stdout +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 03 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 01 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 08 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record byte: 00 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi record length: 8 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http fastcgi sent end request +2025/08/20 09:05:46 [debug] 620893#620893: *9 input buf 00005FEA676FA924 139 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe write downstream: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe write downstream flush in +2025/08/20 09:05:46 [debug] 620893#620893: *9 http output filter "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http copy filter: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http postpone filter "/upload?" 00005FEA676F9258 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http chunk: 139 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write old buf t:1 f:0 00005FEA676F9550, pos 00005FEA676F9550, size: 181 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write new buf t:1 f:0 00005FEA676F9848, pos 00005FEA676F9848, size: 4 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write new buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FA924, size: 139 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http write filter: l:0 f:0 s:326 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http copy filter: 0 "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 pipe write downstream done +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer: 10, old: 261939606, new: 261939609 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream exit: 0000000000000000 +2025/08/20 09:05:46 [debug] 620893#620893: *9 finalize http upstream request: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 finalize http fastcgi request +2025/08/20 09:05:46 [debug] 620893#620893: *9 free rr peer 1 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 close http upstream connection: 10 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676D8F20, unused: 48 +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer del: 10: 261939606 +2025/08/20 09:05:46 [debug] 620893#620893: *9 reusable connection: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http upstream temp fd: -1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http output filter "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http copy filter: "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http postpone filter "/upload?" 00007FFE76083920 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http chunk: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write old buf t:1 f:0 00005FEA676F9550, pos 00005FEA676F9550, size: 181 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write old buf t:1 f:0 00005FEA676F9848, pos 00005FEA676F9848, size: 4 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write old buf t:1 f:0 00005FEA676FA160, pos 00005FEA676FA924, size: 139 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write old buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 write new buf t:0 f:0 0000000000000000, pos 00005FEA4F9DB2E5, size: 5 file: 0, size: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http write filter: l:1 f:0 s:331 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http write filter limit 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 writev: 331 of 331 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http write filter 0000000000000000 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http copy filter: 0 "/upload?" +2025/08/20 09:05:46 [debug] 620893#620893: *9 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 set http keepalive handler +2025/08/20 09:05:46 [debug] 620893#620893: *9 http close request +2025/08/20 09:05:46 [debug] 620893#620893: *9 http log handler +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676FA160 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA6770EA30, unused: 3 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA67704DA0, unused: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676F9150, unused: 1842 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676F20A0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 hc free: 0000000000000000 +2025/08/20 09:05:46 [debug] 620893#620893: *9 hc busy: 0000000000000000 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 tcp_nodelay +2025/08/20 09:05:46 [debug] 620893#620893: *9 reusable connection: 1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer add: 6: 65000:261944609 +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 1 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: 65000 +2025/08/20 09:05:46 [debug] 620893#620893: epoll: fd:6 ev:2005 d:00007580040B01E0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 http keepalive handler +2025/08/20 09:05:46 [debug] 620893#620893: *9 malloc: 00005FEA676F20A0:1024 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: eof:1, avail:-1 +2025/08/20 09:05:46 [debug] 620893#620893: *9 recv: fd:6 0 of 1024 +2025/08/20 09:05:46 [info] 620893#620893: *9 client 127.0.0.1 closed keepalive connection +2025/08/20 09:05:46 [debug] 620893#620893: *9 close http connection: 6 +2025/08/20 09:05:46 [debug] 620893#620893: *9 event timer del: 6: 261944609 +2025/08/20 09:05:46 [debug] 620893#620893: *9 reusable connection: 0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676F20A0 +2025/08/20 09:05:46 [debug] 620893#620893: *9 free: 00005FEA676EF840, unused: 120 +2025/08/20 09:05:46 [debug] 620893#620893: timer delta: 2 +2025/08/20 09:05:46 [debug] 620893#620893: worker cycle +2025/08/20 09:05:46 [debug] 620893#620893: epoll timer: -1 +2025/08/20 09:07:01 [notice] 620892#620892: signal 15 (SIGTERM) received from 621539, exiting +2025/08/20 09:07:01 [debug] 620892#620892: wake up, sigio 0 +2025/08/20 09:07:01 [debug] 620892#620892: child: 0 620893 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:07:01 [debug] 620892#620892: termination cycle: 50 +2025/08/20 09:07:01 [debug] 620892#620892: sigsuspend +2025/08/20 09:07:01 [debug] 620893#620893: epoll: fd:7 ev:0001 d:00007580040B00F8 +2025/08/20 09:07:01 [debug] 620893#620893: channel handler +2025/08/20 09:07:01 [debug] 620893#620893: channel: 32 +2025/08/20 09:07:01 [debug] 620893#620893: channel command: 4 +2025/08/20 09:07:01 [debug] 620893#620893: channel: -2 +2025/08/20 09:07:01 [debug] 620893#620893: timer delta: 75014 +2025/08/20 09:07:01 [notice] 620893#620893: exiting +2025/08/20 09:07:01 [debug] 620893#620893: flush files +2025/08/20 09:07:01 [debug] 620893#620893: run cleanup: 00005FEA6773DA80 +2025/08/20 09:07:01 [debug] 620893#620893: run cleanup: 00005FEA67730A18 +2025/08/20 09:07:01 [debug] 620893#620893: cleanup resolver +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6773EDE0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67731BE0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67710B50 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6770FA40 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67709A10 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67708950 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67707890 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA677067D0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA676FE170 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA676F5140, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA676FF580, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6770AA20, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67711B60, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67715B70, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67719B80, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6771DB90, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67721BA0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67725BB0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67729BC0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6772DBD0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67732DB0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA67736DC0, unused: 0 +2025/08/20 09:07:01 [debug] 620893#620893: free: 00005FEA6773ADD0, unused: 4920 +2025/08/20 09:07:01 [notice] 620893#620893: exit +2025/08/20 09:07:01 [notice] 620892#620892: signal 17 (SIGCHLD) received from 620893 +2025/08/20 09:07:01 [notice] 620892#620892: worker process 620893 exited with code 0 +2025/08/20 09:07:01 [debug] 620892#620892: shmtx forced unlock +2025/08/20 09:07:01 [debug] 620892#620892: wake up, sigio 3 +2025/08/20 09:07:01 [debug] 620892#620892: reap children +2025/08/20 09:07:01 [debug] 620892#620892: child: 0 620893 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:07:01 [notice] 620892#620892: exit +2025/08/20 09:07:01 [debug] 620892#620892: close listening 0.0.0.0:9001 #5 +2025/08/20 09:07:01 [debug] 620892#620892: run cleanup: 00005FEA67730A18 +2025/08/20 09:07:01 [debug] 620892#620892: cleanup resolver +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6773EDE0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67731BE0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67710B50 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6770FA40 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67709A10 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67708950 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67707890 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA677067D0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA676FE170 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA676F5140, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA676FF580, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6770AA20, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67711B60, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67715B70, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67719B80, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6771DB90, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67721BA0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67725BB0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67729BC0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6772DBD0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67732DB0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA67736DC0, unused: 0 +2025/08/20 09:07:01 [debug] 620892#620892: free: 00005FEA6773ADD0, unused: 4951 +2025/08/20 09:07:41 [debug] 621846#621846: bind() 0.0.0.0:9001 #5 +2025/08/20 09:07:41 [notice] 621846#621846: using the "epoll" event method +2025/08/20 09:07:41 [debug] 621846#621846: counter: 00007C2A154A2080, 1 +2025/08/20 09:07:41 [notice] 621846#621846: nginx/1.18.0 (Ubuntu) +2025/08/20 09:07:41 [notice] 621846#621846: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:07:41 [notice] 621846#621846: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:07:41 [debug] 621847#621846: write: 6, 00007FFFB4789E30, 7, 0 +2025/08/20 09:07:41 [debug] 621847#621847: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:07:41 [notice] 621847#621847: start worker processes +2025/08/20 09:07:41 [debug] 621847#621847: channel 6:7 +2025/08/20 09:07:41 [notice] 621847#621847: start worker process 621848 +2025/08/20 09:07:41 [debug] 621847#621847: sigsuspend +2025/08/20 09:07:41 [debug] 621848#621848: add cleanup: 00005A8EA5702A80 +2025/08/20 09:07:41 [debug] 621848#621848: malloc: 00005A8EA56B5BD0:8 +2025/08/20 09:07:41 [debug] 621848#621848: notify eventfd: 9 +2025/08/20 09:07:41 [debug] 621848#621848: testing the EPOLLRDHUP flag: success +2025/08/20 09:07:41 [debug] 621848#621848: malloc: 00005A8EA56C8590:6144 +2025/08/20 09:07:41 [debug] 621848#621848: malloc: 00007C2A1529A010:237568 +2025/08/20 09:07:41 [debug] 621848#621848: malloc: 00005A8EA57056B0:98304 +2025/08/20 09:07:41 [debug] 621848#621848: malloc: 00005A8EA571D6C0:98304 +2025/08/20 09:07:41 [debug] 621848#621848: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:07:41 [debug] 621848#621848: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:07:41 [debug] 621848#621848: setproctitle: "nginx: worker process" +2025/08/20 09:07:41 [debug] 621848#621848: worker cycle +2025/08/20 09:07:41 [debug] 621848#621848: epoll timer: -1 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:5 ev:0001 d:00007C2A1529A010 +2025/08/20 09:08:02 [debug] 621848#621848: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:08:02 [debug] 621848#621848: posix_memalign: 00005A8EA56B4840:512 @16 +2025/08/20 09:08:02 [debug] 621848#621848: *1 accept: 127.0.0.1:49466 fd:6 +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer add: 6: 60000:262075928 +2025/08/20 09:08:02 [debug] 621848#621848: *1 reusable connection: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 21602 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: 60000 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:6 ev:0001 d:00007C2A1529A1E0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http wait request handler +2025/08/20 09:08:02 [debug] 621848#621848: *1 malloc: 00005A8EA56B70A0:1024 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: eof:0, avail:-1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: fd:6 777 of 1024 +2025/08/20 09:08:02 [debug] 621848#621848: *1 reusable connection: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 posix_memalign: 00005A8EA56D3A30:4096 @16 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http process request line +2025/08/20 09:08:02 [debug] 621848#621848: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http uri: "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http args: "" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http exten: "" +2025/08/20 09:08:02 [debug] 621848#621848: *1 posix_memalign: 00005A8EA56C9DA0:4096 @16 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http process request header line +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "Host: localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "Accept: */*" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "Content-Type: text/plain" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header: "Content-Length: 9" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http header done +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer del: 6: 262075928 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 rewrite phase: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: "/health" +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:08:02 [debug] 621848#621848: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:08:02 [debug] 621848#621848: *1 using configuration "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http cl:9 max:104857600 +2025/08/20 09:08:02 [debug] 621848#621848: *1 rewrite phase: 3 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "PUT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script regex: "^(PUT)$" +2025/08/20 09:08:02 [notice] 621848#621848: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script if +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script if: false +2025/08/20 09:08:02 [debug] 621848#621848: *1 post rewrite phase: 4 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 5 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 6 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 7 +2025/08/20 09:08:02 [debug] 621848#621848: *1 access phase: 8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 access phase: 9 +2025/08/20 09:08:02 [debug] 621848#621848: *1 access phase: 10 +2025/08/20 09:08:02 [debug] 621848#621848: *1 post access phase: 11 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 12 +2025/08/20 09:08:02 [debug] 621848#621848: *1 generic phase: 13 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http client request body preread 9 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http request body content length filter +2025/08/20 09:08:02 [debug] 621848#621848: *1 http body new buf t:1 f:0 00005A8EA56B73A0, pos 00005A8EA56B73A0, size: 9 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http init upstream, client timer: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "QUERY_STRING" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REQUEST_METHOD" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "PUT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "CONTENT_TYPE" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "text/plain" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "9" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "CONTENT_LENGTH: 9" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SCRIPT_NAME" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REQUEST_URI" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "DOCUMENT_URI" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "./blobs" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "HTTP/1.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "http" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "CGI/1.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "nginx/" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "1.18.0" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REMOTE_ADDR" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "127.0.0.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REMOTE_PORT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "49466" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REMOTE_PORT: 49466" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SERVER_ADDR" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "127.0.0.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SERVER_PORT" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SERVER_NAME" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "localhost" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "200" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script var: "./blobs" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K" +2025/08/20 09:08:02 [debug] 621848#621848: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 9" +2025/08/20 09:08:02 [debug] 621848#621848: *1 posix_memalign: 00005A8EA56BE150:4096 @16 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http cleanup add: 00005A8EA56CAD88 +2025/08/20 09:08:02 [debug] 621848#621848: *1 get rr peer, try: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 stream socket 10 +2025/08/20 09:08:02 [debug] 621848#621848: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:08:02 [debug] 621848#621848: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 09:08:02 [debug] 621848#621848: *1 connected +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream connect: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 posix_memalign: 00005A8EA569DF20:128 @16 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream send request +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream send request body +2025/08/20 09:08:02 [debug] 621848#621848: *1 chain writer buf fl:0 s:1224 +2025/08/20 09:08:02 [debug] 621848#621848: *1 chain writer buf fl:0 s:9 +2025/08/20 09:08:02 [debug] 621848#621848: *1 chain writer buf fl:0 s:15 +2025/08/20 09:08:02 [debug] 621848#621848: *1 chain writer in: 00005A8EA56BE288 +2025/08/20 09:08:02 [debug] 621848#621848: *1 writev: 1248 of 1248 +2025/08/20 09:08:02 [debug] 621848#621848: *1 chain writer out: 0000000000000000 +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer add: 10: 60000:262075929 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http request count:2 blk:0 +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 1 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: 60000 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:6 ev:0004 d:00007C2A1529A1E0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http run request: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream check client, write event:1, "/upload" +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:10 ev:0004 d:00007C2A1529A2C8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream request: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream dummy handler +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 1 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: 59999 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:10 ev:0005 d:00007C2A1529A2C8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream request: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream process header +2025/08/20 09:08:02 [debug] 621848#621848: *1 malloc: 00005A8EA56BF160:4096 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: eof:0, avail:-1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: fd:10 2560 of 4096 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "DEBUG: FastCGI received request +DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:08:02] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=9 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3Njk0YzQyNjJkNWNhMWRiZTQzNjE5ZGM0MmE4NTFjMDVkYmQ3NzJmZWY3NTU5MGJmYTMxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2Uy" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "OGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTUxMTQsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5MmJmMzljZTJlY2ZhNzg4ZDhiNWQ5N2M2NWQ5OWNjN2ExNmYwNWQzMTdkZjQwY2Y3YzgyNGRiNTVkODYxZWU0Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5ODcxMyJdXSwiY29udGVudCI6IiIsInNpZyI6IjdlYzYwNjUwNTFkZDhkMmM1NDU2MTI1NzBkMzNkNTcwMjM2YWQ2NTA0ZjlkMjg1ZTMwZjZmOGZhZTcyNjc2MjFjZTg3NDRkZDllZjJlNzdmMTJhNTNlMGViZGRkMzcwNTVjOTM1NTk0NGQ4M2IwZjQ0OTU0MDMyMTAzODlhMWY3In0K +LOG: [2025-08-20 09:08:02] PUT /upload - Auth: auth_provided - Status: 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: test dataX| +DEBUG-LAAN: Calculated SHA-256: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +═════════════════════════════════════════════════════" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "═════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzYmRjMzUwZmM2ZDM3... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DE" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "BUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695114,"tags":[["t","upload"],["x","92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee4"],["expiration","1755698713"]],"content":"","sig":"" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: eof:0, avail:0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream request: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream dummy handler +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 0 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: 59999 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:10 ev:2005 d:00007C2A1529A2C8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream request: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream process header +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: eof:1, avail:-1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: fd:10 2664 of 4096 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7"} + +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695114, + "tags": [["t", "upload"], ["x", "92bf39ce2ecfa788d8b5d97c65d99cc7a16f05d317df40cf7c824db55d861ee" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "4"], ["expiration", "1755698713"]], + "content": "", + "sig": "7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621ce8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 3bdc350fc6d37694c4262d5ca1dbe43619dc42a851c05dbd772fef75590bfa31 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 7ec6065051dd8d2c545612570d33d570236ad6504f9d285e30f6f8fae7267621c" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "e8744dd9ef2e77f12a53e0ebddd37055c9355944d83b0f4495403210389a1f7 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695114 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9d" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: F8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 504 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "cbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptograp" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 6B +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 05 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 363 +2025/08/20 09:08:02 [error] 621848#621848: *1 FastCGI sent in stderr: "hic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:08:02] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 07 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 06 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: C7 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 199 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi parser: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi parser: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi parser: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi header done +2025/08/20 09:08:02 [debug] 621848#621848: *1 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:08:02 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:08:02 [debug] 621848#621848: *1 write new buf t:1 f:0 00005A8EA56BE550, pos 00005A8EA56BE550, size: 181 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http write filter: l:0 f:0 s:181 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http cacheable: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream process upstream +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe read upstream: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe preread: 164 +2025/08/20 09:08:02 [debug] 621848#621848: *1 readv: eof:1, avail:0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 readv: 1, last:1432 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe recv chain: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe buf free s:0 t:1 f:0 00005A8EA56BF160, pos 00005A8EA56BFB24, size: 164 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe length: -1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 input buf #0 00005A8EA56BFB24 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 06 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi closed stdout +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 03 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 01 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 08 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record byte: 00 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi record length: 8 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http fastcgi sent end request +2025/08/20 09:08:02 [debug] 621848#621848: *1 input buf 00005A8EA56BFB24 139 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe write downstream: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe write downstream flush in +2025/08/20 09:08:02 [debug] 621848#621848: *1 http output filter "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http copy filter: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http postpone filter "/upload?" 00005A8EA56BE258 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http chunk: 139 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write old buf t:1 f:0 00005A8EA56BE550, pos 00005A8EA56BE550, size: 181 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write new buf t:1 f:0 00005A8EA56BE848, pos 00005A8EA56BE848, size: 4 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write new buf t:1 f:0 00005A8EA56BF160, pos 00005A8EA56BFB24, size: 139 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write new buf t:0 f:0 0000000000000000, pos 00005A8E788CB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http write filter: l:0 f:0 s:326 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http copy filter: 0 "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 pipe write downstream done +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer: 10, old: 262075929, new: 262075931 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream exit: 0000000000000000 +2025/08/20 09:08:02 [debug] 621848#621848: *1 finalize http upstream request: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 finalize http fastcgi request +2025/08/20 09:08:02 [debug] 621848#621848: *1 free rr peer 1 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 close http upstream connection: 10 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA569DF20, unused: 48 +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer del: 10: 262075929 +2025/08/20 09:08:02 [debug] 621848#621848: *1 reusable connection: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http upstream temp fd: -1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http output filter "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http copy filter: "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http postpone filter "/upload?" 00007FFFB4789A70 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http chunk: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write old buf t:1 f:0 00005A8EA56BE550, pos 00005A8EA56BE550, size: 181 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write old buf t:1 f:0 00005A8EA56BE848, pos 00005A8EA56BE848, size: 4 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write old buf t:1 f:0 00005A8EA56BF160, pos 00005A8EA56BFB24, size: 139 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write old buf t:0 f:0 0000000000000000, pos 00005A8E788CB2E8, size: 2 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 write new buf t:0 f:0 0000000000000000, pos 00005A8E788CB2E5, size: 5 file: 0, size: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http write filter: l:1 f:0 s:331 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http write filter limit 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 writev: 331 of 331 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http write filter 0000000000000000 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http copy filter: 0 "/upload?" +2025/08/20 09:08:02 [debug] 621848#621848: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 set http keepalive handler +2025/08/20 09:08:02 [debug] 621848#621848: *1 http close request +2025/08/20 09:08:02 [debug] 621848#621848: *1 http log handler +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56BF160 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56D3A30, unused: 3 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56C9DA0, unused: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56BE150, unused: 1842 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56B70A0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 hc free: 0000000000000000 +2025/08/20 09:08:02 [debug] 621848#621848: *1 hc busy: 0000000000000000 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 tcp_nodelay +2025/08/20 09:08:02 [debug] 621848#621848: *1 reusable connection: 1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer add: 6: 65000:262080931 +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 1 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: 65000 +2025/08/20 09:08:02 [debug] 621848#621848: epoll: fd:6 ev:2005 d:00007C2A1529A1E0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 http keepalive handler +2025/08/20 09:08:02 [debug] 621848#621848: *1 malloc: 00005A8EA56B70A0:1024 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: eof:1, avail:-1 +2025/08/20 09:08:02 [debug] 621848#621848: *1 recv: fd:6 0 of 1024 +2025/08/20 09:08:02 [info] 621848#621848: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:08:02 [debug] 621848#621848: *1 close http connection: 6 +2025/08/20 09:08:02 [debug] 621848#621848: *1 event timer del: 6: 262080931 +2025/08/20 09:08:02 [debug] 621848#621848: *1 reusable connection: 0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56B70A0 +2025/08/20 09:08:02 [debug] 621848#621848: *1 free: 00005A8EA56B4840, unused: 120 +2025/08/20 09:08:02 [debug] 621848#621848: timer delta: 1 +2025/08/20 09:08:02 [debug] 621848#621848: worker cycle +2025/08/20 09:08:02 [debug] 621848#621848: epoll timer: -1 +2025/08/20 09:10:35 [debug] 622124#622124: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:35 [emerg] 622124#622124: bind() to 0.0.0.0:9001 failed (98: Unknown error) +2025/08/20 09:10:35 [notice] 622124#622124: try again to bind() after 500ms +2025/08/20 09:10:35 [debug] 622124#622124: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:35 [emerg] 622124#622124: bind() to 0.0.0.0:9001 failed (98: Unknown error) +2025/08/20 09:10:35 [notice] 622124#622124: try again to bind() after 500ms +2025/08/20 09:10:35 [debug] 622124#622124: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:35 [emerg] 622124#622124: bind() to 0.0.0.0:9001 failed (98: Unknown error) +2025/08/20 09:10:35 [notice] 622124#622124: try again to bind() after 500ms +2025/08/20 09:10:35 [debug] 622124#622124: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:35 [emerg] 622124#622124: bind() to 0.0.0.0:9001 failed (98: Unknown error) +2025/08/20 09:10:35 [notice] 622124#622124: try again to bind() after 500ms +2025/08/20 09:10:35 [debug] 622124#622124: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:35 [emerg] 622124#622124: bind() to 0.0.0.0:9001 failed (98: Unknown error) +2025/08/20 09:10:35 [notice] 622124#622124: try again to bind() after 500ms +2025/08/20 09:10:35 [emerg] 622124#622124: still could not bind() +2025/08/20 09:10:50 [notice] 621848#621848: signal 15 (SIGTERM) received from 622163, exiting +2025/08/20 09:10:50 [notice] 621847#621847: signal 15 (SIGTERM) received from 622163, exiting +2025/08/20 09:10:50 [info] 621848#621848: epoll_wait() failed (4: Interrupted system call) +2025/08/20 09:10:50 [debug] 621848#621848: timer delta: 167629 +2025/08/20 09:10:50 [notice] 621848#621848: exiting +2025/08/20 09:10:50 [debug] 621848#621848: flush files +2025/08/20 09:10:50 [debug] 621847#621847: wake up, sigio 0 +2025/08/20 09:10:50 [debug] 621848#621848: run cleanup: 00005A8EA5702A80 +2025/08/20 09:10:50 [debug] 621847#621847: child: 0 621848 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:10:50 [debug] 621848#621848: run cleanup: 00005A8EA56F5A18 +2025/08/20 09:10:50 [debug] 621848#621848: cleanup resolver +2025/08/20 09:10:50 [debug] 621847#621847: termination cycle: 50 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA5703DE0 +2025/08/20 09:10:50 [debug] 621847#621847: sigsuspend +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56F6BE0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56D5B50 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56D4A40 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56CEA10 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56CD950 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56CC890 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56CB7D0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56C3170 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56BA140, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56C4580, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56CFA20, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56D6B60, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56DAB70, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56DEB80, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56E2B90, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56E6BA0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56EABB0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56EEBC0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56F2BD0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56F7DB0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56FBDC0, unused: 0 +2025/08/20 09:10:50 [debug] 621848#621848: free: 00005A8EA56FFDD0, unused: 4920 +2025/08/20 09:10:50 [notice] 621848#621848: exit +2025/08/20 09:10:50 [notice] 621847#621847: signal 17 (SIGCHLD) received from 621848 +2025/08/20 09:10:50 [notice] 621847#621847: worker process 621848 exited with code 0 +2025/08/20 09:10:50 [debug] 621847#621847: shmtx forced unlock +2025/08/20 09:10:50 [debug] 621847#621847: wake up, sigio 3 +2025/08/20 09:10:50 [debug] 621847#621847: reap children +2025/08/20 09:10:50 [debug] 621847#621847: child: 0 621848 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:10:50 [notice] 621847#621847: exit +2025/08/20 09:10:50 [debug] 621847#621847: close listening 0.0.0.0:9001 #5 +2025/08/20 09:10:50 [debug] 621847#621847: run cleanup: 00005A8EA56F5A18 +2025/08/20 09:10:50 [debug] 621847#621847: cleanup resolver +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA5703DE0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56F6BE0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56D5B50 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56D4A40 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56CEA10 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56CD950 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56CC890 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56CB7D0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56C3170 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56BA140, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56C4580, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56CFA20, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56D6B60, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56DAB70, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56DEB80, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56E2B90, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56E6BA0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56EABB0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56EEBC0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56F2BD0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56F7DB0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56FBDC0, unused: 0 +2025/08/20 09:10:50 [debug] 621847#621847: free: 00005A8EA56FFDD0, unused: 4951 +2025/08/20 09:10:52 [debug] 622181#622181: bind() 0.0.0.0:9001 #5 +2025/08/20 09:10:52 [notice] 622181#622181: using the "epoll" event method +2025/08/20 09:10:52 [debug] 622181#622181: counter: 0000718FB55B6080, 1 +2025/08/20 09:10:52 [notice] 622181#622181: nginx/1.18.0 (Ubuntu) +2025/08/20 09:10:52 [notice] 622181#622181: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:10:52 [notice] 622181#622181: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:10:52 [debug] 622182#622181: write: 6, 00007FFFAF45B5B0, 7, 0 +2025/08/20 09:10:52 [debug] 622182#622182: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:10:52 [notice] 622182#622182: start worker processes +2025/08/20 09:10:52 [debug] 622182#622182: channel 6:7 +2025/08/20 09:10:52 [notice] 622182#622182: start worker process 622183 +2025/08/20 09:10:52 [debug] 622182#622182: sigsuspend +2025/08/20 09:10:52 [debug] 622183#622183: add cleanup: 000064D666376A80 +2025/08/20 09:10:52 [debug] 622183#622183: malloc: 000064D666329BD0:8 +2025/08/20 09:10:52 [debug] 622183#622183: notify eventfd: 9 +2025/08/20 09:10:52 [debug] 622183#622183: testing the EPOLLRDHUP flag: success +2025/08/20 09:10:52 [debug] 622183#622183: malloc: 000064D66633C590:6144 +2025/08/20 09:10:52 [debug] 622183#622183: malloc: 0000718FB53AE010:237568 +2025/08/20 09:10:52 [debug] 622183#622183: malloc: 000064D6663796B0:98304 +2025/08/20 09:10:52 [debug] 622183#622183: malloc: 000064D6663916C0:98304 +2025/08/20 09:10:52 [debug] 622183#622183: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:10:52 [debug] 622183#622183: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:10:52 [debug] 622183#622183: setproctitle: "nginx: worker process" +2025/08/20 09:10:52 [debug] 622183#622183: worker cycle +2025/08/20 09:10:52 [debug] 622183#622183: epoll timer: -1 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:5 ev:0001 d:0000718FB53AE010 +2025/08/20 09:11:48 [debug] 622183#622183: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:11:48 [debug] 622183#622183: posix_memalign: 000064D666328840:512 @16 +2025/08/20 09:11:48 [debug] 622183#622183: *1 accept: 127.0.0.1:55272 fd:6 +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer add: 6: 60000:262301583 +2025/08/20 09:11:48 [debug] 622183#622183: *1 reusable connection: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 56010 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:6 ev:0001 d:0000718FB53AE1E0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http wait request handler +2025/08/20 09:11:48 [debug] 622183#622183: *1 malloc: 000064D66632B0A0:1024 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:6 133 of 1024 +2025/08/20 09:11:48 [debug] 622183#622183: *1 reusable connection: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 posix_memalign: 000064D666347A30:4096 @16 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http process request line +2025/08/20 09:11:48 [debug] 622183#622183: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http uri: "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http args: "" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http exten: "" +2025/08/20 09:11:48 [debug] 622183#622183: *1 posix_memalign: 000064D66633DDA0:4096 @16 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http process request header line +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header: "Host: localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header: "Accept: */*" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header: "Content-Type: text/plain" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header: "Content-Length: 4" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http header done +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer del: 6: 262301583 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 rewrite phase: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: "/health" +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:11:48 [debug] 622183#622183: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:11:48 [debug] 622183#622183: *1 using configuration "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http cl:4 max:104857600 +2025/08/20 09:11:48 [debug] 622183#622183: *1 rewrite phase: 3 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "PUT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script regex: "^(PUT)$" +2025/08/20 09:11:48 [notice] 622183#622183: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script if +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script if: false +2025/08/20 09:11:48 [debug] 622183#622183: *1 post rewrite phase: 4 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 5 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 6 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 7 +2025/08/20 09:11:48 [debug] 622183#622183: *1 access phase: 8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 access phase: 9 +2025/08/20 09:11:48 [debug] 622183#622183: *1 access phase: 10 +2025/08/20 09:11:48 [debug] 622183#622183: *1 post access phase: 11 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 12 +2025/08/20 09:11:48 [debug] 622183#622183: *1 generic phase: 13 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http client request body preread 4 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http request body content length filter +2025/08/20 09:11:48 [debug] 622183#622183: *1 http body new buf t:1 f:0 000064D66632B121, pos 000064D66632B121, size: 4 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http init upstream, client timer: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "QUERY_STRING" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REQUEST_METHOD" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "PUT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "CONTENT_TYPE" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "text/plain" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "4" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "CONTENT_LENGTH: 4" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SCRIPT_NAME" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REQUEST_URI" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "DOCUMENT_URI" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "./blobs" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "HTTP/1.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "http" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "CGI/1.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "nginx/" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "1.18.0" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REMOTE_ADDR" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "127.0.0.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REMOTE_PORT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "55272" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REMOTE_PORT: 55272" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SERVER_ADDR" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "127.0.0.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SERVER_PORT" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SERVER_NAME" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "localhost" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "200" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script var: "./blobs" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:11:48 [debug] 622183#622183: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 4" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http cleanup add: 000064D66633EBB0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 get rr peer, try: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 stream socket 10 +2025/08/20 09:11:48 [debug] 622183#622183: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:11:48 [debug] 622183#622183: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 09:11:48 [debug] 622183#622183: *1 connected +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream connect: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 posix_memalign: 000064D666311F20:128 @16 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream send request +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream send request body +2025/08/20 09:11:48 [debug] 622183#622183: *1 chain writer buf fl:0 s:576 +2025/08/20 09:11:48 [debug] 622183#622183: *1 chain writer buf fl:0 s:4 +2025/08/20 09:11:48 [debug] 622183#622183: *1 chain writer buf fl:0 s:12 +2025/08/20 09:11:48 [debug] 622183#622183: *1 chain writer in: 000064D66633EC20 +2025/08/20 09:11:48 [debug] 622183#622183: *1 writev: 592 of 592 +2025/08/20 09:11:48 [debug] 622183#622183: *1 chain writer out: 0000000000000000 +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer add: 10: 60000:262301583 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http request count:2 blk:0 +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:6 ev:0004 d:0000718FB53AE1E0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http run request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream check client, write event:1, "/upload" +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:10 ev:0005 d:0000718FB53AE2C8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process header +2025/08/20 09:11:48 [debug] 622183#622183: *1 malloc: 000064D666332150:4096 +2025/08/20 09:11:48 [debug] 622183#622183: *1 posix_memalign: 000064D666333160:4096 @16 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:10 48 of 4096 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 21 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 33 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream dummy handler +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 59998 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:10 ev:0005 d:0000718FB53AE2C8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process header +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:10 512 of 4048 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: F8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 504 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:11:48] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=4 +DEBUG: Raw Authorization header: NULL +LOG: [2025-08-20 09:11:48] PUT /upload - Auth: anonymous - Status: 0 +DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: testrz +DEBUG-LAAN: Calculated SHA-256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream dummy handler +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 59998 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:10 ev:0005 d:0000718FB53AE2C8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process header +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:10 512 of 4096 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: F8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 504 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "0a08 +AUTH: About to perform authentication - auth_header present: NO +DEBUG: Authentication passed, uploader_pubkey: anonymous +DEBUG: Saving file to: blobs/9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08.txt +DEBUG: Successfully saved DEBUG: Content-Disposition header: NULL +DEBUG: No Content-Disposition header provided +DEBUG: Final filename after extraction: NULL +DEBUG: insert_blob_metadata() called for sha256='9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08'" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream dummy handler +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 59998 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:10 ev:0005 d:0000718FB53AE2C8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process header +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:10 512 of 4096 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: F8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 504 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "DEBUG: Opening database at path: db/ginxsom.db +DEBUG: Database opened successfully for writing +DEBUG: Preparing SQL: INSERT INTO blobs (sha256, size, type, uploaded_at, uploader_pubkey, filename) VALUES (?, ?, ?, ?, ?, ?) +DEBUG: SQL prepared successfully, binding parameters +DEBUG: Parameter values to bind: +DEBUG: 1. sha256 = '9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08' +DEBUG: 2. size = 4 +DEBUG: 3. type = 'text/plain' +DEBUG: 4. uploaded_at = 1755695508 +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:0, avail:0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream dummy handler +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 59996 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:10 ev:2005 d:0000718FB53AE2C8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream request: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process header +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:1, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:10 984 of 4096 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: F8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 504 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "5. uploader_pubkey = 'NULL' +DEBUG: 6. filename = 'NULL' +DEBUG: Binding parameter 1 (sha256) +DEBUG: Binding parameter 2 (size) +DEBUG: Binding parameter 3 (type) +DEBUG: Binding parameter 4 (uploaded_at) +DEBUG: Binding parameter 5 (uploader_pubkey) +DEBUG: Binding uploader_pubkey as NULL +DEBUG: Binding parameter 6 (filename) +DEBUG: Binding filename as NULL +DEBUG: Parameters bound, executing INSERT +DEBUG: INSERT failed - blob already exists (duplicate sha256) +DEBUG: Database closed, returni" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 78 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 120 +2025/08/20 09:11:48 [error] 622183#622183: *1 FastCGI sent in stderr: "ng 1 +DEBUG: Blob metadata successfully stored in database +DEBUG: Upload completed successfully with database storage" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 07 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 06 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 2B +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 05 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 299 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi parser: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi header: "Status: 200 OK" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi parser: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi parser: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi header done +2025/08/20 09:11:48 [debug] 622183#622183: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:11:48 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +X-Content-Type-Options: nosniff +X-Frame-Options: DENY +X-XSS-Protection: 1; mode=block + +2025/08/20 09:11:48 [debug] 622183#622183: *1 write new buf t:1 f:0 000064D666333300, pos 000064D666333300, size: 260 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http write filter: l:0 f:0 s:260 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http cacheable: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream process upstream +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe read upstream: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe preread: 278 +2025/08/20 09:11:48 [debug] 622183#622183: *1 readv: eof:1, avail:0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 readv: 1, last:3112 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe recv chain: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe buf free s:0 t:1 f:0 000064D666332150, pos 000064D666332412, size: 278 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe length: -1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 input buf #0 000064D666332412 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 06 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi closed stdout +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 03 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 01 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 08 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record byte: 00 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi record length: 8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http fastcgi sent end request +2025/08/20 09:11:48 [debug] 622183#622183: *1 input buf 000064D666332412 249 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe write downstream: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe write downstream flush in +2025/08/20 09:11:48 [debug] 622183#622183: *1 http output filter "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http copy filter: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http postpone filter "/upload?" 000064D66633EBF0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http chunk: 249 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write old buf t:1 f:0 000064D666333300, pos 000064D666333300, size: 260 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write new buf t:1 f:0 000064D66633ED60, pos 000064D66633ED60, size: 4 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write new buf t:1 f:0 000064D666332150, pos 000064D666332412, size: 249 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write new buf t:0 f:0 0000000000000000, pos 000064D657F962E8, size: 2 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http write filter: l:0 f:0 s:515 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http copy filter: 0 "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 pipe write downstream done +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer: 10, old: 262301583, new: 262301587 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream exit: 0000000000000000 +2025/08/20 09:11:48 [debug] 622183#622183: *1 finalize http upstream request: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 finalize http fastcgi request +2025/08/20 09:11:48 [debug] 622183#622183: *1 free rr peer 1 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 close http upstream connection: 10 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D666311F20, unused: 48 +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer del: 10: 262301583 +2025/08/20 09:11:48 [debug] 622183#622183: *1 reusable connection: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http upstream temp fd: -1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http output filter "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http copy filter: "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http postpone filter "/upload?" 00007FFFAF45B1F0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http chunk: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write old buf t:1 f:0 000064D666333300, pos 000064D666333300, size: 260 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write old buf t:1 f:0 000064D66633ED60, pos 000064D66633ED60, size: 4 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write old buf t:1 f:0 000064D666332150, pos 000064D666332412, size: 249 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write old buf t:0 f:0 0000000000000000, pos 000064D657F962E8, size: 2 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 write new buf t:0 f:0 0000000000000000, pos 000064D657F962E5, size: 5 file: 0, size: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http write filter: l:1 f:0 s:520 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http write filter limit 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 writev: 520 of 520 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http write filter 0000000000000000 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http copy filter: 0 "/upload?" +2025/08/20 09:11:48 [debug] 622183#622183: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 set http keepalive handler +2025/08/20 09:11:48 [debug] 622183#622183: *1 http close request +2025/08/20 09:11:48 [debug] 622183#622183: *1 http log handler +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D666332150 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D666347A30, unused: 3 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D66633DDA0, unused: 8 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D666333160, unused: 2426 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D66632B0A0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 hc free: 0000000000000000 +2025/08/20 09:11:48 [debug] 622183#622183: *1 hc busy: 0000000000000000 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 tcp_nodelay +2025/08/20 09:11:48 [debug] 622183#622183: *1 reusable connection: 1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer add: 6: 65000:262306587 +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: 65000 +2025/08/20 09:11:48 [debug] 622183#622183: epoll: fd:6 ev:2005 d:0000718FB53AE1E0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 http keepalive handler +2025/08/20 09:11:48 [debug] 622183#622183: *1 malloc: 000064D66632B0A0:1024 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: eof:1, avail:-1 +2025/08/20 09:11:48 [debug] 622183#622183: *1 recv: fd:6 0 of 1024 +2025/08/20 09:11:48 [info] 622183#622183: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:11:48 [debug] 622183#622183: *1 close http connection: 6 +2025/08/20 09:11:48 [debug] 622183#622183: *1 event timer del: 6: 262306587 +2025/08/20 09:11:48 [debug] 622183#622183: *1 reusable connection: 0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D66632B0A0 +2025/08/20 09:11:48 [debug] 622183#622183: *1 free: 000064D666328840, unused: 120 +2025/08/20 09:11:48 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:11:48 [debug] 622183#622183: worker cycle +2025/08/20 09:11:48 [debug] 622183#622183: epoll timer: -1 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:5 ev:0001 d:0000718FB53AE010 +2025/08/20 09:13:05 [debug] 622183#622183: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:13:05 [debug] 622183#622183: posix_memalign: 000064D666328840:512 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *3 accept: 127.0.0.1:54670 fd:6 +2025/08/20 09:13:05 [debug] 622183#622183: *3 event timer add: 6: 60000:262378155 +2025/08/20 09:13:05 [debug] 622183#622183: *3 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 76566 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:0001 d:0000718FB53AE1E1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http wait request handler +2025/08/20 09:13:05 [debug] 622183#622183: *3 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *3 recv: eof:0, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 recv: fd:6 84 of 1024 +2025/08/20 09:13:05 [debug] 622183#622183: *3 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 posix_memalign: 000064D666347A30:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http process request line +2025/08/20 09:13:05 [debug] 622183#622183: *3 http request line: "GET /health HTTP/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http uri: "/health" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http args: "" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http exten: "" +2025/08/20 09:13:05 [debug] 622183#622183: *3 posix_memalign: 000064D66633DDA0:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http process request header line +2025/08/20 09:13:05 [debug] 622183#622183: *3 http header: "Host: localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http header: "Accept: */*" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http header done +2025/08/20 09:13:05 [debug] 622183#622183: *3 event timer del: 6: 262378155 +2025/08/20 09:13:05 [debug] 622183#622183: *3 generic phase: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 rewrite phase: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 test location: "/health" +2025/08/20 09:13:05 [debug] 622183#622183: *3 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *3 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:13:05 [debug] 622183#622183: *3 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *3 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *3 using configuration "/health" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http cl:-1 max:104857600 +2025/08/20 09:13:05 [debug] 622183#622183: *3 rewrite phase: 3 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http set discard body +2025/08/20 09:13:05 [debug] 622183#622183: *3 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:13:05 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:13:05 [debug] 622183#622183: *3 write new buf t:1 f:0 000064D66633E180, pos 000064D66633E180, size: 196 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http write filter: l:0 f:0 s:196 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http output filter "/health?" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http copy filter: "/health?" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http postpone filter "/health?" 00007FFFAF45B140 +2025/08/20 09:13:05 [debug] 622183#622183: *3 write old buf t:1 f:0 000064D66633E180, pos 000064D66633E180, size: 196 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 write new buf t:0 f:0 0000000000000000, pos 000064D666365B42, size: 3 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http write filter: l:1 f:0 s:199 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http write filter limit 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 writev: 199 of 199 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http write filter 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http copy filter: 0 "/health?" +2025/08/20 09:13:05 [debug] 622183#622183: *3 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 set http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *3 http close request +2025/08/20 09:13:05 [debug] 622183#622183: *3 http log handler +2025/08/20 09:13:05 [debug] 622183#622183: *3 free: 000064D666347A30, unused: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 free: 000064D66633DDA0, unused: 2736 +2025/08/20 09:13:05 [debug] 622183#622183: *3 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 hc free: 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *3 hc busy: 0000000000000000 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 tcp_nodelay +2025/08/20 09:13:05 [debug] 622183#622183: *3 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 event timer add: 6: 65000:262383155 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 65000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:2001 d:0000718FB53AE1E1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *3 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *3 recv: eof:1, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *3 recv: fd:6 0 of 1024 +2025/08/20 09:13:05 [info] 622183#622183: *3 client 127.0.0.1 closed keepalive connection +2025/08/20 09:13:05 [debug] 622183#622183: *3 close http connection: 6 +2025/08/20 09:13:05 [debug] 622183#622183: *3 event timer del: 6: 262383155 +2025/08/20 09:13:05 [debug] 622183#622183: *3 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *3 free: 000064D666328840, unused: 136 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 1 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: -1 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:5 ev:0001 d:0000718FB53AE010 +2025/08/20 09:13:05 [debug] 622183#622183: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:13:05 [debug] 622183#622183: posix_memalign: 000064D666328840:512 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *4 accept: 127.0.0.1:54672 fd:6 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer add: 6: 60000:262378457 +2025/08/20 09:13:05 [debug] 622183#622183: *4 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 301 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:0001 d:0000718FB53AE1E0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http wait request handler +2025/08/20 09:13:05 [debug] 622183#622183: *4 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:0, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: fd:6 1024 of 1024 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: avail:112 +2025/08/20 09:13:05 [debug] 622183#622183: *4 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 posix_memalign: 000064D666347A30:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http process request line +2025/08/20 09:13:05 [debug] 622183#622183: *4 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http uri: "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http args: "" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http exten: "" +2025/08/20 09:13:05 [debug] 622183#622183: *4 posix_memalign: 000064D66633DDA0:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http process request header line +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Host: localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Accept: */*" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhY2E4NmMzMDAwYWFiMmZmMDRjZTFjZGMwYWE2MWJmZTdmZjI0MmIxYTQ2ZjE4NmFlMTQ1NDRhZjJkNzNiOWRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU1ODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiZjViOTRiYjA2YWNkNTc3MWE0MWRjODY4NzY0YjQxODYxNzg5YTc2ZDFmMzEyYTFlNzE4N2RmMmY3YmE3ZTcyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTE4NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjRlMGU3YmU5ZGQyYzgyN2M1ODFjMjQ2MWE5YjMxMzM2MTQ2YjZkMTFmZWIwODRhNGRhMzQ5NTVkODQ2NTc2YzljZTg0OTFkOWIwN2ZkZWM2ZTg2ODhmODcxODRjNGUzODQwYTAxMTk2NTk5ZWI0MjgxMWIyOWRjZWU5MGIxMjc5In0=" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Content-Type: text/plain" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Content-Disposition: attachment; filename="test_blob_1755695585.txt"" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header: "Content-Length: 296" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http header done +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer del: 6: 262378457 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 rewrite phase: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: "/health" +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *4 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *4 using configuration "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http cl:296 max:104857600 +2025/08/20 09:13:05 [debug] 622183#622183: *4 rewrite phase: 3 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "PUT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script regex: "^(PUT)$" +2025/08/20 09:13:05 [notice] 622183#622183: *4 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script if +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script if: false +2025/08/20 09:13:05 [debug] 622183#622183: *4 post rewrite phase: 4 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 5 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 6 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 7 +2025/08/20 09:13:05 [debug] 622183#622183: *4 access phase: 8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 access phase: 9 +2025/08/20 09:13:05 [debug] 622183#622183: *4 access phase: 10 +2025/08/20 09:13:05 [debug] 622183#622183: *4 post access phase: 11 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 12 +2025/08/20 09:13:05 [debug] 622183#622183: *4 generic phase: 13 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http client request body preread 184 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http request body content length filter +2025/08/20 09:13:05 [debug] 622183#622183: *4 http body new buf t:1 f:0 000064D66632B3E8, pos 000064D66632B3E8, size: 184 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http read client request body +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:0, avail:112 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: fd:6 112 of 112 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: avail:0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http client request body recv 112 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http body new buf t:1 f:0 000064D66633E830, pos 000064D66633E830, size: 112 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http client request body rest 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http init upstream, client timer: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:13:05 [debug] 622183#622183: *4 posix_memalign: 000064D666332150:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "QUERY_STRING" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "QUERY_STRING: " +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REQUEST_METHOD" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "PUT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "CONTENT_TYPE" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "text/plain" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "CONTENT_LENGTH" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "296" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SCRIPT_NAME" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REQUEST_URI" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "DOCUMENT_URI" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "./blobs" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "HTTP/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REQUEST_SCHEME" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "http" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "CGI/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "nginx/" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "1.18.0" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REMOTE_ADDR" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "127.0.0.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REMOTE_PORT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "54672" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REMOTE_PORT: 54672" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SERVER_ADDR" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "127.0.0.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SERVER_PORT" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SERVER_NAME" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "localhost" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "REDIRECT_STATUS" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "200" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script var: "./blobs" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http script copy: "/ginxsom.fcgi" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhY2E4NmMzMDAwYWFiMmZmMDRjZTFjZGMwYWE2MWJmZTdmZjI0MmIxYTQ2ZjE4NmFlMTQ1NDRhZjJkNzNiOWRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU1ODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiZjViOTRiYjA2YWNkNTc3MWE0MWRjODY4NzY0YjQxODYxNzg5YTc2ZDFmMzEyYTFlNzE4N2RmMmY3YmE3ZTcyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTE4NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjRlMGU3YmU5ZGQyYzgyN2M1ODFjMjQ2MWE5YjMxMzM2MTQ2YjZkMTFmZWIwODRhNGRhMzQ5NTVkODQ2NTc2YzljZTg0OTFkOWIwN2ZkZWM2ZTg2ODhmODcxODRjNGUzODQwYTAxMTk2NTk5ZWI0MjgxMWIyOWRjZWU5MGIxMjc5In0=" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755695585.txt"" +2025/08/20 09:13:05 [debug] 622183#622183: *4 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http cleanup add: 000064D66633EB80 +2025/08/20 09:13:05 [debug] 622183#622183: *4 get rr peer, try: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 stream socket 10 +2025/08/20 09:13:05 [debug] 622183#622183: *4 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:13:05 [debug] 622183#622183: *4 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #5 +2025/08/20 09:13:05 [debug] 622183#622183: *4 connected +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream connect: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 posix_memalign: 000064D666311F20:128 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream send request +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream send request body +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer buf fl:0 s:1304 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer buf fl:0 s:184 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer buf fl:0 s:8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer buf fl:0 s:112 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer buf fl:0 s:8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer in: 000064D66633EC10 +2025/08/20 09:13:05 [debug] 622183#622183: *4 writev: 1616 of 1616 +2025/08/20 09:13:05 [debug] 622183#622183: *4 chain writer out: 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer add: 10: 60000:262378458 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http request count:2 blk:0 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 1 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:0004 d:0000718FB53AE1E0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http run request: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream check client, write event:1, "/upload" +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:10 ev:0005 d:0000718FB53AE2C9 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream request: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream process header +2025/08/20 09:13:05 [debug] 622183#622183: *4 malloc: 000064D666333160:4096 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:0, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: fd:10 4096 of 4096 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: avail:560 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 21 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 33 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:13:05] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhY2E4NmMzMDAwYWFiMmZmMDRjZTFjZGMwYWE2MWJmZTdmZjI0MmIxYTQ2ZjE4NmFlMTQ1NDRhZjJkNzNiOWRjIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTU1ODUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiZjViOTRiYjA2YWNkNTc3MWE0MWRjODY4NzY0YjQxODYxNzg5YTc2ZDFmMzEyYTFlNzE4N2RmMmY3YmE3ZTcyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTE4NSJdXSwiY29udGVudCI6IiIsInNpZyI6IjRlMGU3YmU5ZGQyYzgyN2M1ODFjMjQ2MWE5YjMxMzM2MTQ2YjZkMTFmZWIwODRhNGRhMzQ5NTVkODQ2NTc2YzljZTg0OTFkOWIwN2ZkZWM2ZTg2ODhmODcxODRjNGUzODQwYTAxMTk2NTk5ZWI0MjgxMWIyOWRjZWU5MGIxMjc5In0= +LOG: [2025-08-20 09:13:05] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:13:05-04:00 +Random data: cb2a9a84e71c705f9f91f7045a88251158f5f9ae640cfdbfce9546d292b1b424 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. +1 +DEBUG-LAAN: Calculated SHA-256: bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72 +AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authent" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "icate_request with hash: bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "ba7e72 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhY2E4NmMzMDAwYWFi... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"aca86c3000aab2ff04ce1cdc0aa61bfe7ff242b1a46f186ae14544af2d7" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "3b9dc","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695585,"tags":[["t","upload"],["x","bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72"],["expiration","1755699185"]],"content":"","sig":"4e0e7be9dd2c827c581c2461a9b31336146b6d11feb084a4da34955d846576c9ce8491d9b07fdec6e8688f87184c4e3840a01196599eb42811b29dcee90b1279"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "aca86c3000aab2ff04c" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "e1cdc0aa61bfe7ff242b1a46f186ae14544af2d73b9dc", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695585, + "tags": [["t", "upload"], ["x", "bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72"], ["expiration", "1755699185"]], + "content": "", + "sig": "4e0e7be9dd2c827c581c2461a9b31336146b6d11feb084a4da34955d846576c9ce8491d9b07fdec6e8688f87184c4e3840a01196599eb42811b29dcee90b1279" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ I" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "NFO: id: aca86c3000aab2ff04ce1cdc0aa61bfe7ff242b1a46f186ae14544af2d73b9dc +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 4e0e7be9dd2c827c581c2461a9b31336146b6d11feb084a4da34955d846576c9ce8491d9b07fdec6e8688f87184c4e3840a01196599eb42811b29dcee90b1279 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695585 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be6" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:0, avail:560 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: fd:10 1432 of 4096 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: avail:0 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "67ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f28" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "15b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercas" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: F8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 504 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "e hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 6E +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 02 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 110 +2025/08/20 09:13:05 [error] 622183#622183: *4 FastCGI sent in stderr: "authenticate_request returned: -32 +LOG: [2025-08-20 09:13:05] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 07 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 06 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: C7 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 199 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi parser: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi parser: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi parser: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi header done +2025/08/20 09:13:05 [debug] 622183#622183: *4 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:13:05 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:13:05 [debug] 622183#622183: *4 write new buf t:1 f:0 000064D666332808, pos 000064D666332808, size: 181 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http write filter: l:0 f:0 s:181 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http cacheable: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream process upstream +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe read upstream: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe preread: 164 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe buf free s:0 t:1 f:0 000064D666333160, pos 000064D666333654, size: 164 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe length: -1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write downstream: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write busy: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write: out:0000000000000000, f:0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe read upstream: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe buf free s:0 t:1 f:0 000064D666333160, pos 000064D666333654, size: 164 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe length: -1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer: 10, old: 262378458, new: 262378460 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream request: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream dummy handler +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 59998 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:10 ev:2005 d:0000718FB53AE2C9 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream request: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream process upstream +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe read upstream: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 readv: eof:1, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 readv: 1, last:2664 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe recv chain: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe buf free s:0 t:1 f:0 000064D666333160, pos 000064D666333654, size: 164 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe length: -1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 input buf #0 000064D666333654 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 06 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi closed stdout +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 03 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 01 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 08 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record byte: 00 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi record length: 8 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http fastcgi sent end request +2025/08/20 09:13:05 [debug] 622183#622183: *4 input buf 000064D666333654 139 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write downstream: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write downstream flush in +2025/08/20 09:13:05 [debug] 622183#622183: *4 http output filter "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http copy filter: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http postpone filter "/upload?" 000064D66633EBE0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http chunk: 139 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write old buf t:1 f:0 000064D666332808, pos 000064D666332808, size: 181 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write new buf t:1 f:0 000064D66633ED78, pos 000064D66633ED78, size: 4 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write new buf t:1 f:0 000064D666333160, pos 000064D666333654, size: 139 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write new buf t:0 f:0 0000000000000000, pos 000064D657F962E8, size: 2 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http write filter: l:0 f:0 s:326 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http copy filter: 0 "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 pipe write downstream done +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer: 10, old: 262378458, new: 262378462 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream exit: 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *4 finalize http upstream request: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 finalize http fastcgi request +2025/08/20 09:13:05 [debug] 622183#622183: *4 free rr peer 1 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 close http upstream connection: 10 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D666311F20, unused: 48 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer del: 10: 262378458 +2025/08/20 09:13:05 [debug] 622183#622183: *4 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http upstream temp fd: -1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http output filter "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http copy filter: "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http postpone filter "/upload?" 00007FFFAF45B1F0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http chunk: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write old buf t:1 f:0 000064D666332808, pos 000064D666332808, size: 181 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write old buf t:1 f:0 000064D66633ED78, pos 000064D66633ED78, size: 4 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write old buf t:1 f:0 000064D666333160, pos 000064D666333654, size: 139 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write old buf t:0 f:0 0000000000000000, pos 000064D657F962E8, size: 2 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 write new buf t:0 f:0 0000000000000000, pos 000064D657F962E5, size: 5 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http write filter: l:1 f:0 s:331 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http write filter limit 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 writev: 331 of 331 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http write filter 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http copy filter: 0 "/upload?" +2025/08/20 09:13:05 [debug] 622183#622183: *4 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 set http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *4 http close request +2025/08/20 09:13:05 [debug] 622183#622183: *4 http log handler +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D666333160 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D666347A30, unused: 3 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D66633DDA0, unused: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D666332150, unused: 1250 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 hc free: 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *4 hc busy: 0000000000000000 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 tcp_nodelay +2025/08/20 09:13:05 [debug] 622183#622183: *4 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer add: 6: 65000:262383462 +2025/08/20 09:13:05 [debug] 622183#622183: *4 post event 000064D666379770 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:13:05 [debug] 622183#622183: posted event 000064D666379770 +2025/08/20 09:13:05 [debug] 622183#622183: *4 delete posted event 000064D666379770 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *4 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:0, avail:0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 65000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:2005 d:0000718FB53AE1E0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *4 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: eof:1, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *4 recv: fd:6 0 of 1024 +2025/08/20 09:13:05 [info] 622183#622183: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 09:13:05 [debug] 622183#622183: *4 close http connection: 6 +2025/08/20 09:13:05 [debug] 622183#622183: *4 event timer del: 6: 262383462 +2025/08/20 09:13:05 [debug] 622183#622183: *4 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *4 free: 000064D666328840, unused: 120 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: -1 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:5 ev:0001 d:0000718FB53AE010 +2025/08/20 09:13:05 [debug] 622183#622183: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:13:05 [debug] 622183#622183: posix_memalign: 000064D666328840:512 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *6 accept: 127.0.0.1:54684 fd:6 +2025/08/20 09:13:05 [debug] 622183#622183: *6 event timer add: 6: 60000:262378475 +2025/08/20 09:13:05 [debug] 622183#622183: *6 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 11 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 60000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:0001 d:0000718FB53AE1E1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http wait request handler +2025/08/20 09:13:05 [debug] 622183#622183: *6 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *6 recv: eof:0, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 recv: fd:6 142 of 1024 +2025/08/20 09:13:05 [debug] 622183#622183: *6 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 posix_memalign: 000064D666347A30:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http process request line +2025/08/20 09:13:05 [debug] 622183#622183: *6 http request line: "GET /bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72 HTTP/1.1" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http uri: "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http args: "" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http exten: "" +2025/08/20 09:13:05 [debug] 622183#622183: *6 posix_memalign: 000064D66633DDA0:4096 @16 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http process request header line +2025/08/20 09:13:05 [debug] 622183#622183: *6 http header: "Host: localhost:9001" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http header: "Accept: */*" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http header done +2025/08/20 09:13:05 [debug] 622183#622183: *6 event timer del: 6: 262378475 +2025/08/20 09:13:05 [debug] 622183#622183: *6 generic phase: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 rewrite phase: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 test location: "/health" +2025/08/20 09:13:05 [debug] 622183#622183: *6 test location: "/debug/list" +2025/08/20 09:13:05 [debug] 622183#622183: *6 test location: "/" +2025/08/20 09:13:05 [debug] 622183#622183: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *6 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http cl:-1 max:104857600 +2025/08/20 09:13:05 [debug] 622183#622183: *6 rewrite phase: 3 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http script var +2025/08/20 09:13:05 [debug] 622183#622183: *6 http script var: "GET" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http script value: "DELETE" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http script not equal +2025/08/20 09:13:05 [debug] 622183#622183: *6 http script if +2025/08/20 09:13:05 [debug] 622183#622183: *6 http finalize request: 404, "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" a:1, c:1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http special response: 404, "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http set discard body +2025/08/20 09:13:05 [debug] 622183#622183: *6 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:13:05 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:13:05 [debug] 622183#622183: *6 write new buf t:1 f:0 000064D66633E180, pos 000064D66633E180, size: 164 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http write filter: l:0 f:0 s:164 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http output filter "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http copy filter: "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http postpone filter "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" 000064D66633E310 +2025/08/20 09:13:05 [debug] 622183#622183: *6 write old buf t:1 f:0 000064D66633E180, pos 000064D66633E180, size: 164 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 write new buf t:0 f:0 0000000000000000, pos 000064D657FD5580, size: 100 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 write new buf t:0 f:0 0000000000000000, pos 000064D657FD5C80, size: 62 file: 0, size: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http write filter: l:1 f:0 s:326 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http write filter limit 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 writev: 326 of 326 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http write filter 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http copy filter: 0 "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" +2025/08/20 09:13:05 [debug] 622183#622183: *6 http finalize request: 0, "/bf5b94bb06acd5771a41dc868764b41861789a76d1f312a1e7187df2f7ba7e72?" a:1, c:1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 set http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *6 http close request +2025/08/20 09:13:05 [debug] 622183#622183: *6 http log handler +2025/08/20 09:13:05 [debug] 622183#622183: *6 free: 000064D666347A30, unused: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 free: 000064D66633DDA0, unused: 2456 +2025/08/20 09:13:05 [debug] 622183#622183: *6 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 hc free: 0000000000000000 +2025/08/20 09:13:05 [debug] 622183#622183: *6 hc busy: 0000000000000000 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 tcp_nodelay +2025/08/20 09:13:05 [debug] 622183#622183: *6 reusable connection: 1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 event timer add: 6: 65000:262383475 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 0 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: 65000 +2025/08/20 09:13:05 [debug] 622183#622183: epoll: fd:6 ev:2001 d:0000718FB53AE1E1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 http keepalive handler +2025/08/20 09:13:05 [debug] 622183#622183: *6 malloc: 000064D66632B0A0:1024 +2025/08/20 09:13:05 [debug] 622183#622183: *6 recv: eof:1, avail:-1 +2025/08/20 09:13:05 [debug] 622183#622183: *6 recv: fd:6 0 of 1024 +2025/08/20 09:13:05 [info] 622183#622183: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 09:13:05 [debug] 622183#622183: *6 close http connection: 6 +2025/08/20 09:13:05 [debug] 622183#622183: *6 event timer del: 6: 262383475 +2025/08/20 09:13:05 [debug] 622183#622183: *6 reusable connection: 0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 free: 000064D66632B0A0 +2025/08/20 09:13:05 [debug] 622183#622183: *6 free: 000064D666328840, unused: 136 +2025/08/20 09:13:05 [debug] 622183#622183: timer delta: 2 +2025/08/20 09:13:05 [debug] 622183#622183: worker cycle +2025/08/20 09:13:05 [debug] 622183#622183: epoll timer: -1 +2025/08/20 09:13:39 [notice] 622182#622182: signal 15 (SIGTERM) received from 623045, exiting +2025/08/20 09:13:39 [debug] 622182#622182: wake up, sigio 0 +2025/08/20 09:13:39 [debug] 622182#622182: child: 0 622183 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:13:39 [debug] 622182#622182: termination cycle: 50 +2025/08/20 09:13:39 [debug] 622182#622182: sigsuspend +2025/08/20 09:13:39 [debug] 622183#622183: epoll: fd:7 ev:0001 d:0000718FB53AE0F8 +2025/08/20 09:13:39 [debug] 622183#622183: channel handler +2025/08/20 09:13:39 [debug] 622183#622183: channel: 32 +2025/08/20 09:13:39 [debug] 622183#622183: channel command: 4 +2025/08/20 09:13:39 [debug] 622183#622183: channel: -2 +2025/08/20 09:13:39 [debug] 622183#622183: timer delta: 34527 +2025/08/20 09:13:39 [notice] 622183#622183: exiting +2025/08/20 09:13:39 [debug] 622183#622183: flush files +2025/08/20 09:13:39 [debug] 622183#622183: run cleanup: 000064D666376A80 +2025/08/20 09:13:39 [debug] 622183#622183: run cleanup: 000064D666369A18 +2025/08/20 09:13:39 [debug] 622183#622183: cleanup resolver +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666377DE0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66636ABE0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666349B50 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666348A40 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666342A10 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666341950 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666340890 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66633F7D0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666337170 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66632E140, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666338580, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666343A20, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66634AB60, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66634EB70, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666352B80, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666356B90, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66635ABA0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66635EBB0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666362BC0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666366BD0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66636BDB0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D66636FDC0, unused: 0 +2025/08/20 09:13:39 [debug] 622183#622183: free: 000064D666373DD0, unused: 4920 +2025/08/20 09:13:39 [notice] 622183#622183: exit +2025/08/20 09:13:39 [notice] 622182#622182: signal 17 (SIGCHLD) received from 622183 +2025/08/20 09:13:39 [notice] 622182#622182: worker process 622183 exited with code 0 +2025/08/20 09:13:39 [debug] 622182#622182: shmtx forced unlock +2025/08/20 09:13:39 [debug] 622182#622182: wake up, sigio 3 +2025/08/20 09:13:39 [debug] 622182#622182: reap children +2025/08/20 09:13:39 [debug] 622182#622182: child: 0 622183 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:13:39 [notice] 622182#622182: exit +2025/08/20 09:13:39 [debug] 622182#622182: close listening 0.0.0.0:9001 #5 +2025/08/20 09:13:39 [debug] 622182#622182: run cleanup: 000064D666369A18 +2025/08/20 09:13:39 [debug] 622182#622182: cleanup resolver +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666377DE0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66636ABE0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666349B50 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666348A40 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666342A10 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666341950 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666340890 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66633F7D0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666337170 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66632E140, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666338580, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666343A20, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66634AB60, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66634EB70, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666352B80, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666356B90, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66635ABA0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66635EBB0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666362BC0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666366BD0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66636BDB0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D66636FDC0, unused: 0 +2025/08/20 09:13:39 [debug] 622182#622182: free: 000064D666373DD0, unused: 4951 +2025/08/20 09:13:44 [debug] 623111#623111: bind() 0.0.0.0:9001 #5 +2025/08/20 09:13:44 [debug] 623111#623111: counter: 00007C6E1C3A0080, 1 +2025/08/20 09:13:44 [debug] 623112#623112: bind() 0.0.0.0:9001 #5 +2025/08/20 09:13:44 [notice] 623112#623112: using the "epoll" event method +2025/08/20 09:13:44 [debug] 623112#623112: counter: 00007F7B7C8F4080, 1 +2025/08/20 09:13:44 [notice] 623112#623112: nginx/1.18.0 (Ubuntu) +2025/08/20 09:13:44 [notice] 623112#623112: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:13:44 [notice] 623112#623112: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:13:44 [debug] 623113#623112: write: 6, 00007FFC96668220, 7, 0 +2025/08/20 09:13:44 [debug] 623113#623113: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:13:44 [notice] 623113#623113: start worker processes +2025/08/20 09:13:44 [debug] 623113#623113: channel 6:7 +2025/08/20 09:13:44 [notice] 623113#623113: start worker process 623114 +2025/08/20 09:13:44 [debug] 623113#623113: sigsuspend +2025/08/20 09:13:44 [debug] 623114#623114: add cleanup: 0000627587190A80 +2025/08/20 09:13:44 [debug] 623114#623114: malloc: 0000627587143BD0:8 +2025/08/20 09:13:44 [debug] 623114#623114: notify eventfd: 9 +2025/08/20 09:13:44 [debug] 623114#623114: testing the EPOLLRDHUP flag: success +2025/08/20 09:13:44 [debug] 623114#623114: malloc: 0000627587156590:6144 +2025/08/20 09:13:44 [debug] 623114#623114: malloc: 00007F7B7C6EC010:237568 +2025/08/20 09:13:44 [debug] 623114#623114: malloc: 00006275871936B0:98304 +2025/08/20 09:13:44 [debug] 623114#623114: malloc: 00006275871AB6C0:98304 +2025/08/20 09:13:44 [debug] 623114#623114: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:13:44 [debug] 623114#623114: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:13:44 [debug] 623114#623114: setproctitle: "nginx: worker process" +2025/08/20 09:13:44 [debug] 623114#623114: worker cycle +2025/08/20 09:13:44 [debug] 623114#623114: epoll timer: -1 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:5 ev:0001 d:00007F7B7C6EC010 +2025/08/20 09:14:03 [debug] 623114#623114: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:14:03 [debug] 623114#623114: posix_memalign: 0000627587142840:512 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *1 accept: 127.0.0.1:55994 fd:6 +2025/08/20 09:14:03 [debug] 623114#623114: *1 event timer add: 6: 60000:262436338 +2025/08/20 09:14:03 [debug] 623114#623114: *1 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 19073 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 60000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:0001 d:00007F7B7C6EC1E0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http wait request handler +2025/08/20 09:14:03 [debug] 623114#623114: *1 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *1 recv: eof:0, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 recv: fd:6 84 of 1024 +2025/08/20 09:14:03 [debug] 623114#623114: *1 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 posix_memalign: 0000627587161A30:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http process request line +2025/08/20 09:14:03 [debug] 623114#623114: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http uri: "/health" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http args: "" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http exten: "" +2025/08/20 09:14:03 [debug] 623114#623114: *1 posix_memalign: 0000627587157DA0:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http process request header line +2025/08/20 09:14:03 [debug] 623114#623114: *1 http header: "Host: localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http header: "Accept: */*" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http header done +2025/08/20 09:14:03 [debug] 623114#623114: *1 event timer del: 6: 262436338 +2025/08/20 09:14:03 [debug] 623114#623114: *1 generic phase: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 rewrite phase: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 test location: "/health" +2025/08/20 09:14:03 [debug] 623114#623114: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:14:03 [debug] 623114#623114: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *1 using configuration "/health" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http cl:-1 max:104857600 +2025/08/20 09:14:03 [debug] 623114#623114: *1 rewrite phase: 3 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http set discard body +2025/08/20 09:14:03 [debug] 623114#623114: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:14:03 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:14:03 [debug] 623114#623114: *1 write new buf t:1 f:0 0000627587158180, pos 0000627587158180, size: 196 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http write filter: l:0 f:0 s:196 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http output filter "/health?" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http copy filter: "/health?" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http postpone filter "/health?" 00007FFC96667DB0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 write old buf t:1 f:0 0000627587158180, pos 0000627587158180, size: 196 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 write new buf t:0 f:0 0000000000000000, pos 000062758717FB42, size: 3 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http write filter: l:1 f:0 s:199 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http write filter limit 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 writev: 199 of 199 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http write filter 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http copy filter: 0 "/health?" +2025/08/20 09:14:03 [debug] 623114#623114: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 set http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *1 http close request +2025/08/20 09:14:03 [debug] 623114#623114: *1 http log handler +2025/08/20 09:14:03 [debug] 623114#623114: *1 free: 0000627587161A30, unused: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 free: 0000627587157DA0, unused: 2736 +2025/08/20 09:14:03 [debug] 623114#623114: *1 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 hc free: 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *1 hc busy: 0000000000000000 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 tcp_nodelay +2025/08/20 09:14:03 [debug] 623114#623114: *1 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 event timer add: 6: 65000:262441339 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 1 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 65000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:2001 d:00007F7B7C6EC1E0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *1 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *1 recv: eof:1, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *1 recv: fd:6 0 of 1024 +2025/08/20 09:14:03 [info] 623114#623114: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:14:03 [debug] 623114#623114: *1 close http connection: 6 +2025/08/20 09:14:03 [debug] 623114#623114: *1 event timer del: 6: 262441339 +2025/08/20 09:14:03 [debug] 623114#623114: *1 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *1 free: 0000627587142840, unused: 136 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 1 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: -1 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:5 ev:0001 d:00007F7B7C6EC010 +2025/08/20 09:14:03 [debug] 623114#623114: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:14:03 [debug] 623114#623114: posix_memalign: 0000627587142840:512 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *2 accept: 127.0.0.1:55996 fd:6 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer add: 6: 60000:262436645 +2025/08/20 09:14:03 [debug] 623114#623114: *2 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 305 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 60000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:0001 d:00007F7B7C6EC1E1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http wait request handler +2025/08/20 09:14:03 [debug] 623114#623114: *2 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:6 1024 of 1024 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: avail:112 +2025/08/20 09:14:03 [debug] 623114#623114: *2 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 posix_memalign: 0000627587161A30:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http process request line +2025/08/20 09:14:03 [debug] 623114#623114: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http uri: "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http args: "" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http exten: "" +2025/08/20 09:14:03 [debug] 623114#623114: *2 posix_memalign: 0000627587157DA0:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http process request header line +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Host: localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Accept: */*" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhNzdlNTMxMzFmMjcyZWVhMjM3OWI2YjdhYzNiZGM2MGI3MGNkNjZjYTE3MzkzOWYyOWZjZjNhZDdkOTVhODg1IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU2NDMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyMmRjNGY4MjQ4NzcwYjE3YWQ4MWU2MzlmNWMyNjU3YmJhZmUwNGZkMDQ4NTIyZmMwOGMyNDJmMzBiMTFlM2JhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTI0MyJdXSwiY29udGVudCI6IiIsInNpZyI6ImUxMjAzMTAwYmQ2ZDc5N2QxMzVmY2IwY2YxYWI1MzE3MzRhZTJlZDBiZmZjMGI4YjBkMjQxNTcwYmMzZTFmNmQ0YjdiYmIyMDhlNGYwMzQ2MzM3YWViYjBlNmY2YmJkOTFmZTA5YzM4ZTQ5ODIxNWVlOGU3MzE0ZjcwY2RlNGUyIn0=" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Content-Type: text/plain" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755695643.txt"" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header: "Content-Length: 296" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http header done +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer del: 6: 262436645 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 rewrite phase: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: "/health" +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *2 using configuration "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http cl:296 max:104857600 +2025/08/20 09:14:03 [debug] 623114#623114: *2 rewrite phase: 3 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "PUT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script regex: "^(PUT)$" +2025/08/20 09:14:03 [notice] 623114#623114: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script if +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script if: false +2025/08/20 09:14:03 [debug] 623114#623114: *2 post rewrite phase: 4 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 5 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 6 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 7 +2025/08/20 09:14:03 [debug] 623114#623114: *2 access phase: 8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 access phase: 9 +2025/08/20 09:14:03 [debug] 623114#623114: *2 access phase: 10 +2025/08/20 09:14:03 [debug] 623114#623114: *2 post access phase: 11 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 12 +2025/08/20 09:14:03 [debug] 623114#623114: *2 generic phase: 13 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http client request body preread 184 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http request body content length filter +2025/08/20 09:14:03 [debug] 623114#623114: *2 http body new buf t:1 f:0 00006275871453E8, pos 00006275871453E8, size: 184 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http read client request body +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:112 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:6 112 of 112 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: avail:0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http client request body recv 112 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http body new buf t:1 f:0 0000627587158830, pos 0000627587158830, size: 112 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http client request body rest 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http init upstream, client timer: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:14:03 [debug] 623114#623114: *2 posix_memalign: 000062758714C150:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "QUERY_STRING" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REQUEST_METHOD" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "PUT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "CONTENT_TYPE" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "text/plain" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "296" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SCRIPT_NAME" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REQUEST_URI" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "DOCUMENT_URI" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "./blobs" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "HTTP/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "http" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "CGI/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "nginx/" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "1.18.0" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REMOTE_ADDR" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "127.0.0.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REMOTE_PORT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "55996" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REMOTE_PORT: 55996" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SERVER_ADDR" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "127.0.0.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SERVER_PORT" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SERVER_NAME" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "localhost" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "200" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script var: "./blobs" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhNzdlNTMxMzFmMjcyZWVhMjM3OWI2YjdhYzNiZGM2MGI3MGNkNjZjYTE3MzkzOWYyOWZjZjNhZDdkOTVhODg1IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU2NDMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyMmRjNGY4MjQ4NzcwYjE3YWQ4MWU2MzlmNWMyNjU3YmJhZmUwNGZkMDQ4NTIyZmMwOGMyNDJmMzBiMTFlM2JhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTI0MyJdXSwiY29udGVudCI6IiIsInNpZyI6ImUxMjAzMTAwYmQ2ZDc5N2QxMzVmY2IwY2YxYWI1MzE3MzRhZTJlZDBiZmZjMGI4YjBkMjQxNTcwYmMzZTFmNmQ0YjdiYmIyMDhlNGYwMzQ2MzM3YWViYjBlNmY2YmJkOTFmZTA5YzM4ZTQ5ODIxNWVlOGU3MzE0ZjcwY2RlNGUyIn0=" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755695643.txt"" +2025/08/20 09:14:03 [debug] 623114#623114: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http cleanup add: 0000627587158B80 +2025/08/20 09:14:03 [debug] 623114#623114: *2 get rr peer, try: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 stream socket 10 +2025/08/20 09:14:03 [debug] 623114#623114: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:14:03 [debug] 623114#623114: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 09:14:03 [debug] 623114#623114: *2 connected +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream connect: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 posix_memalign: 000062758712BF20:128 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream send request +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream send request body +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer buf fl:0 s:1304 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer buf fl:0 s:184 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer buf fl:0 s:8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer buf fl:0 s:112 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer buf fl:0 s:8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer in: 0000627587158C10 +2025/08/20 09:14:03 [debug] 623114#623114: *2 writev: 1616 of 1616 +2025/08/20 09:14:03 [debug] 623114#623114: *2 chain writer out: 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer add: 10: 60000:262436645 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http request count:2 blk:0 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 60000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:0004 d:00007F7B7C6EC1E1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http run request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream check client, write event:1, "/upload" +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:10 ev:0004 d:00007F7B7C6EC2C8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream dummy handler +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 1 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 59999 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:10 ev:0005 d:00007F7B7C6EC2C8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream process header +2025/08/20 09:14:03 [debug] 623114#623114: *2 malloc: 000062758714D160:4096 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:10 48 of 4096 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 21 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 33 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream dummy handler +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 59999 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:10 ev:0005 d:00007F7B7C6EC2C8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream process header +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:10 4048 of 4048 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: avail:560 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:14:03] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhNzdlNTMxMzFmMjcyZWVhMjM3OWI2YjdhYzNiZGM2MGI3MGNkNjZjYTE3MzkzOWYyOWZjZjNhZDdkOTVhODg1IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTU2NDMsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyMmRjNGY4MjQ4NzcwYjE3YWQ4MWU2MzlmNWMyNjU3YmJhZmUwNGZkMDQ4NTIyZmMwOGMyNDJmMzBiMTFlM2JhIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTI0MyJdXSwiY29udGVudCI6IiIsInNpZyI6ImUxMjAzMTAwYmQ2ZDc5N2QxMzVmY2IwY2YxYWI1MzE3MzRhZTJlZDBiZmZjMGI4YjBkMjQxNTcwYmMzZTFmNmQ0YjdiYmIyMDhlNGYwMzQ2MzM3YWViYjBlNmY2YmJkOTFmZTA5YzM4ZTQ5ODIxNWVlOGU3MzE0ZjcwY2RlNGUyIn0= +LOG: [2025-08-20 09:14:03] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:14:03-04:00 +Random data: cf19079d869e98a9b23a412efab34473018b949c5323a716cd90667445f344f7 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: 22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba +AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authen" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "ticate_request with hash: 22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: 22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "b11e3ba +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhNzdlNTMxMzFmMjcy... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"a77e53131f272eea2379b6b7ac3bdc60b70cd66ca173939f29fcf3ad7d" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "95a885","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695643,"tags":[["t","upload"],["x","22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba"],["expiration","1755699243"]],"content":"","sig":"e1203100bd6d797d135fcb0cf1ab531734ae2ed0bffc0b8b0d241570bc3e1f6d4b7bbb208e4f0346337aebb0e6f6bbd91fe09c38e498215ee8e7314f70cde4e2"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "a77e53131f272eea23" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "79b6b7ac3bdc60b70cd66ca173939f29fcf3ad7d95a885", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695643, + "tags": [["t", "upload"], ["x", "22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba"], ["expiration", "1755699243"]], + "content": "", + "sig": "e1203100bd6d797d135fcb0cf1ab531734ae2ed0bffc0b8b0d241570bc3e1f6d4b7bbb208e4f0346337aebb0e6f6bbd91fe09c38e498215ee8e7314f70cde4e2" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "INFO: id: a77e53131f272eea2379b6b7ac3bdc60b70cd66ca173939f29fcf3ad7d95a885 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: e1203100bd6d797d135fcb0cf1ab531734ae2ed0bffc0b8b0d241570bc3e1f6d4b7bbb208e4f0346337aebb0e6f6bbd91fe09c38e498215ee8e7314f70cde4e2 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695643 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:560 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:10 1432 of 4096 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: avail:0 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowerca" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: F8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 504 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: "se hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 6F +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 111 +2025/08/20 09:14:03 [error] 623114#623114: *2 FastCGI sent in stderr: " authenticate_request returned: -32 +LOG: [2025-08-20 09:14:03] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 07 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 06 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: C7 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 199 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi parser: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi parser: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi parser: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi header done +2025/08/20 09:14:03 [debug] 623114#623114: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:14:03 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:14:03 [debug] 623114#623114: *2 write new buf t:1 f:0 000062758714C808, pos 000062758714C808, size: 181 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http write filter: l:0 f:0 s:181 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http cacheable: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream process upstream +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe read upstream: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe preread: 164 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe buf free s:0 t:1 f:0 000062758714D160, pos 000062758714D654, size: 164 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe length: -1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write downstream: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write busy: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write: out:0000000000000000, f:0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe read upstream: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe buf free s:0 t:1 f:0 000062758714D160, pos 000062758714D654, size: 164 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe length: -1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer: 10, old: 262436645, new: 262436646 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream dummy handler +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 59999 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:10 ev:2005 d:00007F7B7C6EC2C8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream request: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream process upstream +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe read upstream: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 readv: eof:1, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 readv: 1, last:2664 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe recv chain: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe buf free s:0 t:1 f:0 000062758714D160, pos 000062758714D654, size: 164 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe length: -1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 input buf #0 000062758714D654 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 06 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi closed stdout +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 03 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 01 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 08 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record byte: 00 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi record length: 8 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http fastcgi sent end request +2025/08/20 09:14:03 [debug] 623114#623114: *2 input buf 000062758714D654 139 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write downstream: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write downstream flush in +2025/08/20 09:14:03 [debug] 623114#623114: *2 http output filter "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http copy filter: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http postpone filter "/upload?" 0000627587158BE0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http chunk: 139 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write old buf t:1 f:0 000062758714C808, pos 000062758714C808, size: 181 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write new buf t:1 f:0 0000627587158D78, pos 0000627587158D78, size: 4 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write new buf t:1 f:0 000062758714D160, pos 000062758714D654, size: 139 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write new buf t:0 f:0 0000000000000000, pos 0000627570E262E8, size: 2 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http write filter: l:0 f:0 s:326 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http copy filter: 0 "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 pipe write downstream done +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer: 10, old: 262436645, new: 262436647 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream exit: 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *2 finalize http upstream request: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 finalize http fastcgi request +2025/08/20 09:14:03 [debug] 623114#623114: *2 free rr peer 1 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 close http upstream connection: 10 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 000062758712BF20, unused: 48 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer del: 10: 262436645 +2025/08/20 09:14:03 [debug] 623114#623114: *2 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http upstream temp fd: -1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http output filter "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http copy filter: "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http postpone filter "/upload?" 00007FFC96667E60 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http chunk: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write old buf t:1 f:0 000062758714C808, pos 000062758714C808, size: 181 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write old buf t:1 f:0 0000627587158D78, pos 0000627587158D78, size: 4 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write old buf t:1 f:0 000062758714D160, pos 000062758714D654, size: 139 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write old buf t:0 f:0 0000000000000000, pos 0000627570E262E8, size: 2 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 write new buf t:0 f:0 0000000000000000, pos 0000627570E262E5, size: 5 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http write filter: l:1 f:0 s:331 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http write filter limit 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 writev: 331 of 331 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http write filter 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http copy filter: 0 "/upload?" +2025/08/20 09:14:03 [debug] 623114#623114: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 set http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *2 http close request +2025/08/20 09:14:03 [debug] 623114#623114: *2 http log handler +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 000062758714D160 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 0000627587161A30, unused: 3 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 0000627587157DA0, unused: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 000062758714C150, unused: 1250 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 hc free: 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *2 hc busy: 0000000000000000 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 tcp_nodelay +2025/08/20 09:14:03 [debug] 623114#623114: *2 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer add: 6: 65000:262441647 +2025/08/20 09:14:03 [debug] 623114#623114: *2 post event 0000627587193770 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 1 +2025/08/20 09:14:03 [debug] 623114#623114: posted event 0000627587193770 +2025/08/20 09:14:03 [debug] 623114#623114: *2 delete posted event 0000627587193770 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *2 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:0, avail:0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 65000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:2005 d:00007F7B7C6EC1E1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *2 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: eof:1, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *2 recv: fd:6 0 of 1024 +2025/08/20 09:14:03 [info] 623114#623114: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 09:14:03 [debug] 623114#623114: *2 close http connection: 6 +2025/08/20 09:14:03 [debug] 623114#623114: *2 event timer del: 6: 262441647 +2025/08/20 09:14:03 [debug] 623114#623114: *2 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *2 free: 0000627587142840, unused: 120 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 1 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: -1 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:5 ev:0001 d:00007F7B7C6EC010 +2025/08/20 09:14:03 [debug] 623114#623114: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:14:03 [debug] 623114#623114: posix_memalign: 0000627587142840:512 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *4 accept: 127.0.0.1:56004 fd:6 +2025/08/20 09:14:03 [debug] 623114#623114: *4 event timer add: 6: 60000:262436653 +2025/08/20 09:14:03 [debug] 623114#623114: *4 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 5 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 60000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:0001 d:00007F7B7C6EC1E0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http wait request handler +2025/08/20 09:14:03 [debug] 623114#623114: *4 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *4 recv: eof:0, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 recv: fd:6 142 of 1024 +2025/08/20 09:14:03 [debug] 623114#623114: *4 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 posix_memalign: 0000627587161A30:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http process request line +2025/08/20 09:14:03 [debug] 623114#623114: *4 http request line: "GET /22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba HTTP/1.1" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http uri: "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http args: "" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http exten: "" +2025/08/20 09:14:03 [debug] 623114#623114: *4 posix_memalign: 0000627587157DA0:4096 @16 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http process request header line +2025/08/20 09:14:03 [debug] 623114#623114: *4 http header: "Host: localhost:9001" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http header: "Accept: */*" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http header done +2025/08/20 09:14:03 [debug] 623114#623114: *4 event timer del: 6: 262436653 +2025/08/20 09:14:03 [debug] 623114#623114: *4 generic phase: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 rewrite phase: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 test location: "/health" +2025/08/20 09:14:03 [debug] 623114#623114: *4 test location: "/debug/list" +2025/08/20 09:14:03 [debug] 623114#623114: *4 test location: "/" +2025/08/20 09:14:03 [debug] 623114#623114: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http cl:-1 max:104857600 +2025/08/20 09:14:03 [debug] 623114#623114: *4 rewrite phase: 3 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http script var +2025/08/20 09:14:03 [debug] 623114#623114: *4 http script var: "GET" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http script value: "DELETE" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http script not equal +2025/08/20 09:14:03 [debug] 623114#623114: *4 http script if +2025/08/20 09:14:03 [debug] 623114#623114: *4 http finalize request: 404, "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" a:1, c:1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http special response: 404, "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http set discard body +2025/08/20 09:14:03 [debug] 623114#623114: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:14:03 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:14:03 [debug] 623114#623114: *4 write new buf t:1 f:0 0000627587158180, pos 0000627587158180, size: 164 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http write filter: l:0 f:0 s:164 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http output filter "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http copy filter: "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http postpone filter "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" 0000627587158310 +2025/08/20 09:14:03 [debug] 623114#623114: *4 write old buf t:1 f:0 0000627587158180, pos 0000627587158180, size: 164 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 write new buf t:0 f:0 0000000000000000, pos 0000627570E65580, size: 100 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 write new buf t:0 f:0 0000000000000000, pos 0000627570E65C80, size: 62 file: 0, size: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http write filter: l:1 f:0 s:326 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http write filter limit 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 writev: 326 of 326 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http write filter 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http copy filter: 0 "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" +2025/08/20 09:14:03 [debug] 623114#623114: *4 http finalize request: 0, "/22dc4f8248770b17ad81e639f5c2657bbafe04fd048522fc08c242f30b11e3ba?" a:1, c:1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 set http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *4 http close request +2025/08/20 09:14:03 [debug] 623114#623114: *4 http log handler +2025/08/20 09:14:03 [debug] 623114#623114: *4 free: 0000627587161A30, unused: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 free: 0000627587157DA0, unused: 2456 +2025/08/20 09:14:03 [debug] 623114#623114: *4 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 hc free: 0000000000000000 +2025/08/20 09:14:03 [debug] 623114#623114: *4 hc busy: 0000000000000000 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 tcp_nodelay +2025/08/20 09:14:03 [debug] 623114#623114: *4 reusable connection: 1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 event timer add: 6: 65000:262441653 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: 65000 +2025/08/20 09:14:03 [debug] 623114#623114: epoll: fd:6 ev:2001 d:00007F7B7C6EC1E0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 http keepalive handler +2025/08/20 09:14:03 [debug] 623114#623114: *4 malloc: 00006275871450A0:1024 +2025/08/20 09:14:03 [debug] 623114#623114: *4 recv: eof:1, avail:-1 +2025/08/20 09:14:03 [debug] 623114#623114: *4 recv: fd:6 0 of 1024 +2025/08/20 09:14:03 [info] 623114#623114: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 09:14:03 [debug] 623114#623114: *4 close http connection: 6 +2025/08/20 09:14:03 [debug] 623114#623114: *4 event timer del: 6: 262441653 +2025/08/20 09:14:03 [debug] 623114#623114: *4 reusable connection: 0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 free: 00006275871450A0 +2025/08/20 09:14:03 [debug] 623114#623114: *4 free: 0000627587142840, unused: 136 +2025/08/20 09:14:03 [debug] 623114#623114: timer delta: 0 +2025/08/20 09:14:03 [debug] 623114#623114: worker cycle +2025/08/20 09:14:03 [debug] 623114#623114: epoll timer: -1 +2025/08/20 09:15:25 [notice] 623113#623113: signal 15 (SIGTERM) received from 623337, exiting +2025/08/20 09:15:25 [debug] 623113#623113: wake up, sigio 0 +2025/08/20 09:15:25 [debug] 623113#623113: child: 0 623114 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:15:25 [debug] 623113#623113: termination cycle: 50 +2025/08/20 09:15:25 [debug] 623114#623114: epoll: fd:7 ev:0001 d:00007F7B7C6EC0F8 +2025/08/20 09:15:25 [debug] 623113#623113: sigsuspend +2025/08/20 09:15:25 [debug] 623114#623114: channel handler +2025/08/20 09:15:25 [debug] 623114#623114: channel: 32 +2025/08/20 09:15:25 [debug] 623114#623114: channel command: 4 +2025/08/20 09:15:25 [debug] 623114#623114: channel: -2 +2025/08/20 09:15:25 [debug] 623114#623114: timer delta: 82356 +2025/08/20 09:15:25 [notice] 623114#623114: exiting +2025/08/20 09:15:25 [debug] 623114#623114: flush files +2025/08/20 09:15:25 [debug] 623114#623114: run cleanup: 0000627587190A80 +2025/08/20 09:15:25 [debug] 623114#623114: run cleanup: 0000627587183A18 +2025/08/20 09:15:25 [debug] 623114#623114: cleanup resolver +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587191DE0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587184BE0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587163B50 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587162A40 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758715CA10 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758715B950 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758715A890 +2025/08/20 09:15:25 [debug] 623114#623114: free: 00006275871597D0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587151170 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587148140, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587152580, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758715DA20, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587164B60, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587168B70, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758716CB80, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587170B90, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587174BA0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587178BB0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758717CBC0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587180BD0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587185DB0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 0000627587189DC0, unused: 0 +2025/08/20 09:15:25 [debug] 623114#623114: free: 000062758718DDD0, unused: 4920 +2025/08/20 09:15:25 [notice] 623114#623114: exit +2025/08/20 09:15:25 [notice] 623113#623113: signal 17 (SIGCHLD) received from 623114 +2025/08/20 09:15:25 [notice] 623113#623113: worker process 623114 exited with code 0 +2025/08/20 09:15:25 [debug] 623113#623113: shmtx forced unlock +2025/08/20 09:15:25 [debug] 623113#623113: wake up, sigio 3 +2025/08/20 09:15:25 [debug] 623113#623113: reap children +2025/08/20 09:15:25 [debug] 623113#623113: child: 0 623114 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:15:25 [notice] 623113#623113: exit +2025/08/20 09:15:25 [debug] 623113#623113: close listening 0.0.0.0:9001 #5 +2025/08/20 09:15:25 [debug] 623113#623113: run cleanup: 0000627587183A18 +2025/08/20 09:15:25 [debug] 623113#623113: cleanup resolver +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587191DE0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587184BE0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587163B50 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587162A40 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758715CA10 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758715B950 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758715A890 +2025/08/20 09:15:25 [debug] 623113#623113: free: 00006275871597D0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587151170 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587148140, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587152580, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758715DA20, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587164B60, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587168B70, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758716CB80, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587170B90, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587174BA0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587178BB0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758717CBC0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587180BD0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587185DB0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 0000627587189DC0, unused: 0 +2025/08/20 09:15:25 [debug] 623113#623113: free: 000062758718DDD0, unused: 4951 +2025/08/20 09:15:29 [debug] 623372#623372: bind() 0.0.0.0:9001 #5 +2025/08/20 09:15:29 [debug] 623372#623372: counter: 00007640773E9080, 1 +2025/08/20 09:15:29 [debug] 623373#623373: bind() 0.0.0.0:9001 #5 +2025/08/20 09:15:29 [notice] 623373#623373: using the "epoll" event method +2025/08/20 09:15:29 [debug] 623373#623373: counter: 000079AFCE177080, 1 +2025/08/20 09:15:29 [notice] 623373#623373: nginx/1.18.0 (Ubuntu) +2025/08/20 09:15:29 [notice] 623373#623373: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:15:29 [notice] 623373#623373: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:15:29 [debug] 623374#623373: write: 6, 00007FFFC1B0D3E0, 7, 0 +2025/08/20 09:15:29 [debug] 623374#623374: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:15:29 [notice] 623374#623374: start worker processes +2025/08/20 09:15:29 [debug] 623374#623374: channel 6:7 +2025/08/20 09:15:29 [notice] 623374#623374: start worker process 623375 +2025/08/20 09:15:29 [debug] 623374#623374: sigsuspend +2025/08/20 09:15:29 [debug] 623375#623375: add cleanup: 0000623287930A80 +2025/08/20 09:15:29 [debug] 623375#623375: malloc: 00006232878E3BD0:8 +2025/08/20 09:15:29 [debug] 623375#623375: notify eventfd: 9 +2025/08/20 09:15:29 [debug] 623375#623375: testing the EPOLLRDHUP flag: success +2025/08/20 09:15:29 [debug] 623375#623375: malloc: 00006232878F6590:6144 +2025/08/20 09:15:29 [debug] 623375#623375: malloc: 000079AFCDF6F010:237568 +2025/08/20 09:15:29 [debug] 623375#623375: malloc: 00006232879336B0:98304 +2025/08/20 09:15:29 [debug] 623375#623375: malloc: 000062328794B6C0:98304 +2025/08/20 09:15:29 [debug] 623375#623375: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:15:29 [debug] 623375#623375: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:15:29 [debug] 623375#623375: setproctitle: "nginx: worker process" +2025/08/20 09:15:29 [debug] 623375#623375: worker cycle +2025/08/20 09:15:29 [debug] 623375#623375: epoll timer: -1 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:5 ev:0001 d:000079AFCDF6F010 +2025/08/20 09:15:46 [debug] 623375#623375: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:15:46 [debug] 623375#623375: posix_memalign: 00006232878E2840:512 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *1 accept: 127.0.0.1:49390 fd:6 +2025/08/20 09:15:46 [debug] 623375#623375: *1 event timer add: 6: 60000:262539758 +2025/08/20 09:15:46 [debug] 623375#623375: *1 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 17518 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 60000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:0001 d:000079AFCDF6F1E0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http wait request handler +2025/08/20 09:15:46 [debug] 623375#623375: *1 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *1 recv: eof:0, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 recv: fd:6 84 of 1024 +2025/08/20 09:15:46 [debug] 623375#623375: *1 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 posix_memalign: 0000623287901A30:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http process request line +2025/08/20 09:15:46 [debug] 623375#623375: *1 http request line: "GET /health HTTP/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http uri: "/health" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http args: "" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http exten: "" +2025/08/20 09:15:46 [debug] 623375#623375: *1 posix_memalign: 00006232878F7DA0:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http process request header line +2025/08/20 09:15:46 [debug] 623375#623375: *1 http header: "Host: localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http header: "Accept: */*" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http header done +2025/08/20 09:15:46 [debug] 623375#623375: *1 event timer del: 6: 262539758 +2025/08/20 09:15:46 [debug] 623375#623375: *1 generic phase: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 rewrite phase: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 test location: "/health" +2025/08/20 09:15:46 [debug] 623375#623375: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:15:46 [debug] 623375#623375: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *1 using configuration "/health" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http cl:-1 max:104857600 +2025/08/20 09:15:46 [debug] 623375#623375: *1 rewrite phase: 3 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http set discard body +2025/08/20 09:15:46 [debug] 623375#623375: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:15:46 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:15:46 [debug] 623375#623375: *1 write new buf t:1 f:0 00006232878F8180, pos 00006232878F8180, size: 196 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http write filter: l:0 f:0 s:196 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http output filter "/health?" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http copy filter: "/health?" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http postpone filter "/health?" 00007FFFC1B0CF70 +2025/08/20 09:15:46 [debug] 623375#623375: *1 write old buf t:1 f:0 00006232878F8180, pos 00006232878F8180, size: 196 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 write new buf t:0 f:0 0000000000000000, pos 000062328791FB42, size: 3 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http write filter: l:1 f:0 s:199 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http write filter limit 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 writev: 199 of 199 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http write filter 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http copy filter: 0 "/health?" +2025/08/20 09:15:46 [debug] 623375#623375: *1 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 set http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *1 http close request +2025/08/20 09:15:46 [debug] 623375#623375: *1 http log handler +2025/08/20 09:15:46 [debug] 623375#623375: *1 free: 0000623287901A30, unused: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 free: 00006232878F7DA0, unused: 2736 +2025/08/20 09:15:46 [debug] 623375#623375: *1 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 hc free: 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *1 hc busy: 0000000000000000 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 tcp_nodelay +2025/08/20 09:15:46 [debug] 623375#623375: *1 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 event timer add: 6: 65000:262544758 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 0 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 65000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:2001 d:000079AFCDF6F1E0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *1 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *1 recv: eof:1, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *1 recv: fd:6 0 of 1024 +2025/08/20 09:15:46 [info] 623375#623375: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:15:46 [debug] 623375#623375: *1 close http connection: 6 +2025/08/20 09:15:46 [debug] 623375#623375: *1 event timer del: 6: 262544758 +2025/08/20 09:15:46 [debug] 623375#623375: *1 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *1 free: 00006232878E2840, unused: 136 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 1 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: -1 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:5 ev:0001 d:000079AFCDF6F010 +2025/08/20 09:15:46 [debug] 623375#623375: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:15:46 [debug] 623375#623375: posix_memalign: 00006232878E2840:512 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *2 accept: 127.0.0.1:49392 fd:6 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer add: 6: 60000:262540032 +2025/08/20 09:15:46 [debug] 623375#623375: *2 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 273 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 60000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:0001 d:000079AFCDF6F1E1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http wait request handler +2025/08/20 09:15:46 [debug] 623375#623375: *2 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:0, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: fd:6 1024 of 1024 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: avail:112 +2025/08/20 09:15:46 [debug] 623375#623375: *2 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 posix_memalign: 0000623287901A30:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http process request line +2025/08/20 09:15:46 [debug] 623375#623375: *2 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http uri: "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http args: "" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http exten: "" +2025/08/20 09:15:46 [debug] 623375#623375: *2 posix_memalign: 00006232878F7DA0:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http process request header line +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Host: localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Accept: */*" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhODhiZmI1ZWZmZDJmYWI4NDBkNzNiN2JmNzNkYWJiMDQ0YzExMzY2OGMxNzk2MWM3YzM3MmQyYzg2MzhjNzc3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU3NDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjMzVmOWNmMjNlMDg4YmE4ZTYyZDY4YzdiYWY3Y2JkNGU2NzY2YzM5ZTcxMDgwZjkyNTUwNWRkZmY5OWI5ZjA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTM0NiJdXSwiY29udGVudCI6IiIsInNpZyI6ImIyNDE1MmM2YWUyYjcxNjU4MmM4ZTU5Y2MwZWI5MzdiNTUzN2YyYTE1NDQ0MTEwOWE0NjJlNzNmNmI4MmNhMmUyY2JiZGZkOWQwYzliZDYxMmU1ODUxN2YwYzJjYTczMjhlYTJiZDkzOGM2NDA5ZmNkZmEwM2VjZTkwYWIyMjVlIn0=" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Content-Type: text/plain" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Content-Disposition: attachment; filename="test_blob_1755695746.txt"" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header: "Content-Length: 296" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http header done +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer del: 6: 262540032 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 rewrite phase: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: "/health" +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *2 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *2 using configuration "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http cl:296 max:104857600 +2025/08/20 09:15:46 [debug] 623375#623375: *2 rewrite phase: 3 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "PUT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script regex: "^(PUT)$" +2025/08/20 09:15:46 [notice] 623375#623375: *2 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script if +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script if: false +2025/08/20 09:15:46 [debug] 623375#623375: *2 post rewrite phase: 4 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 5 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 6 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 7 +2025/08/20 09:15:46 [debug] 623375#623375: *2 access phase: 8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 access phase: 9 +2025/08/20 09:15:46 [debug] 623375#623375: *2 access phase: 10 +2025/08/20 09:15:46 [debug] 623375#623375: *2 post access phase: 11 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 12 +2025/08/20 09:15:46 [debug] 623375#623375: *2 generic phase: 13 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http client request body preread 184 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http request body content length filter +2025/08/20 09:15:46 [debug] 623375#623375: *2 http body new buf t:1 f:0 00006232878E53E8, pos 00006232878E53E8, size: 184 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http read client request body +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:0, avail:112 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: fd:6 112 of 112 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: avail:0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http client request body recv 112 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http body new buf t:1 f:0 00006232878F8830, pos 00006232878F8830, size: 112 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http client request body rest 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http init upstream, client timer: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:15:46 [debug] 623375#623375: *2 posix_memalign: 00006232878EC150:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "QUERY_STRING" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "QUERY_STRING: " +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REQUEST_METHOD" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "PUT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "CONTENT_TYPE" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "text/plain" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "CONTENT_LENGTH" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "296" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SCRIPT_NAME" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REQUEST_URI" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "DOCUMENT_URI" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "./blobs" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "HTTP/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REQUEST_SCHEME" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "http" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "CGI/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "nginx/" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "1.18.0" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REMOTE_ADDR" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "127.0.0.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REMOTE_PORT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "49392" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REMOTE_PORT: 49392" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SERVER_ADDR" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "127.0.0.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SERVER_PORT" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SERVER_NAME" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "localhost" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "REDIRECT_STATUS" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "200" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script var: "./blobs" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http script copy: "/ginxsom.fcgi" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhODhiZmI1ZWZmZDJmYWI4NDBkNzNiN2JmNzNkYWJiMDQ0YzExMzY2OGMxNzk2MWM3YzM3MmQyYzg2MzhjNzc3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTU3NDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjMzVmOWNmMjNlMDg4YmE4ZTYyZDY4YzdiYWY3Y2JkNGU2NzY2YzM5ZTcxMDgwZjkyNTUwNWRkZmY5OWI5ZjA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTM0NiJdXSwiY29udGVudCI6IiIsInNpZyI6ImIyNDE1MmM2YWUyYjcxNjU4MmM4ZTU5Y2MwZWI5MzdiNTUzN2YyYTE1NDQ0MTEwOWE0NjJlNzNmNmI4MmNhMmUyY2JiZGZkOWQwYzliZDYxMmU1ODUxN2YwYzJjYTczMjhlYTJiZDkzOGM2NDA5ZmNkZmEwM2VjZTkwYWIyMjVlIn0=" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755695746.txt"" +2025/08/20 09:15:46 [debug] 623375#623375: *2 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http cleanup add: 00006232878F8B80 +2025/08/20 09:15:46 [debug] 623375#623375: *2 get rr peer, try: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 stream socket 10 +2025/08/20 09:15:46 [debug] 623375#623375: *2 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:15:46 [debug] 623375#623375: *2 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #3 +2025/08/20 09:15:46 [debug] 623375#623375: *2 connected +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream connect: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 posix_memalign: 00006232878CBF20:128 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream send request +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream send request body +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer buf fl:0 s:1304 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer buf fl:0 s:184 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer buf fl:0 s:8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer buf fl:0 s:112 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer buf fl:0 s:8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer in: 00006232878F8C10 +2025/08/20 09:15:46 [debug] 623375#623375: *2 writev: 1616 of 1616 +2025/08/20 09:15:46 [debug] 623375#623375: *2 chain writer out: 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer add: 10: 60000:262540032 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http request count:2 blk:0 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 0 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 60000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:0004 d:000079AFCDF6F1E1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http run request: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream check client, write event:1, "/upload" +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:10 ev:0005 d:000079AFCDF6F2C8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream request: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream process header +2025/08/20 09:15:46 [debug] 623375#623375: *2 malloc: 00006232878ED160:4096 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:0, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: fd:10 4096 of 4096 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: avail:1432 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 21 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 33 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:15:46] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhODhiZmI1ZWZmZDJmYWI4NDBkNzNiN2JmNzNkYWJiMDQ0YzExMzY2OGMxNzk2MWM3YzM3MmQyYzg2MzhjNzc3IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTU3NDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJjMzVmOWNmMjNlMDg4YmE4ZTYyZDY4YzdiYWY3Y2JkNGU2NzY2YzM5ZTcxMDgwZjkyNTUwNWRkZmY5OWI5ZjA4Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTM0NiJdXSwiY29udGVudCI6IiIsInNpZyI6ImIyNDE1MmM2YWUyYjcxNjU4MmM4ZTU5Y2MwZWI5MzdiNTUzN2YyYTE1NDQ0MTEwOWE0NjJlNzNmNmI4MmNhMmUyY2JiZGZkOWQwYzliZDYxMmU1ODUxN2YwYzJjYTczMjhlYTJiZDkzOGM2NDA5ZmNkZmEwM2VjZTkwYWIyMjVlIn0= +LOG: [2025-08-20 09:15:46] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:15:46-04:00 +Random data: 65462440cdc24dd33498ab3f2c4bc4ef096688db4a0952aaa7c3a8eaa6b4b7c3 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. + +DEBUG-LAAN: Calculated SHA-256: c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08 +AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authen" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "ticate_request with hash: c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth called with method: upload, hash: c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "99b9f08 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJhODhiZmI1ZWZmZDJm... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to parse: {"kind":24242,"id":"a88bfb5effd2fab840d73b7bf73dabb044c113668c17961c7c372d2c86" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "38c777","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755695746,"tags":[["t","upload"],["x","c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08"],["expiration","1755699346"]],"content":"","sig":"b24152c6ae2b716582c8e59cc0eb937b5537f2a154441109a462e73f6b82ca2e2cbbdfd9d0c9bd612e58517f0c2ca7328ea2bd938c6409fcdfa03ece90ab225e"} +✅ SUCCESS: cJSON_Parse succeeded, event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "a88bfb5effd2fab840" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "d73b7bf73dabb044c113668c17961c7c372d2c8638c777", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755695746, + "tags": [["t", "upload"], ["x", "c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08"], ["expiration", "1755699346"]], + "content": "", + "sig": "b24152c6ae2b716582c8e59cc0eb937b5537f2a154441109a462e73f6b82ca2e2cbbdfd9d0c9bd612e58517f0c2ca7328ea2bd938c6409fcdfa03ece90ab225e" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "INFO: id: a88bfb5effd2fab840d73b7bf73dabb044c113668c17961c7c372d2c8638c777 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: b24152c6ae2b716582c8e59cc0eb937b5537f2a154441109a462e73f6b82ca2e2cbbdfd9d0c9bd612e58517f0c2ca7328ea2bd938c6409fcdfa03ece90ab225e +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755695746 +🔍 STEP SERVER-5: Detailed pubkey analysis +ℹ️ INFO: Pubkey: 79be" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:0, avail:1432 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: fd:10 1432 of 4096 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: avail:0 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(55) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowerca" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: F8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 504 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: "se hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 6F +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 111 +2025/08/20 09:15:46 [error] 623375#623375: *2 FastCGI sent in stderr: " authenticate_request returned: -32 +LOG: [2025-08-20 09:15:46] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 07 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 06 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: C7 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 199 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi parser: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi parser: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi parser: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi header done +2025/08/20 09:15:46 [debug] 623375#623375: *2 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:15:46 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:15:46 [debug] 623375#623375: *2 write new buf t:1 f:0 00006232878EC808, pos 00006232878EC808, size: 181 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http write filter: l:0 f:0 s:181 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http cacheable: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream process upstream +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe read upstream: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe preread: 164 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe buf free s:0 t:1 f:0 00006232878ED160, pos 00006232878ED654, size: 164 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe length: -1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write downstream: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write busy: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write: out:0000000000000000, f:0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe read upstream: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe buf free s:0 t:1 f:0 00006232878ED160, pos 00006232878ED654, size: 164 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe length: -1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer: 10, old: 262540032, new: 262540034 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream request: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream dummy handler +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 2 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 59998 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:10 ev:2005 d:000079AFCDF6F2C8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream request: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream process upstream +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe read upstream: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 readv: eof:1, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 readv: 1, last:2664 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe recv chain: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe buf free s:0 t:1 f:0 00006232878ED160, pos 00006232878ED654, size: 164 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe length: -1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 input buf #0 00006232878ED654 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 06 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi closed stdout +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 03 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 01 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 08 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record byte: 00 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi record length: 8 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http fastcgi sent end request +2025/08/20 09:15:46 [debug] 623375#623375: *2 input buf 00006232878ED654 139 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write downstream: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write downstream flush in +2025/08/20 09:15:46 [debug] 623375#623375: *2 http output filter "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http copy filter: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http postpone filter "/upload?" 00006232878F8BE0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http chunk: 139 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write old buf t:1 f:0 00006232878EC808, pos 00006232878EC808, size: 181 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write new buf t:1 f:0 00006232878F8D78, pos 00006232878F8D78, size: 4 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write new buf t:1 f:0 00006232878ED160, pos 00006232878ED654, size: 139 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write new buf t:0 f:0 0000000000000000, pos 0000623266E602E8, size: 2 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http write filter: l:0 f:0 s:326 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http copy filter: 0 "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 pipe write downstream done +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer: 10, old: 262540032, new: 262540036 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream exit: 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *2 finalize http upstream request: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 finalize http fastcgi request +2025/08/20 09:15:46 [debug] 623375#623375: *2 free rr peer 1 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 close http upstream connection: 10 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878CBF20, unused: 48 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer del: 10: 262540032 +2025/08/20 09:15:46 [debug] 623375#623375: *2 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http upstream temp fd: -1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http output filter "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http copy filter: "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http postpone filter "/upload?" 00007FFFC1B0D020 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http chunk: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write old buf t:1 f:0 00006232878EC808, pos 00006232878EC808, size: 181 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write old buf t:1 f:0 00006232878F8D78, pos 00006232878F8D78, size: 4 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write old buf t:1 f:0 00006232878ED160, pos 00006232878ED654, size: 139 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write old buf t:0 f:0 0000000000000000, pos 0000623266E602E8, size: 2 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 write new buf t:0 f:0 0000000000000000, pos 0000623266E602E5, size: 5 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http write filter: l:1 f:0 s:331 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http write filter limit 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 writev: 331 of 331 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http write filter 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http copy filter: 0 "/upload?" +2025/08/20 09:15:46 [debug] 623375#623375: *2 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 set http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *2 http close request +2025/08/20 09:15:46 [debug] 623375#623375: *2 http log handler +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878ED160 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 0000623287901A30, unused: 3 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878F7DA0, unused: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878EC150, unused: 1250 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 hc free: 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *2 hc busy: 0000000000000000 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 tcp_nodelay +2025/08/20 09:15:46 [debug] 623375#623375: *2 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer add: 6: 65000:262545036 +2025/08/20 09:15:46 [debug] 623375#623375: *2 post event 0000623287933770 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 2 +2025/08/20 09:15:46 [debug] 623375#623375: posted event 0000623287933770 +2025/08/20 09:15:46 [debug] 623375#623375: *2 delete posted event 0000623287933770 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *2 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:0, avail:0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 65000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:2005 d:000079AFCDF6F1E1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *2 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: eof:1, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *2 recv: fd:6 0 of 1024 +2025/08/20 09:15:46 [info] 623375#623375: *2 client 127.0.0.1 closed keepalive connection +2025/08/20 09:15:46 [debug] 623375#623375: *2 close http connection: 6 +2025/08/20 09:15:46 [debug] 623375#623375: *2 event timer del: 6: 262545036 +2025/08/20 09:15:46 [debug] 623375#623375: *2 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *2 free: 00006232878E2840, unused: 120 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 2 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: -1 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:5 ev:0001 d:000079AFCDF6F010 +2025/08/20 09:15:46 [debug] 623375#623375: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:15:46 [debug] 623375#623375: posix_memalign: 00006232878E2840:512 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *4 accept: 127.0.0.1:49400 fd:6 +2025/08/20 09:15:46 [debug] 623375#623375: *4 event timer add: 6: 60000:262540046 +2025/08/20 09:15:46 [debug] 623375#623375: *4 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 8 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 60000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:0001 d:000079AFCDF6F1E0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http wait request handler +2025/08/20 09:15:46 [debug] 623375#623375: *4 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *4 recv: eof:0, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 recv: fd:6 142 of 1024 +2025/08/20 09:15:46 [debug] 623375#623375: *4 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 posix_memalign: 0000623287901A30:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http process request line +2025/08/20 09:15:46 [debug] 623375#623375: *4 http request line: "GET /c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08 HTTP/1.1" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http uri: "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http args: "" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http exten: "" +2025/08/20 09:15:46 [debug] 623375#623375: *4 posix_memalign: 00006232878F7DA0:4096 @16 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http process request header line +2025/08/20 09:15:46 [debug] 623375#623375: *4 http header: "Host: localhost:9001" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http header: "Accept: */*" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http header done +2025/08/20 09:15:46 [debug] 623375#623375: *4 event timer del: 6: 262540046 +2025/08/20 09:15:46 [debug] 623375#623375: *4 generic phase: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 rewrite phase: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 test location: "/health" +2025/08/20 09:15:46 [debug] 623375#623375: *4 test location: "/debug/list" +2025/08/20 09:15:46 [debug] 623375#623375: *4 test location: "/" +2025/08/20 09:15:46 [debug] 623375#623375: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *4 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http cl:-1 max:104857600 +2025/08/20 09:15:46 [debug] 623375#623375: *4 rewrite phase: 3 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http script var +2025/08/20 09:15:46 [debug] 623375#623375: *4 http script var: "GET" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http script value: "DELETE" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http script not equal +2025/08/20 09:15:46 [debug] 623375#623375: *4 http script if +2025/08/20 09:15:46 [debug] 623375#623375: *4 http finalize request: 404, "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" a:1, c:1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http special response: 404, "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http set discard body +2025/08/20 09:15:46 [debug] 623375#623375: *4 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:15:46 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:15:46 [debug] 623375#623375: *4 write new buf t:1 f:0 00006232878F8180, pos 00006232878F8180, size: 164 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http write filter: l:0 f:0 s:164 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http output filter "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http copy filter: "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http postpone filter "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" 00006232878F8310 +2025/08/20 09:15:46 [debug] 623375#623375: *4 write old buf t:1 f:0 00006232878F8180, pos 00006232878F8180, size: 164 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 write new buf t:0 f:0 0000000000000000, pos 0000623266E9F580, size: 100 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 write new buf t:0 f:0 0000000000000000, pos 0000623266E9FC80, size: 62 file: 0, size: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http write filter: l:1 f:0 s:326 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http write filter limit 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 writev: 326 of 326 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http write filter 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http copy filter: 0 "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" +2025/08/20 09:15:46 [debug] 623375#623375: *4 http finalize request: 0, "/c35f9cf23e088ba8e62d68c7baf7cbd4e6766c39e71080f925505ddff99b9f08?" a:1, c:1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 set http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *4 http close request +2025/08/20 09:15:46 [debug] 623375#623375: *4 http log handler +2025/08/20 09:15:46 [debug] 623375#623375: *4 free: 0000623287901A30, unused: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 free: 00006232878F7DA0, unused: 2456 +2025/08/20 09:15:46 [debug] 623375#623375: *4 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 hc free: 0000000000000000 +2025/08/20 09:15:46 [debug] 623375#623375: *4 hc busy: 0000000000000000 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 tcp_nodelay +2025/08/20 09:15:46 [debug] 623375#623375: *4 reusable connection: 1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 event timer add: 6: 65000:262545046 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 0 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: 65000 +2025/08/20 09:15:46 [debug] 623375#623375: epoll: fd:6 ev:2001 d:000079AFCDF6F1E0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 http keepalive handler +2025/08/20 09:15:46 [debug] 623375#623375: *4 malloc: 00006232878E50A0:1024 +2025/08/20 09:15:46 [debug] 623375#623375: *4 recv: eof:1, avail:-1 +2025/08/20 09:15:46 [debug] 623375#623375: *4 recv: fd:6 0 of 1024 +2025/08/20 09:15:46 [info] 623375#623375: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 09:15:46 [debug] 623375#623375: *4 close http connection: 6 +2025/08/20 09:15:46 [debug] 623375#623375: *4 event timer del: 6: 262545046 +2025/08/20 09:15:46 [debug] 623375#623375: *4 reusable connection: 0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 free: 00006232878E50A0 +2025/08/20 09:15:46 [debug] 623375#623375: *4 free: 00006232878E2840, unused: 136 +2025/08/20 09:15:46 [debug] 623375#623375: timer delta: 1 +2025/08/20 09:15:46 [debug] 623375#623375: worker cycle +2025/08/20 09:15:46 [debug] 623375#623375: epoll timer: -1 +2025/08/20 09:19:26 [notice] 623374#623374: signal 15 (SIGTERM) received from 624107, exiting +2025/08/20 09:19:26 [debug] 623374#623374: wake up, sigio 0 +2025/08/20 09:19:26 [debug] 623374#623374: child: 0 623375 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:19:26 [debug] 623374#623374: termination cycle: 50 +2025/08/20 09:19:26 [debug] 623374#623374: sigsuspend +2025/08/20 09:19:26 [debug] 623375#623375: epoll: fd:7 ev:0001 d:000079AFCDF6F0F8 +2025/08/20 09:19:26 [debug] 623375#623375: channel handler +2025/08/20 09:19:26 [debug] 623375#623375: channel: 32 +2025/08/20 09:19:26 [debug] 623375#623375: channel command: 4 +2025/08/20 09:19:26 [debug] 623375#623375: channel: -2 +2025/08/20 09:19:26 [debug] 623375#623375: timer delta: 219295 +2025/08/20 09:19:26 [notice] 623375#623375: exiting +2025/08/20 09:19:26 [debug] 623375#623375: flush files +2025/08/20 09:19:26 [debug] 623375#623375: run cleanup: 0000623287930A80 +2025/08/20 09:19:26 [debug] 623375#623375: run cleanup: 0000623287923A18 +2025/08/20 09:19:26 [debug] 623375#623375: cleanup resolver +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287931DE0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287924BE0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287903B50 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287902A40 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878FCA10 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878FB950 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878FA890 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878F97D0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878F1170 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878E8140, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878F2580, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 00006232878FDA20, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287904B60, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287908B70, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 000062328790CB80, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287910B90, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287914BA0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287918BB0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 000062328791CBC0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287920BD0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287925DB0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 0000623287929DC0, unused: 0 +2025/08/20 09:19:26 [debug] 623375#623375: free: 000062328792DDD0, unused: 4920 +2025/08/20 09:19:26 [notice] 623375#623375: exit +2025/08/20 09:19:26 [notice] 623374#623374: signal 17 (SIGCHLD) received from 623375 +2025/08/20 09:19:26 [notice] 623374#623374: worker process 623375 exited with code 0 +2025/08/20 09:19:26 [debug] 623374#623374: shmtx forced unlock +2025/08/20 09:19:26 [debug] 623374#623374: wake up, sigio 3 +2025/08/20 09:19:26 [debug] 623374#623374: reap children +2025/08/20 09:19:26 [debug] 623374#623374: child: 0 623375 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:19:26 [notice] 623374#623374: exit +2025/08/20 09:19:26 [debug] 623374#623374: close listening 0.0.0.0:9001 #5 +2025/08/20 09:19:26 [debug] 623374#623374: run cleanup: 0000623287923A18 +2025/08/20 09:19:26 [debug] 623374#623374: cleanup resolver +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287931DE0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287924BE0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287903B50 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287902A40 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878FCA10 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878FB950 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878FA890 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878F97D0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878F1170 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878E8140, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878F2580, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 00006232878FDA20, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287904B60, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287908B70, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 000062328790CB80, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287910B90, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287914BA0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287918BB0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 000062328791CBC0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287920BD0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287925DB0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 0000623287929DC0, unused: 0 +2025/08/20 09:19:26 [debug] 623374#623374: free: 000062328792DDD0, unused: 4951 +2025/08/20 09:19:29 [debug] 624144#624144: bind() 0.0.0.0:9001 #5 +2025/08/20 09:19:29 [debug] 624144#624144: counter: 00007D7AFE534080, 1 +2025/08/20 09:19:29 [debug] 624145#624145: bind() 0.0.0.0:9001 #5 +2025/08/20 09:19:29 [notice] 624145#624145: using the "epoll" event method +2025/08/20 09:19:29 [debug] 624145#624145: counter: 0000792816276080, 1 +2025/08/20 09:19:29 [notice] 624145#624145: nginx/1.18.0 (Ubuntu) +2025/08/20 09:19:29 [notice] 624145#624145: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:19:29 [notice] 624145#624145: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:19:29 [debug] 624146#624145: write: 6, 00007FFEBE5AAC60, 7, 0 +2025/08/20 09:19:29 [debug] 624146#624146: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:19:29 [notice] 624146#624146: start worker processes +2025/08/20 09:19:29 [debug] 624146#624146: channel 6:7 +2025/08/20 09:19:29 [notice] 624146#624146: start worker process 624147 +2025/08/20 09:19:29 [debug] 624146#624146: sigsuspend +2025/08/20 09:19:29 [debug] 624147#624147: add cleanup: 0000650E7C494A80 +2025/08/20 09:19:29 [debug] 624147#624147: malloc: 0000650E7C447BD0:8 +2025/08/20 09:19:29 [debug] 624147#624147: notify eventfd: 9 +2025/08/20 09:19:29 [debug] 624147#624147: testing the EPOLLRDHUP flag: success +2025/08/20 09:19:29 [debug] 624147#624147: malloc: 0000650E7C45A590:6144 +2025/08/20 09:19:29 [debug] 624147#624147: malloc: 000079281606E010:237568 +2025/08/20 09:19:29 [debug] 624147#624147: malloc: 0000650E7C4976B0:98304 +2025/08/20 09:19:29 [debug] 624147#624147: malloc: 0000650E7C4AF6C0:98304 +2025/08/20 09:19:29 [debug] 624147#624147: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:19:29 [debug] 624147#624147: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:19:29 [debug] 624147#624147: setproctitle: "nginx: worker process" +2025/08/20 09:19:29 [debug] 624147#624147: worker cycle +2025/08/20 09:19:29 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:19:38 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:19:38 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:19:38 [debug] 624147#624147: *1 accept: 127.0.0.1:38914 fd:6 +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer add: 6: 60000:262771850 +2025/08/20 09:19:38 [debug] 624147#624147: *1 reusable connection: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 9298 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http wait request handler +2025/08/20 09:19:38 [debug] 624147#624147: *1 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:6 149 of 1024 +2025/08/20 09:19:38 [debug] 624147#624147: *1 reusable connection: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http process request line +2025/08/20 09:19:38 [debug] 624147#624147: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http uri: "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http args: "" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http exten: "" +2025/08/20 09:19:38 [debug] 624147#624147: *1 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http process request header line +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header: "Host: localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header: "Accept: */*" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header: "Content-Type: text/plain" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header: "Content-Length: 19" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http header done +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer del: 6: 262771850 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 rewrite phase: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: "/health" +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:19:38 [debug] 624147#624147: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:19:38 [debug] 624147#624147: *1 using configuration "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http cl:19 max:104857600 +2025/08/20 09:19:38 [debug] 624147#624147: *1 rewrite phase: 3 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "PUT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script regex: "^(PUT)$" +2025/08/20 09:19:38 [notice] 624147#624147: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script if +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script if: false +2025/08/20 09:19:38 [debug] 624147#624147: *1 post rewrite phase: 4 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 5 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 6 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 7 +2025/08/20 09:19:38 [debug] 624147#624147: *1 access phase: 8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 access phase: 9 +2025/08/20 09:19:38 [debug] 624147#624147: *1 access phase: 10 +2025/08/20 09:19:38 [debug] 624147#624147: *1 post access phase: 11 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 12 +2025/08/20 09:19:38 [debug] 624147#624147: *1 generic phase: 13 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http client request body preread 19 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http request body content length filter +2025/08/20 09:19:38 [debug] 624147#624147: *1 http body new buf t:1 f:0 0000650E7C449122, pos 0000650E7C449122, size: 19 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http init upstream, client timer: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "QUERY_STRING" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REQUEST_METHOD" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "PUT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "CONTENT_TYPE" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "text/plain" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "19" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "CONTENT_LENGTH: 19" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SCRIPT_NAME" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REQUEST_URI" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "DOCUMENT_URI" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "./blobs" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "HTTP/1.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "http" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "CGI/1.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "nginx/" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "1.18.0" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REMOTE_ADDR" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "127.0.0.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REMOTE_PORT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "38914" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REMOTE_PORT: 38914" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SERVER_ADDR" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "127.0.0.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SERVER_PORT" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SERVER_NAME" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "localhost" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "200" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script var: "./blobs" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:19:38 [debug] 624147#624147: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 19" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http cleanup add: 0000650E7C45CBB8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 get rr peer, try: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 stream socket 10 +2025/08/20 09:19:38 [debug] 624147#624147: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:19:38 [debug] 624147#624147: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 09:19:38 [debug] 624147#624147: *1 connected +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream connect: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 posix_memalign: 0000650E7C42FF20:128 @16 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream send request +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream send request body +2025/08/20 09:19:38 [debug] 624147#624147: *1 chain writer buf fl:0 s:584 +2025/08/20 09:19:38 [debug] 624147#624147: *1 chain writer buf fl:0 s:19 +2025/08/20 09:19:38 [debug] 624147#624147: *1 chain writer buf fl:0 s:13 +2025/08/20 09:19:38 [debug] 624147#624147: *1 chain writer in: 0000650E7C45CC28 +2025/08/20 09:19:38 [debug] 624147#624147: *1 writev: 616 of 616 +2025/08/20 09:19:38 [debug] 624147#624147: *1 chain writer out: 0000000000000000 +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer add: 10: 60000:262771850 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http request count:2 blk:0 +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:6 ev:0004 d:000079281606E1E0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http run request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream check client, write event:1, "/upload" +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream process header +2025/08/20 09:19:38 [debug] 624147#624147: *1 malloc: 0000650E7C450150:4096 +2025/08/20 09:19:38 [debug] 624147#624147: *1 posix_memalign: 0000650E7C451160:4096 @16 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:10 600 of 4096 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 21 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 33 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: AA +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 06 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 426 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:19:38] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=19 +DEBUG: Raw Authorization header: NULL +LOG: [2025-08-20 09:19:38] PUT /upload - Auth: anonymous - Status: 0 +DEBUG: Successfully read DEBUG-LAAN: DATA TO HASH: test data for debug" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 62 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 06 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 98 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "DEBUG-LAAN: Calculated SHA-256: 49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream dummy handler +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 3 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 59997 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream process header +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:10 512 of 3496 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: F8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 504 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: NO +DEBUG: Authentication passed, uploader_pubkey: anonymous +DEBUG: Saving file to: blobs/49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e.txt +DEBUG: Successfully saved DEBUG: Content-Disposition header: NULL +DEBUG: No Content-Disposition header provided +DEBUG: Final filename after extraction: NULL +DEBUG: insert_blob_metadata() called for sha256='49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e' +DEBUG:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream dummy handler +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 59997 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream process header +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:10 512 of 4096 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: F8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 504 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: " Opening database at path: db/ginxsom.db +DEBUG: Database opened successfully for writing +DEBUG: Preparing SQL: INSERT INTO blobs (sha256, size, type, uploaded_at, uploader_pubkey, filename) VALUES (?, ?, ?, ?, ?, ?) +DEBUG: SQL prepared successfully, binding parameters +DEBUG: Parameter values to bind: +DEBUG: 1. sha256 = '49838edfd837a9cab272503012ab06d82bc6221e9176c65fe6c46e8d16f3b26e' +DEBUG: 2. size = 19 +DEBUG: 3. type = 'text/plain' +DEBUG: 4. uploaded_at = 1755695978 +DEBUG: 5. up" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:0, avail:0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream dummy handler +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 59996 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:10 ev:2005 d:000079281606E2C8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream request: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream process header +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:1, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:10 944 of 4096 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: F8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 504 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "loader_pubkey = 'NULL' +DEBUG: 6. filename = 'NULL' +DEBUG: Binding parameter 1 (sha256) +DEBUG: Binding parameter 2 (size) +DEBUG: Binding parameter 3 (type) +DEBUG: Binding parameter 4 (uploaded_at) +DEBUG: Binding parameter 5 (uploader_pubkey) +DEBUG: Binding uploader_pubkey as NULL +DEBUG: Binding parameter 6 (filename) +DEBUG: Binding filename as NULL +DEBUG: Parameters bound, executing INSERT +DEBUG: INSERT successful +DEBUG: Database closed, returning 1 +DEBUG: Blob metadata successfully st" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 4E +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 02 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 78 +2025/08/20 09:19:38 [error] 624147#624147: *1 FastCGI sent in stderr: "ored in database +DEBUG: Upload completed successfully with database storage" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 07 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 06 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 2C +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 04 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 300 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi parser: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi header: "Status: 200 OK" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi parser: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi parser: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi header done +2025/08/20 09:19:38 [debug] 624147#624147: *1 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:19:38 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive +X-Content-Type-Options: nosniff +X-Frame-Options: DENY +X-XSS-Protection: 1; mode=block + +2025/08/20 09:19:38 [debug] 624147#624147: *1 write new buf t:1 f:0 0000650E7C451300, pos 0000650E7C451300, size: 260 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http write filter: l:0 f:0 s:260 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http cacheable: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream process upstream +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe read upstream: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe preread: 278 +2025/08/20 09:19:38 [debug] 624147#624147: *1 readv: eof:1, avail:0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 readv: 1, last:3152 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe recv chain: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe buf free s:0 t:1 f:0 0000650E7C450150, pos 0000650E7C4503EA, size: 278 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe length: -1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 input buf #0 0000650E7C4503EA +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 06 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi closed stdout +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 03 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 01 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 08 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record byte: 00 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi record length: 8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http fastcgi sent end request +2025/08/20 09:19:38 [debug] 624147#624147: *1 input buf 0000650E7C4503EA 250 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe write downstream: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe write downstream flush in +2025/08/20 09:19:38 [debug] 624147#624147: *1 http output filter "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http copy filter: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http postpone filter "/upload?" 0000650E7C45CBF8 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http chunk: 250 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write old buf t:1 f:0 0000650E7C451300, pos 0000650E7C451300, size: 260 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write new buf t:1 f:0 0000650E7C45CD68, pos 0000650E7C45CD68, size: 4 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write new buf t:1 f:0 0000650E7C450150, pos 0000650E7C4503EA, size: 250 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http write filter: l:0 f:0 s:516 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http copy filter: 0 "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 pipe write downstream done +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer: 10, old: 262771850, new: 262771856 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream exit: 0000000000000000 +2025/08/20 09:19:38 [debug] 624147#624147: *1 finalize http upstream request: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 finalize http fastcgi request +2025/08/20 09:19:38 [debug] 624147#624147: *1 free rr peer 1 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 close http upstream connection: 10 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C42FF20, unused: 48 +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer del: 10: 262771850 +2025/08/20 09:19:38 [debug] 624147#624147: *1 reusable connection: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http upstream temp fd: -1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http output filter "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http copy filter: "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http postpone filter "/upload?" 00007FFEBE5AA8A0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http chunk: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write old buf t:1 f:0 0000650E7C451300, pos 0000650E7C451300, size: 260 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write old buf t:1 f:0 0000650E7C45CD68, pos 0000650E7C45CD68, size: 4 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write old buf t:1 f:0 0000650E7C450150, pos 0000650E7C4503EA, size: 250 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write old buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E5, size: 5 file: 0, size: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http write filter: l:1 f:0 s:521 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http write filter limit 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 writev: 521 of 521 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http write filter 0000000000000000 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http copy filter: 0 "/upload?" +2025/08/20 09:19:38 [debug] 624147#624147: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 set http keepalive handler +2025/08/20 09:19:38 [debug] 624147#624147: *1 http close request +2025/08/20 09:19:38 [debug] 624147#624147: *1 http log handler +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C450150 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C465A30, unused: 3 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C45BDA0, unused: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C451160, unused: 2426 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C4490A0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 hc free: 0000000000000000 +2025/08/20 09:19:38 [debug] 624147#624147: *1 hc busy: 0000000000000000 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 tcp_nodelay +2025/08/20 09:19:38 [debug] 624147#624147: *1 reusable connection: 1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer add: 6: 65000:262776856 +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:19:38 [debug] 624147#624147: epoll: fd:6 ev:2005 d:000079281606E1E0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 http keepalive handler +2025/08/20 09:19:38 [debug] 624147#624147: *1 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: eof:1, avail:-1 +2025/08/20 09:19:38 [debug] 624147#624147: *1 recv: fd:6 0 of 1024 +2025/08/20 09:19:38 [info] 624147#624147: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:19:38 [debug] 624147#624147: *1 close http connection: 6 +2025/08/20 09:19:38 [debug] 624147#624147: *1 event timer del: 6: 262776856 +2025/08/20 09:19:38 [debug] 624147#624147: *1 reusable connection: 0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C4490A0 +2025/08/20 09:19:38 [debug] 624147#624147: *1 free: 0000650E7C446840, unused: 120 +2025/08/20 09:19:38 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:19:38 [debug] 624147#624147: worker cycle +2025/08/20 09:19:38 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:22:37 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:22:37 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:22:37 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:22:37 [debug] 624147#624147: *3 accept: 127.0.0.1:55476 fd:6 +2025/08/20 09:22:37 [debug] 624147#624147: *3 event timer add: 6: 60000:262950889 +2025/08/20 09:22:37 [debug] 624147#624147: *3 reusable connection: 1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:22:37 [debug] 624147#624147: timer delta: 179031 +2025/08/20 09:22:37 [debug] 624147#624147: worker cycle +2025/08/20 09:22:37 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:22:37 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http wait request handler +2025/08/20 09:22:37 [debug] 624147#624147: *3 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:37 [debug] 624147#624147: *3 recv: eof:0, avail:-1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 recv: fd:6 84 of 1024 +2025/08/20 09:22:37 [debug] 624147#624147: *3 reusable connection: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http process request line +2025/08/20 09:22:37 [debug] 624147#624147: *3 http request line: "GET /health HTTP/1.1" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http uri: "/health" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http args: "" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http exten: "" +2025/08/20 09:22:37 [debug] 624147#624147: *3 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http process request header line +2025/08/20 09:22:37 [debug] 624147#624147: *3 http header: "Host: localhost:9001" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http header: "Accept: */*" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http header done +2025/08/20 09:22:37 [debug] 624147#624147: *3 event timer del: 6: 262950889 +2025/08/20 09:22:37 [debug] 624147#624147: *3 generic phase: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 rewrite phase: 1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 test location: "/health" +2025/08/20 09:22:37 [debug] 624147#624147: *3 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:22:37 [debug] 624147#624147: *3 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:22:37 [debug] 624147#624147: *3 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:22:37 [debug] 624147#624147: *3 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:22:37 [debug] 624147#624147: *3 using configuration "/health" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http cl:-1 max:104857600 +2025/08/20 09:22:37 [debug] 624147#624147: *3 rewrite phase: 3 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http set discard body +2025/08/20 09:22:37 [debug] 624147#624147: *3 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:22:37 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:22:37 [debug] 624147#624147: *3 write new buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 196 file: 0, size: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http write filter: l:0 f:0 s:196 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http output filter "/health?" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http copy filter: "/health?" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http postpone filter "/health?" 00007FFEBE5AA7F0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 write old buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 196 file: 0, size: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 write new buf t:0 f:0 0000000000000000, pos 0000650E7C483B42, size: 3 file: 0, size: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http write filter: l:1 f:0 s:199 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http write filter limit 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 writev: 199 of 199 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http write filter 0000000000000000 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http copy filter: 0 "/health?" +2025/08/20 09:22:37 [debug] 624147#624147: *3 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 set http keepalive handler +2025/08/20 09:22:37 [debug] 624147#624147: *3 http close request +2025/08/20 09:22:37 [debug] 624147#624147: *3 http log handler +2025/08/20 09:22:37 [debug] 624147#624147: *3 free: 0000650E7C465A30, unused: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 free: 0000650E7C45BDA0, unused: 2736 +2025/08/20 09:22:37 [debug] 624147#624147: *3 free: 0000650E7C4490A0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 hc free: 0000000000000000 +2025/08/20 09:22:37 [debug] 624147#624147: *3 hc busy: 0000000000000000 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 tcp_nodelay +2025/08/20 09:22:37 [debug] 624147#624147: *3 reusable connection: 1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 event timer add: 6: 65000:262955890 +2025/08/20 09:22:37 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:22:37 [debug] 624147#624147: worker cycle +2025/08/20 09:22:37 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:22:37 [debug] 624147#624147: epoll: fd:6 ev:2001 d:000079281606E1E1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 http keepalive handler +2025/08/20 09:22:37 [debug] 624147#624147: *3 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:37 [debug] 624147#624147: *3 recv: eof:1, avail:-1 +2025/08/20 09:22:37 [debug] 624147#624147: *3 recv: fd:6 0 of 1024 +2025/08/20 09:22:37 [info] 624147#624147: *3 client 127.0.0.1 closed keepalive connection +2025/08/20 09:22:37 [debug] 624147#624147: *3 close http connection: 6 +2025/08/20 09:22:37 [debug] 624147#624147: *3 event timer del: 6: 262955890 +2025/08/20 09:22:37 [debug] 624147#624147: *3 reusable connection: 0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 free: 0000650E7C4490A0 +2025/08/20 09:22:37 [debug] 624147#624147: *3 free: 0000650E7C446840, unused: 136 +2025/08/20 09:22:37 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:22:37 [debug] 624147#624147: worker cycle +2025/08/20 09:22:37 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:22:38 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:22:38 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *4 accept: 127.0.0.1:55480 fd:6 +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer add: 6: 60000:262951211 +2025/08/20 09:22:38 [debug] 624147#624147: *4 reusable connection: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 320 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http wait request handler +2025/08/20 09:22:38 [debug] 624147#624147: *4 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:0, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:6 1024 of 1024 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: avail:112 +2025/08/20 09:22:38 [debug] 624147#624147: *4 reusable connection: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http process request line +2025/08/20 09:22:38 [debug] 624147#624147: *4 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http uri: "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http args: "" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http exten: "" +2025/08/20 09:22:38 [debug] 624147#624147: *4 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http process request header line +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Host: localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Accept: */*" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmMGQzMjQxMzU0M2JhYWU0MDllYjZkYTU0MDc1NDE4MDkzOTU3NTVjYmY3MjQyNWQ1MGNjOWYxNDQxYWMwMjhhIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTYxNTgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI3MzczMzcyMGRlOGU2YmNhMGFiNDFhNzk5MTMyMjAyZDU2MDQ5ZTI4OGZlYjE1NGI1ZjZiZWNiNWU5YzI0YjY3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTc1NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjEzYjA2NDc4MjI4M2Y1ZWM3ZTk5YzU5ZTVlNzgwMTczOWQ1NGMwMTc1YjA4MmM0OTg1ZDIyNGM0NDY1YTc4NjkwOTU2NjRmMDZiODU3ODgzYWU1NjBjMmNkMTNiYWFjODI1ZTQ2NWNiOTc5MGFlNjViZWY1NTExNDVlZDM1M2YwIn0=" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Content-Type: text/plain" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Content-Disposition: attachment; filename="test_blob_1755696157.txt"" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header: "Content-Length: 296" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http header done +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer del: 6: 262951211 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 rewrite phase: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: "/health" +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:22:38 [debug] 624147#624147: *4 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:22:38 [debug] 624147#624147: *4 using configuration "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http cl:296 max:104857600 +2025/08/20 09:22:38 [debug] 624147#624147: *4 rewrite phase: 3 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "PUT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script regex: "^(PUT)$" +2025/08/20 09:22:38 [notice] 624147#624147: *4 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script if +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script if: false +2025/08/20 09:22:38 [debug] 624147#624147: *4 post rewrite phase: 4 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 5 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 6 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 7 +2025/08/20 09:22:38 [debug] 624147#624147: *4 access phase: 8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 access phase: 9 +2025/08/20 09:22:38 [debug] 624147#624147: *4 access phase: 10 +2025/08/20 09:22:38 [debug] 624147#624147: *4 post access phase: 11 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 12 +2025/08/20 09:22:38 [debug] 624147#624147: *4 generic phase: 13 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http client request body preread 184 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http request body content length filter +2025/08/20 09:22:38 [debug] 624147#624147: *4 http body new buf t:1 f:0 0000650E7C4493E8, pos 0000650E7C4493E8, size: 184 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http read client request body +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:0, avail:112 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:6 112 of 112 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: avail:0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http client request body recv 112 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http body new buf t:1 f:0 0000650E7C45C830, pos 0000650E7C45C830, size: 112 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http client request body rest 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http init upstream, client timer: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:22:38 [debug] 624147#624147: *4 posix_memalign: 0000650E7C450150:4096 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "QUERY_STRING" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "QUERY_STRING: " +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REQUEST_METHOD" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "PUT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "CONTENT_TYPE" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "text/plain" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "CONTENT_LENGTH" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "296" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SCRIPT_NAME" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REQUEST_URI" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "DOCUMENT_URI" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "./blobs" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "HTTP/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REQUEST_SCHEME" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "http" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "CGI/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "nginx/" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "1.18.0" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REMOTE_ADDR" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "127.0.0.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REMOTE_PORT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "55480" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REMOTE_PORT: 55480" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SERVER_ADDR" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "127.0.0.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SERVER_PORT" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SERVER_NAME" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "localhost" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "REDIRECT_STATUS" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "200" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script var: "./blobs" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http script copy: "/ginxsom.fcgi" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmMGQzMjQxMzU0M2JhYWU0MDllYjZkYTU0MDc1NDE4MDkzOTU3NTVjYmY3MjQyNWQ1MGNjOWYxNDQxYWMwMjhhIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTYxNTgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI3MzczMzcyMGRlOGU2YmNhMGFiNDFhNzk5MTMyMjAyZDU2MDQ5ZTI4OGZlYjE1NGI1ZjZiZWNiNWU5YzI0YjY3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTc1NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjEzYjA2NDc4MjI4M2Y1ZWM3ZTk5YzU5ZTVlNzgwMTczOWQ1NGMwMTc1YjA4MmM0OTg1ZDIyNGM0NDY1YTc4NjkwOTU2NjRmMDZiODU3ODgzYWU1NjBjMmNkMTNiYWFjODI1ZTQ2NWNiOTc5MGFlNjViZWY1NTExNDVlZDM1M2YwIn0=" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755696157.txt"" +2025/08/20 09:22:38 [debug] 624147#624147: *4 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http cleanup add: 0000650E7C45CB80 +2025/08/20 09:22:38 [debug] 624147#624147: *4 get rr peer, try: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 stream socket 10 +2025/08/20 09:22:38 [debug] 624147#624147: *4 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:22:38 [debug] 624147#624147: *4 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #5 +2025/08/20 09:22:38 [debug] 624147#624147: *4 connected +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream connect: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 posix_memalign: 0000650E7C42FF20:128 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream send request +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream send request body +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer buf fl:0 s:1304 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer buf fl:0 s:184 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer buf fl:0 s:8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer buf fl:0 s:112 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer buf fl:0 s:8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer in: 0000650E7C45CC10 +2025/08/20 09:22:38 [debug] 624147#624147: *4 writev: 1616 of 1616 +2025/08/20 09:22:38 [debug] 624147#624147: *4 chain writer out: 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer add: 10: 60000:262951211 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http request count:2 blk:0 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:6 ev:0004 d:000079281606E1E0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http run request: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream check client, write event:1, "/upload" +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:10 ev:0004 d:000079281606E2C9 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream request: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream dummy handler +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 59998 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C9 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream request: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream process header +2025/08/20 09:22:38 [debug] 624147#624147: *4 malloc: 0000650E7C451160:4096 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:0, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:10 1400 of 4096 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 21 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 33 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:22:38] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmMGQzMjQxMzU0M2JhYWU0MDllYjZkYTU0MDc1NDE4MDkzOTU3NTVjYmY3MjQyNWQ1MGNjOWYxNDQxYWMwMjhhIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTYxNTgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI3MzczMzcyMGRlOGU2YmNhMGFiNDFhNzk5MTMyMjAyZDU2MDQ5ZTI4OGZlYjE1NGI1ZjZiZWNiNWU5YzI0YjY3Il0sWyJleHBpcmF0aW9uIiwiMTc1NTY5OTc1NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjEzYjA2NDc4MjI4M2Y1ZWM3ZTk5YzU5ZTVlNzgwMTczOWQ1NGMwMTc1YjA4MmM0OTg1ZDIyNGM0NDY1YTc4NjkwOTU2NjRmMDZiODU3ODgzYWU1NjBjMmNkMTNiYWFjODI1ZTQ2NWNiOTc5MGFlNjViZWY1NTExNDVlZDM1M2YwIn0= +LOG: [2025-08-20 09:22:38] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 3F +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 319 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:22:37-04:00 +Random data: 07d461bb0b6ab3990dbe69a3e0a3a0291ded1d551b0d14bfb05fee95b1097cb2 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. +1" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:0, avail:0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream request: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream dummy handler +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 59998 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:10 ev:2005 d:000079281606E2C9 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream request: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream process header +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:1, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:10 2696 of 2696 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: avail:1448 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 62 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 06 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 98 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "DEBUG-LAAN: Calculated SHA-256: 73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth calle" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "d with method: upload, hash: 73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJmMGQzMjQxMzU0M2Jh... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: " parse: {"kind":24242,"id":"f0d32413543baae409eb6da5407541809395755cbf72425d50cc9f1441ac028a","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755696158,"tags":[["t","upload"],["x","73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67"],["expiration","1755699757"]],"content":"","sig":"13b064782283f5ec7e99c59e5e7801739d54c0175b082c4985d224c4465a7869095664f06b857883ae560c2cd13baac825e465cb9790ae65bef551145ed353f0"} +✅ SUCCESS: cJSON_Parse succeeded" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: ", event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "f0d32413543baae409eb6da5407541809395755cbf72425d50cc9f1441ac028a", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755696158, + "tags": [["t", "upload"], ["x", "73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67"], ["expiration", "1755699757"]], + "content": "", + "sig": "13b064782283f5ec7e99c59e5e7801739d54c0175b082c4985d224c4465a7869095664f06b857883ae560c2cd13baac825e465cb9" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "790ae65bef551145ed353f0" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: f0d32413543baae409eb6da5407541809395755cbf72425d50cc9f1441ac028a +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 13b064782283f5ec7e99c59e5e7801739d54c0175b082c4985d224c4465a7869095664f06b857883ae560c2cd13baac825e465cb9790ae65bef551145ed353f0 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755696158 +🔍 STEP SERVER-5: Detailed pubkey" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: " analysis +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:1, avail:1448 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:10 1448 of 4096 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: avail:0 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: " INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(5" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: F8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 504 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "5) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: C5 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 03 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 197 +2025/08/20 09:22:38 [error] 624147#624147: *4 FastCGI sent in stderr: "ubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:22:38] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 07 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 06 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: C7 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 199 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi parser: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi parser: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi parser: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi header done +2025/08/20 09:22:38 [debug] 624147#624147: *4 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:22:38 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:22:38 [debug] 624147#624147: *4 write new buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http write filter: l:0 f:0 s:181 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http cacheable: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream process upstream +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe read upstream: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe preread: 164 +2025/08/20 09:22:38 [debug] 624147#624147: *4 readv: eof:1, avail:0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 readv: 1, last:2648 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe recv chain: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe length: -1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 input buf #0 0000650E7C451664 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 06 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi closed stdout +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 03 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 01 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 08 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record byte: 00 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi record length: 8 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http fastcgi sent end request +2025/08/20 09:22:38 [debug] 624147#624147: *4 input buf 0000650E7C451664 139 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe write downstream: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe write downstream flush in +2025/08/20 09:22:38 [debug] 624147#624147: *4 http output filter "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http copy filter: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http postpone filter "/upload?" 0000650E7C45CBE0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http chunk: 139 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write new buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write new buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http write filter: l:0 f:0 s:326 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http copy filter: 0 "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 pipe write downstream done +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer: 10, old: 262951211, new: 262951213 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream exit: 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *4 finalize http upstream request: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 finalize http fastcgi request +2025/08/20 09:22:38 [debug] 624147#624147: *4 free rr peer 1 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 close http upstream connection: 10 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C42FF20, unused: 48 +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer del: 10: 262951211 +2025/08/20 09:22:38 [debug] 624147#624147: *4 reusable connection: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http upstream temp fd: -1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http output filter "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http copy filter: "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http postpone filter "/upload?" 00007FFEBE5AA8A0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http chunk: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write old buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write old buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write old buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E5, size: 5 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http write filter: l:1 f:0 s:331 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http write filter limit 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 writev: 331 of 331 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http write filter 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http copy filter: 0 "/upload?" +2025/08/20 09:22:38 [debug] 624147#624147: *4 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 set http keepalive handler +2025/08/20 09:22:38 [debug] 624147#624147: *4 http close request +2025/08/20 09:22:38 [debug] 624147#624147: *4 http log handler +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C451160 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C465A30, unused: 3 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C45BDA0, unused: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C450150, unused: 1250 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C4490A0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 hc free: 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *4 hc busy: 0000000000000000 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 tcp_nodelay +2025/08/20 09:22:38 [debug] 624147#624147: *4 reusable connection: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer add: 6: 65000:262956213 +2025/08/20 09:22:38 [debug] 624147#624147: *4 post event 0000650E7C497770 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:22:38 [debug] 624147#624147: posted event 0000650E7C497770 +2025/08/20 09:22:38 [debug] 624147#624147: *4 delete posted event 0000650E7C497770 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http keepalive handler +2025/08/20 09:22:38 [debug] 624147#624147: *4 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:0, avail:0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C4490A0 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:6 ev:2005 d:000079281606E1E0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 http keepalive handler +2025/08/20 09:22:38 [debug] 624147#624147: *4 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: eof:1, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *4 recv: fd:6 0 of 1024 +2025/08/20 09:22:38 [info] 624147#624147: *4 client 127.0.0.1 closed keepalive connection +2025/08/20 09:22:38 [debug] 624147#624147: *4 close http connection: 6 +2025/08/20 09:22:38 [debug] 624147#624147: *4 event timer del: 6: 262956213 +2025/08/20 09:22:38 [debug] 624147#624147: *4 reusable connection: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C4490A0 +2025/08/20 09:22:38 [debug] 624147#624147: *4 free: 0000650E7C446840, unused: 120 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:22:38 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:22:38 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *6 accept: 127.0.0.1:55488 fd:6 +2025/08/20 09:22:38 [debug] 624147#624147: *6 event timer add: 6: 60000:262951222 +2025/08/20 09:22:38 [debug] 624147#624147: *6 reusable connection: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 7 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http wait request handler +2025/08/20 09:22:38 [debug] 624147#624147: *6 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:38 [debug] 624147#624147: *6 recv: eof:0, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 recv: fd:6 142 of 1024 +2025/08/20 09:22:38 [debug] 624147#624147: *6 reusable connection: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http process request line +2025/08/20 09:22:38 [debug] 624147#624147: *6 http request line: "GET /73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67 HTTP/1.1" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http uri: "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http args: "" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http exten: "" +2025/08/20 09:22:38 [debug] 624147#624147: *6 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http process request header line +2025/08/20 09:22:38 [debug] 624147#624147: *6 http header: "Host: localhost:9001" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http header: "Accept: */*" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http header done +2025/08/20 09:22:38 [debug] 624147#624147: *6 event timer del: 6: 262951222 +2025/08/20 09:22:38 [debug] 624147#624147: *6 generic phase: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 rewrite phase: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 test location: "/health" +2025/08/20 09:22:38 [debug] 624147#624147: *6 test location: "/debug/list" +2025/08/20 09:22:38 [debug] 624147#624147: *6 test location: "/" +2025/08/20 09:22:38 [debug] 624147#624147: *6 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:22:38 [debug] 624147#624147: *6 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http cl:-1 max:104857600 +2025/08/20 09:22:38 [debug] 624147#624147: *6 rewrite phase: 3 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http script var +2025/08/20 09:22:38 [debug] 624147#624147: *6 http script var: "GET" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http script value: "DELETE" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http script not equal +2025/08/20 09:22:38 [debug] 624147#624147: *6 http script if +2025/08/20 09:22:38 [debug] 624147#624147: *6 http finalize request: 404, "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" a:1, c:1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http special response: 404, "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http set discard body +2025/08/20 09:22:38 [debug] 624147#624147: *6 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:22:38 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:22:38 [debug] 624147#624147: *6 write new buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 164 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http write filter: l:0 f:0 s:164 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http output filter "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http copy filter: "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http postpone filter "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" 0000650E7C45C310 +2025/08/20 09:22:38 [debug] 624147#624147: *6 write old buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 164 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD45580, size: 100 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD45C80, size: 62 file: 0, size: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http write filter: l:1 f:0 s:326 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http write filter limit 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 writev: 326 of 326 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http write filter 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http copy filter: 0 "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" +2025/08/20 09:22:38 [debug] 624147#624147: *6 http finalize request: 0, "/73733720de8e6bca0ab41a799132202d56049e288feb154b5f6becb5e9c24b67?" a:1, c:1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 set http keepalive handler +2025/08/20 09:22:38 [debug] 624147#624147: *6 http close request +2025/08/20 09:22:38 [debug] 624147#624147: *6 http log handler +2025/08/20 09:22:38 [debug] 624147#624147: *6 free: 0000650E7C465A30, unused: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 free: 0000650E7C45BDA0, unused: 2456 +2025/08/20 09:22:38 [debug] 624147#624147: *6 free: 0000650E7C4490A0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 hc free: 0000000000000000 +2025/08/20 09:22:38 [debug] 624147#624147: *6 hc busy: 0000000000000000 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 tcp_nodelay +2025/08/20 09:22:38 [debug] 624147#624147: *6 reusable connection: 1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 event timer add: 6: 65000:262956222 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:22:38 [debug] 624147#624147: epoll: fd:6 ev:2001 d:000079281606E1E1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 http keepalive handler +2025/08/20 09:22:38 [debug] 624147#624147: *6 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:22:38 [debug] 624147#624147: *6 recv: eof:1, avail:-1 +2025/08/20 09:22:38 [debug] 624147#624147: *6 recv: fd:6 0 of 1024 +2025/08/20 09:22:38 [info] 624147#624147: *6 client 127.0.0.1 closed keepalive connection +2025/08/20 09:22:38 [debug] 624147#624147: *6 close http connection: 6 +2025/08/20 09:22:38 [debug] 624147#624147: *6 event timer del: 6: 262956222 +2025/08/20 09:22:38 [debug] 624147#624147: *6 reusable connection: 0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 free: 0000650E7C4490A0 +2025/08/20 09:22:38 [debug] 624147#624147: *6 free: 0000650E7C446840, unused: 136 +2025/08/20 09:22:38 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:22:38 [debug] 624147#624147: worker cycle +2025/08/20 09:22:38 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:28:16 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:28:16 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *7 accept: 127.0.0.1:42390 fd:6 +2025/08/20 09:28:16 [debug] 624147#624147: *7 event timer add: 6: 60000:263289502 +2025/08/20 09:28:16 [debug] 624147#624147: *7 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 338280 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http wait request handler +2025/08/20 09:28:16 [debug] 624147#624147: *7 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *7 recv: eof:0, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 recv: fd:6 84 of 1024 +2025/08/20 09:28:16 [debug] 624147#624147: *7 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http process request line +2025/08/20 09:28:16 [debug] 624147#624147: *7 http request line: "GET /health HTTP/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http uri: "/health" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http args: "" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http exten: "" +2025/08/20 09:28:16 [debug] 624147#624147: *7 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http process request header line +2025/08/20 09:28:16 [debug] 624147#624147: *7 http header: "Host: localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http header: "Accept: */*" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http header done +2025/08/20 09:28:16 [debug] 624147#624147: *7 event timer del: 6: 263289502 +2025/08/20 09:28:16 [debug] 624147#624147: *7 generic phase: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 rewrite phase: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 test location: "/health" +2025/08/20 09:28:16 [debug] 624147#624147: *7 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *7 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:28:16 [debug] 624147#624147: *7 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *7 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *7 using configuration "/health" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http cl:-1 max:104857600 +2025/08/20 09:28:16 [debug] 624147#624147: *7 rewrite phase: 3 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http set discard body +2025/08/20 09:28:16 [debug] 624147#624147: *7 HTTP/1.1 200 OK +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:28:16 GMT +Content-Type: application/octet-stream +Content-Length: 3 +Connection: keep-alive +Content-Type: text/plain + +2025/08/20 09:28:16 [debug] 624147#624147: *7 write new buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 196 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http write filter: l:0 f:0 s:196 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http output filter "/health?" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http copy filter: "/health?" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http postpone filter "/health?" 00007FFEBE5AA7F0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 write old buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 196 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 write new buf t:0 f:0 0000000000000000, pos 0000650E7C483B42, size: 3 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http write filter: l:1 f:0 s:199 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http write filter limit 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 writev: 199 of 199 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http write filter 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http copy filter: 0 "/health?" +2025/08/20 09:28:16 [debug] 624147#624147: *7 http finalize request: 0, "/health?" a:1, c:1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 set http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *7 http close request +2025/08/20 09:28:16 [debug] 624147#624147: *7 http log handler +2025/08/20 09:28:16 [debug] 624147#624147: *7 free: 0000650E7C465A30, unused: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 free: 0000650E7C45BDA0, unused: 2736 +2025/08/20 09:28:16 [debug] 624147#624147: *7 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 hc free: 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *7 hc busy: 0000000000000000 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 tcp_nodelay +2025/08/20 09:28:16 [debug] 624147#624147: *7 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 event timer add: 6: 65000:263294503 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:2001 d:000079281606E1E0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *7 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *7 recv: eof:1, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *7 recv: fd:6 0 of 1024 +2025/08/20 09:28:16 [info] 624147#624147: *7 client 127.0.0.1 closed keepalive connection +2025/08/20 09:28:16 [debug] 624147#624147: *7 close http connection: 6 +2025/08/20 09:28:16 [debug] 624147#624147: *7 event timer del: 6: 263294503 +2025/08/20 09:28:16 [debug] 624147#624147: *7 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *7 free: 0000650E7C446840, unused: 136 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:28:16 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:28:16 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *8 accept: 127.0.0.1:42404 fd:6 +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer add: 6: 60000:263289846 +2025/08/20 09:28:16 [debug] 624147#624147: *8 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 342 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http wait request handler +2025/08/20 09:28:16 [debug] 624147#624147: *8 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:0, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:6 1024 of 1024 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: avail:112 +2025/08/20 09:28:16 [debug] 624147#624147: *8 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http process request line +2025/08/20 09:28:16 [debug] 624147#624147: *8 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http uri: "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http args: "" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http exten: "" +2025/08/20 09:28:16 [debug] 624147#624147: *8 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http process request header line +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Host: localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Accept: */*" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI1Y2ZkNjE1NzViZmE4MWFjMDljZGEyZGY2ZTQ1MTUzYzdhZmFmMGEwN2MyZjkyODIyNGE5NzU4MzM3MGE4MjYwIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY0OTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyM2U4MjkyZDBlZWYyMzgxMzlhZTlhNDZiZTk3Mjk1NTQ5MGUzMTNlNDAzMjBmZjYxM2VkZTcxNjVkMDEyZmIyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDA5NiJdXSwiY29udGVudCI6IiIsInNpZyI6IjM3ZWY0ZmMxZTgzZGJlMjU2NTQ1MDZlMGYzNDEzY2NjNjY0MjJjN2U1MWY1NzUyNGM5NDQzNTNkYWFjNzFmZTU5YWZjNTNlZjhhMDg0OGJlNzg5YTljZTM2ZjI1NzA2NDMxNmZlYTdiYWVlMWFlOWIwNzRjOWRiODMyNTVkZmI2In0=" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Content-Type: text/plain" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Content-Disposition: attachment; filename="test_blob_1755696496.txt"" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header: "Content-Length: 296" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http header done +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer del: 6: 263289846 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 rewrite phase: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: "/health" +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *8 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *8 using configuration "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http cl:296 max:104857600 +2025/08/20 09:28:16 [debug] 624147#624147: *8 rewrite phase: 3 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "PUT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script regex: "^(PUT)$" +2025/08/20 09:28:16 [notice] 624147#624147: *8 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script if +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script if: false +2025/08/20 09:28:16 [debug] 624147#624147: *8 post rewrite phase: 4 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 5 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 6 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 7 +2025/08/20 09:28:16 [debug] 624147#624147: *8 access phase: 8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 access phase: 9 +2025/08/20 09:28:16 [debug] 624147#624147: *8 access phase: 10 +2025/08/20 09:28:16 [debug] 624147#624147: *8 post access phase: 11 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 12 +2025/08/20 09:28:16 [debug] 624147#624147: *8 generic phase: 13 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http client request body preread 184 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http request body content length filter +2025/08/20 09:28:16 [debug] 624147#624147: *8 http body new buf t:1 f:0 0000650E7C4493E8, pos 0000650E7C4493E8, size: 184 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http read client request body +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:0, avail:112 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:6 112 of 112 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: avail:0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http client request body recv 112 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http body new buf t:1 f:0 0000650E7C45C830, pos 0000650E7C45C830, size: 112 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http client request body rest 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http init upstream, client timer: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:28:16 [debug] 624147#624147: *8 posix_memalign: 0000650E7C450150:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "QUERY_STRING" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "QUERY_STRING: " +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REQUEST_METHOD" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "PUT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "CONTENT_TYPE" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "text/plain" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "CONTENT_LENGTH" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "296" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SCRIPT_NAME" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REQUEST_URI" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "DOCUMENT_URI" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "./blobs" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "HTTP/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REQUEST_SCHEME" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "http" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "CGI/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "nginx/" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "1.18.0" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REMOTE_ADDR" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "127.0.0.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REMOTE_PORT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "42404" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REMOTE_PORT: 42404" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SERVER_ADDR" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "127.0.0.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SERVER_PORT" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SERVER_NAME" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "localhost" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "REDIRECT_STATUS" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "200" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script var: "./blobs" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http script copy: "/ginxsom.fcgi" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI1Y2ZkNjE1NzViZmE4MWFjMDljZGEyZGY2ZTQ1MTUzYzdhZmFmMGEwN2MyZjkyODIyNGE5NzU4MzM3MGE4MjYwIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY0OTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyM2U4MjkyZDBlZWYyMzgxMzlhZTlhNDZiZTk3Mjk1NTQ5MGUzMTNlNDAzMjBmZjYxM2VkZTcxNjVkMDEyZmIyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDA5NiJdXSwiY29udGVudCI6IiIsInNpZyI6IjM3ZWY0ZmMxZTgzZGJlMjU2NTQ1MDZlMGYzNDEzY2NjNjY0MjJjN2U1MWY1NzUyNGM5NDQzNTNkYWFjNzFmZTU5YWZjNTNlZjhhMDg0OGJlNzg5YTljZTM2ZjI1NzA2NDMxNmZlYTdiYWVlMWFlOWIwNzRjOWRiODMyNTVkZmI2In0=" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755696496.txt"" +2025/08/20 09:28:16 [debug] 624147#624147: *8 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http cleanup add: 0000650E7C45CB80 +2025/08/20 09:28:16 [debug] 624147#624147: *8 get rr peer, try: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 stream socket 10 +2025/08/20 09:28:16 [debug] 624147#624147: *8 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:28:16 [debug] 624147#624147: *8 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #9 +2025/08/20 09:28:16 [debug] 624147#624147: *8 connected +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream connect: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 posix_memalign: 0000650E7C42FF20:128 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream send request +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream send request body +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer buf fl:0 s:1304 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer buf fl:0 s:184 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer buf fl:0 s:8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer buf fl:0 s:112 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer buf fl:0 s:8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer in: 0000650E7C45CC10 +2025/08/20 09:28:16 [debug] 624147#624147: *8 writev: 1616 of 1616 +2025/08/20 09:28:16 [debug] 624147#624147: *8 chain writer out: 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer add: 10: 60000:263289846 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http request count:2 blk:0 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:0004 d:000079281606E1E1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http run request: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream check client, write event:1, "/upload" +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream request: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream process header +2025/08/20 09:28:16 [debug] 624147#624147: *8 malloc: 0000650E7C451160:4096 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:0, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:10 1400 of 4096 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 21 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 33 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:28:16] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI1Y2ZkNjE1NzViZmE4MWFjMDljZGEyZGY2ZTQ1MTUzYzdhZmFmMGEwN2MyZjkyODIyNGE5NzU4MzM3MGE4MjYwIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTY0OTYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCIyM2U4MjkyZDBlZWYyMzgxMzlhZTlhNDZiZTk3Mjk1NTQ5MGUzMTNlNDAzMjBmZjYxM2VkZTcxNjVkMDEyZmIyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDA5NiJdXSwiY29udGVudCI6IiIsInNpZyI6IjM3ZWY0ZmMxZTgzZGJlMjU2NTQ1MDZlMGYzNDEzY2NjNjY0MjJjN2U1MWY1NzUyNGM5NDQzNTNkYWFjNzFmZTU5YWZjNTNlZjhhMDg0OGJlNzg5YTljZTM2ZjI1NzA2NDMxNmZlYTdiYWVlMWFlOWIwNzRjOWRiODMyNTVkZmI2In0= +LOG: [2025-08-20 09:28:16] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 3F +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 319 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:28:16-04:00 +Random data: cb00d7883badd3b9ae8e6f07642d0678e346df4344912dc94c20783d77554c87 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. +1" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:0, avail:0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream request: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream dummy handler +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 59998 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:10 ev:2005 d:000079281606E2C8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream request: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream process header +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:1, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:10 2696 of 2696 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: avail:1448 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 62 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 06 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 98 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "DEBUG-LAAN: Calculated SHA-256: 23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth calle" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "d with method: upload, hash: 23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI1Y2ZkNjE1NzViZmE4... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: " parse: {"kind":24242,"id":"5cfd61575bfa81ac09cda2df6e45153c7afaf0a07c2f928224a97583370a8260","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755696496,"tags":[["t","upload"],["x","23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2"],["expiration","1755700096"]],"content":"","sig":"37ef4fc1e83dbe25654506e0f3413ccc66422c7e51f57524c944353daac71fe59afc53ef8a0848be789a9ce36f257064316fea7baee1ae9b074c9db83255dfb6"} +✅ SUCCESS: cJSON_Parse succeeded" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: ", event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "5cfd61575bfa81ac09cda2df6e45153c7afaf0a07c2f928224a97583370a8260", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755696496, + "tags": [["t", "upload"], ["x", "23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2"], ["expiration", "1755700096"]], + "content": "", + "sig": "37ef4fc1e83dbe25654506e0f3413ccc66422c7e51f57524c944353daac71fe59afc53ef8a0848be789a9ce36f257064316fea7ba" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "ee1ae9b074c9db83255dfb6" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 5cfd61575bfa81ac09cda2df6e45153c7afaf0a07c2f928224a97583370a8260 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 37ef4fc1e83dbe25654506e0f3413ccc66422c7e51f57524c944353daac71fe59afc53ef8a0848be789a9ce36f257064316fea7baee1ae9b074c9db83255dfb6 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755696496 +🔍 STEP SERVER-5: Detailed pubkey" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: " analysis +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:1, avail:1448 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:10 1448 of 4096 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: avail:0 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: " INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(5" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: F8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 504 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "5) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: C5 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 03 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 197 +2025/08/20 09:28:16 [error] 624147#624147: *8 FastCGI sent in stderr: "ubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:28:16] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 07 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 06 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: C7 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 199 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi parser: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi parser: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi parser: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi header done +2025/08/20 09:28:16 [debug] 624147#624147: *8 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:28:16 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:28:16 [debug] 624147#624147: *8 write new buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http write filter: l:0 f:0 s:181 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http cacheable: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream process upstream +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe read upstream: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe preread: 164 +2025/08/20 09:28:16 [debug] 624147#624147: *8 readv: eof:1, avail:0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 readv: 1, last:2648 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe recv chain: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe length: -1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 input buf #0 0000650E7C451664 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 06 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi closed stdout +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 03 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 01 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 08 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record byte: 00 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi record length: 8 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http fastcgi sent end request +2025/08/20 09:28:16 [debug] 624147#624147: *8 input buf 0000650E7C451664 139 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe write downstream: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe write downstream flush in +2025/08/20 09:28:16 [debug] 624147#624147: *8 http output filter "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http copy filter: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http postpone filter "/upload?" 0000650E7C45CBE0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http chunk: 139 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write new buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write new buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http write filter: l:0 f:0 s:326 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http copy filter: 0 "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 pipe write downstream done +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer: 10, old: 263289846, new: 263289849 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream exit: 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *8 finalize http upstream request: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 finalize http fastcgi request +2025/08/20 09:28:16 [debug] 624147#624147: *8 free rr peer 1 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 close http upstream connection: 10 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C42FF20, unused: 48 +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer del: 10: 263289846 +2025/08/20 09:28:16 [debug] 624147#624147: *8 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http upstream temp fd: -1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http output filter "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http copy filter: "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http postpone filter "/upload?" 00007FFEBE5AA8A0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http chunk: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write old buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write old buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write old buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E5, size: 5 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http write filter: l:1 f:0 s:331 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http write filter limit 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 writev: 331 of 331 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http write filter 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http copy filter: 0 "/upload?" +2025/08/20 09:28:16 [debug] 624147#624147: *8 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 set http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *8 http close request +2025/08/20 09:28:16 [debug] 624147#624147: *8 http log handler +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C451160 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C465A30, unused: 3 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C45BDA0, unused: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C450150, unused: 1250 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 hc free: 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *8 hc busy: 0000000000000000 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 tcp_nodelay +2025/08/20 09:28:16 [debug] 624147#624147: *8 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer add: 6: 65000:263294849 +2025/08/20 09:28:16 [debug] 624147#624147: *8 post event 0000650E7C497770 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:28:16 [debug] 624147#624147: posted event 0000650E7C497770 +2025/08/20 09:28:16 [debug] 624147#624147: *8 delete posted event 0000650E7C497770 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *8 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:0, avail:0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:2005 d:000079281606E1E1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *8 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: eof:1, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *8 recv: fd:6 0 of 1024 +2025/08/20 09:28:16 [info] 624147#624147: *8 client 127.0.0.1 closed keepalive connection +2025/08/20 09:28:16 [debug] 624147#624147: *8 close http connection: 6 +2025/08/20 09:28:16 [debug] 624147#624147: *8 event timer del: 6: 263294849 +2025/08/20 09:28:16 [debug] 624147#624147: *8 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *8 free: 0000650E7C446840, unused: 120 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:28:16 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:28:16 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *10 accept: 127.0.0.1:42406 fd:6 +2025/08/20 09:28:16 [debug] 624147#624147: *10 event timer add: 6: 60000:263289860 +2025/08/20 09:28:16 [debug] 624147#624147: *10 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 9 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http wait request handler +2025/08/20 09:28:16 [debug] 624147#624147: *10 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *10 recv: eof:0, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 recv: fd:6 142 of 1024 +2025/08/20 09:28:16 [debug] 624147#624147: *10 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http process request line +2025/08/20 09:28:16 [debug] 624147#624147: *10 http request line: "GET /23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2 HTTP/1.1" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http uri: "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http args: "" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http exten: "" +2025/08/20 09:28:16 [debug] 624147#624147: *10 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http process request header line +2025/08/20 09:28:16 [debug] 624147#624147: *10 http header: "Host: localhost:9001" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http header: "Accept: */*" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http header done +2025/08/20 09:28:16 [debug] 624147#624147: *10 event timer del: 6: 263289860 +2025/08/20 09:28:16 [debug] 624147#624147: *10 generic phase: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 rewrite phase: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 test location: "/health" +2025/08/20 09:28:16 [debug] 624147#624147: *10 test location: "/debug/list" +2025/08/20 09:28:16 [debug] 624147#624147: *10 test location: "/" +2025/08/20 09:28:16 [debug] 624147#624147: *10 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *10 using configuration "^/([a-f0-9]{64}).*$" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http cl:-1 max:104857600 +2025/08/20 09:28:16 [debug] 624147#624147: *10 rewrite phase: 3 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http script var +2025/08/20 09:28:16 [debug] 624147#624147: *10 http script var: "GET" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http script value: "DELETE" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http script not equal +2025/08/20 09:28:16 [debug] 624147#624147: *10 http script if +2025/08/20 09:28:16 [debug] 624147#624147: *10 http finalize request: 404, "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" a:1, c:1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http special response: 404, "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http set discard body +2025/08/20 09:28:16 [debug] 624147#624147: *10 HTTP/1.1 404 Not Found +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:28:16 GMT +Content-Type: text/html +Content-Length: 162 +Connection: keep-alive + +2025/08/20 09:28:16 [debug] 624147#624147: *10 write new buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 164 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http write filter: l:0 f:0 s:164 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http output filter "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http copy filter: "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http postpone filter "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" 0000650E7C45C310 +2025/08/20 09:28:16 [debug] 624147#624147: *10 write old buf t:1 f:0 0000650E7C45C180, pos 0000650E7C45C180, size: 164 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD45580, size: 100 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD45C80, size: 62 file: 0, size: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http write filter: l:1 f:0 s:326 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http write filter limit 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 writev: 326 of 326 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http write filter 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http copy filter: 0 "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" +2025/08/20 09:28:16 [debug] 624147#624147: *10 http finalize request: 0, "/23e8292d0eef238139ae9a46be972955490e313e40320ff613ede7165d012fb2?" a:1, c:1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 set http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *10 http close request +2025/08/20 09:28:16 [debug] 624147#624147: *10 http log handler +2025/08/20 09:28:16 [debug] 624147#624147: *10 free: 0000650E7C465A30, unused: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 free: 0000650E7C45BDA0, unused: 2456 +2025/08/20 09:28:16 [debug] 624147#624147: *10 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 hc free: 0000000000000000 +2025/08/20 09:28:16 [debug] 624147#624147: *10 hc busy: 0000000000000000 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 tcp_nodelay +2025/08/20 09:28:16 [debug] 624147#624147: *10 reusable connection: 1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 event timer add: 6: 65000:263294861 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:28:16 [debug] 624147#624147: epoll: fd:6 ev:2001 d:000079281606E1E0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 http keepalive handler +2025/08/20 09:28:16 [debug] 624147#624147: *10 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:28:16 [debug] 624147#624147: *10 recv: eof:1, avail:-1 +2025/08/20 09:28:16 [debug] 624147#624147: *10 recv: fd:6 0 of 1024 +2025/08/20 09:28:16 [info] 624147#624147: *10 client 127.0.0.1 closed keepalive connection +2025/08/20 09:28:16 [debug] 624147#624147: *10 close http connection: 6 +2025/08/20 09:28:16 [debug] 624147#624147: *10 event timer del: 6: 263294861 +2025/08/20 09:28:16 [debug] 624147#624147: *10 reusable connection: 0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 free: 0000650E7C4490A0 +2025/08/20 09:28:16 [debug] 624147#624147: *10 free: 0000650E7C446840, unused: 136 +2025/08/20 09:28:16 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:28:16 [debug] 624147#624147: worker cycle +2025/08/20 09:28:16 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:31:55 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:31:55 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:31:55 [debug] 624147#624147: *11 accept: 127.0.0.1:47718 fd:6 +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer add: 6: 60000:263508675 +2025/08/20 09:31:55 [debug] 624147#624147: *11 reusable connection: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:31:55 [debug] 624147#624147: timer delta: 218813 +2025/08/20 09:31:55 [debug] 624147#624147: worker cycle +2025/08/20 09:31:55 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http wait request handler +2025/08/20 09:31:55 [debug] 624147#624147: *11 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:0, avail:-1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:6 1024 of 1024 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: avail:112 +2025/08/20 09:31:55 [debug] 624147#624147: *11 reusable connection: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http process request line +2025/08/20 09:31:55 [debug] 624147#624147: *11 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http uri: "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http args: "" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http exten: "" +2025/08/20 09:31:55 [debug] 624147#624147: *11 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http process request header line +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Host: localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Accept: */*" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4MjM5OTc3NTAxMGYxZWI0OWIxOTdkOTIwZTkxN2Y0ZDNhODljNDA4MWM0NDc0MzcyMWQxNjIyN2VhN2ViYWQ2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY3MTUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYzE3OWRhYjNmODEzOGYxYjZjMGZmOTZkM2IwYTJlY2E5ZGM1OTI0NjMzMmEzZDczYTc2ZTU0ZDZlYmFlNDNjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDMxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjZkZGEwNDIwOWUxM2RmOTQyYzBiMTc2ODczYjY4MmY3ODE1ZmEyZDI1YWM4ODk0ZDYyOTViZWQxYzE4N2VhM2IzODQ2YmNiMTU3NjEzMWM3NDY1ZmI0OWFkZTBjMTY1M2Q2YzU1ZTFjYWNiOWRhYTUyYmE3MTE4YTAwZjA4ODNmIn0=" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Content-Type: text/plain" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Content-Disposition: attachment; filename="test_blob_1755696715.txt"" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header: "Content-Length: 296" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http header done +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer del: 6: 263508675 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 rewrite phase: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: "/health" +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:31:55 [debug] 624147#624147: *11 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:31:55 [debug] 624147#624147: *11 using configuration "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http cl:296 max:104857600 +2025/08/20 09:31:55 [debug] 624147#624147: *11 rewrite phase: 3 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "PUT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script regex: "^(PUT)$" +2025/08/20 09:31:55 [notice] 624147#624147: *11 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script if +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script if: false +2025/08/20 09:31:55 [debug] 624147#624147: *11 post rewrite phase: 4 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 5 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 6 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 7 +2025/08/20 09:31:55 [debug] 624147#624147: *11 access phase: 8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 access phase: 9 +2025/08/20 09:31:55 [debug] 624147#624147: *11 access phase: 10 +2025/08/20 09:31:55 [debug] 624147#624147: *11 post access phase: 11 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 12 +2025/08/20 09:31:55 [debug] 624147#624147: *11 generic phase: 13 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http client request body preread 184 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http request body content length filter +2025/08/20 09:31:55 [debug] 624147#624147: *11 http body new buf t:1 f:0 0000650E7C4493E8, pos 0000650E7C4493E8, size: 184 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http read client request body +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:0, avail:112 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:6 112 of 112 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: avail:0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http client request body recv 112 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http body new buf t:1 f:0 0000650E7C45C830, pos 0000650E7C45C830, size: 112 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http client request body rest 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http init upstream, client timer: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:31:55 [debug] 624147#624147: *11 posix_memalign: 0000650E7C450150:4096 @16 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "QUERY_STRING" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "QUERY_STRING: " +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REQUEST_METHOD" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "PUT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "CONTENT_TYPE" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "text/plain" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "CONTENT_LENGTH" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "296" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SCRIPT_NAME" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REQUEST_URI" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "DOCUMENT_URI" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "./blobs" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "HTTP/1.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REQUEST_SCHEME" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "http" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "CGI/1.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "nginx/" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "1.18.0" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REMOTE_ADDR" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "127.0.0.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REMOTE_PORT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "47718" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REMOTE_PORT: 47718" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SERVER_ADDR" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "127.0.0.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SERVER_PORT" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SERVER_NAME" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "localhost" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "REDIRECT_STATUS" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "200" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script var: "./blobs" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http script copy: "/ginxsom.fcgi" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4MjM5OTc3NTAxMGYxZWI0OWIxOTdkOTIwZTkxN2Y0ZDNhODljNDA4MWM0NDc0MzcyMWQxNjIyN2VhN2ViYWQ2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY3MTUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYzE3OWRhYjNmODEzOGYxYjZjMGZmOTZkM2IwYTJlY2E5ZGM1OTI0NjMzMmEzZDczYTc2ZTU0ZDZlYmFlNDNjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDMxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjZkZGEwNDIwOWUxM2RmOTQyYzBiMTc2ODczYjY4MmY3ODE1ZmEyZDI1YWM4ODk0ZDYyOTViZWQxYzE4N2VhM2IzODQ2YmNiMTU3NjEzMWM3NDY1ZmI0OWFkZTBjMTY1M2Q2YzU1ZTFjYWNiOWRhYTUyYmE3MTE4YTAwZjA4ODNmIn0=" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755696715.txt"" +2025/08/20 09:31:55 [debug] 624147#624147: *11 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http cleanup add: 0000650E7C45CB80 +2025/08/20 09:31:55 [debug] 624147#624147: *11 get rr peer, try: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 stream socket 10 +2025/08/20 09:31:55 [debug] 624147#624147: *11 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:31:55 [debug] 624147#624147: *11 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #12 +2025/08/20 09:31:55 [debug] 624147#624147: *11 connected +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream connect: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 posix_memalign: 0000650E7C42FF20:128 @16 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream send request +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream send request body +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer buf fl:0 s:1304 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer buf fl:0 s:184 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer buf fl:0 s:8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer buf fl:0 s:112 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer buf fl:0 s:8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer in: 0000650E7C45CC10 +2025/08/20 09:31:55 [debug] 624147#624147: *11 writev: 1616 of 1616 +2025/08/20 09:31:55 [debug] 624147#624147: *11 chain writer out: 0000000000000000 +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer add: 10: 60000:263508675 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http request count:2 blk:0 +2025/08/20 09:31:55 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:31:55 [debug] 624147#624147: worker cycle +2025/08/20 09:31:55 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:6 ev:0004 d:000079281606E1E1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http run request: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream check client, write event:1, "/upload" +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C9 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream request: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream process header +2025/08/20 09:31:55 [debug] 624147#624147: *11 malloc: 0000650E7C451160:4096 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:0, avail:-1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:10 1400 of 4096 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 21 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 33 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:31:55] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4MjM5OTc3NTAxMGYxZWI0OWIxOTdkOTIwZTkxN2Y0ZDNhODljNDA4MWM0NDc0MzcyMWQxNjIyN2VhN2ViYWQ2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTY3MTUsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCJiYzE3OWRhYjNmODEzOGYxYjZjMGZmOTZkM2IwYTJlY2E5ZGM1OTI0NjMzMmEzZDczYTc2ZTU0ZDZlYmFlNDNjIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDMxNSJdXSwiY29udGVudCI6IiIsInNpZyI6IjZkZGEwNDIwOWUxM2RmOTQyYzBiMTc2ODczYjY4MmY3ODE1ZmEyZDI1YWM4ODk0ZDYyOTViZWQxYzE4N2VhM2IzODQ2YmNiMTU3NjEzMWM3NDY1ZmI0OWFkZTBjMTY1M2Q2YzU1ZTFjYWNiOWRhYTUyYmE3MTE4YTAwZjA4ODNmIn0= +LOG: [2025-08-20 09:31:55] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 3F +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 319 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:31:55-04:00 +Random data: 81e5b41ff7697c6ec4489b7ab7426f31c23599b23fde4554f792da595ad18433 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. +1" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:0, avail:0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream request: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream dummy handler +2025/08/20 09:31:55 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:31:55 [debug] 624147#624147: worker cycle +2025/08/20 09:31:55 [debug] 624147#624147: epoll timer: 59998 +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:10 ev:2005 d:000079281606E2C9 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream request: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream process header +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:1, avail:-1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:10 2696 of 2696 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: avail:1448 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 62 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 06 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 98 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "DEBUG-LAAN: Calculated SHA-256: bc179dab3f8138f1b6c0ff96d3b0a2eca9dc59246332a3d73a76e54d6ebae43c" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: bc179dab3f8138f1b6c0ff96d3b0a2eca9dc59246332a3d73a76e54d6ebae43c +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth calle" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "d with method: upload, hash: bc179dab3f8138f1b6c0ff96d3b0a2eca9dc59246332a3d73a76e54d6ebae43c +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI4MjM5OTc3NTAxMGYx... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: " parse: {"kind":24242,"id":"82399775010f1eb49b197d920e917f4d3a89c4081c44743721d16227ea7ebad6","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755696715,"tags":[["t","upload"],["x","bc179dab3f8138f1b6c0ff96d3b0a2eca9dc59246332a3d73a76e54d6ebae43c"],["expiration","1755700315"]],"content":"","sig":"6dda04209e13df942c0b176873b682f7815fa2d25ac8894d6295bed1c187ea3b3846bcb1576131c7465fb49ade0c1653d6c55e1cacb9daa52ba7118a00f0883f"} +✅ SUCCESS: cJSON_Parse succeeded" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: ", event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "82399775010f1eb49b197d920e917f4d3a89c4081c44743721d16227ea7ebad6", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755696715, + "tags": [["t", "upload"], ["x", "bc179dab3f8138f1b6c0ff96d3b0a2eca9dc59246332a3d73a76e54d6ebae43c"], ["expiration", "1755700315"]], + "content": "", + "sig": "6dda04209e13df942c0b176873b682f7815fa2d25ac8894d6295bed1c187ea3b3846bcb1576131c7465fb49ade0c1653d6c55e1ca" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "cb9daa52ba7118a00f0883f" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 82399775010f1eb49b197d920e917f4d3a89c4081c44743721d16227ea7ebad6 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 6dda04209e13df942c0b176873b682f7815fa2d25ac8894d6295bed1c187ea3b3846bcb1576131c7465fb49ade0c1653d6c55e1cacb9daa52ba7118a00f0883f +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755696715 +🔍 STEP SERVER-5: Detailed pubkey" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: " analysis +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:1, avail:1448 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:10 1448 of 4096 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: avail:0 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: " INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(5" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: F8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 504 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "5) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: C5 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 03 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 197 +2025/08/20 09:31:55 [error] 624147#624147: *11 FastCGI sent in stderr: "ubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:31:55] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 07 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 06 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: C7 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 199 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi parser: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi parser: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi parser: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi header done +2025/08/20 09:31:55 [debug] 624147#624147: *11 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:31:55 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:31:55 [debug] 624147#624147: *11 write new buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http write filter: l:0 f:0 s:181 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http cacheable: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream process upstream +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe read upstream: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe preread: 164 +2025/08/20 09:31:55 [debug] 624147#624147: *11 readv: eof:1, avail:0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 readv: 1, last:2648 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe recv chain: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe length: -1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 input buf #0 0000650E7C451664 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 06 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi closed stdout +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 03 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 01 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 08 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record byte: 00 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi record length: 8 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http fastcgi sent end request +2025/08/20 09:31:55 [debug] 624147#624147: *11 input buf 0000650E7C451664 139 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe write downstream: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe write downstream flush in +2025/08/20 09:31:55 [debug] 624147#624147: *11 http output filter "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http copy filter: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http postpone filter "/upload?" 0000650E7C45CBE0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http chunk: 139 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write new buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write new buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http write filter: l:0 f:0 s:326 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http copy filter: 0 "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 pipe write downstream done +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer: 10, old: 263508675, new: 263508677 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream exit: 0000000000000000 +2025/08/20 09:31:55 [debug] 624147#624147: *11 finalize http upstream request: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 finalize http fastcgi request +2025/08/20 09:31:55 [debug] 624147#624147: *11 free rr peer 1 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 close http upstream connection: 10 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C42FF20, unused: 48 +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer del: 10: 263508675 +2025/08/20 09:31:55 [debug] 624147#624147: *11 reusable connection: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http upstream temp fd: -1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http output filter "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http copy filter: "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http postpone filter "/upload?" 00007FFEBE5AA8A0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http chunk: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write old buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write old buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write old buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E5, size: 5 file: 0, size: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http write filter: l:1 f:0 s:331 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http write filter limit 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 writev: 331 of 331 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http write filter 0000000000000000 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http copy filter: 0 "/upload?" +2025/08/20 09:31:55 [debug] 624147#624147: *11 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 set http keepalive handler +2025/08/20 09:31:55 [debug] 624147#624147: *11 http close request +2025/08/20 09:31:55 [debug] 624147#624147: *11 http log handler +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C451160 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C465A30, unused: 3 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C45BDA0, unused: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C450150, unused: 1250 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C4490A0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 hc free: 0000000000000000 +2025/08/20 09:31:55 [debug] 624147#624147: *11 hc busy: 0000000000000000 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 tcp_nodelay +2025/08/20 09:31:55 [debug] 624147#624147: *11 reusable connection: 1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer add: 6: 65000:263513677 +2025/08/20 09:31:55 [debug] 624147#624147: *11 post event 0000650E7C497770 +2025/08/20 09:31:55 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:31:55 [debug] 624147#624147: posted event 0000650E7C497770 +2025/08/20 09:31:55 [debug] 624147#624147: *11 delete posted event 0000650E7C497770 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http keepalive handler +2025/08/20 09:31:55 [debug] 624147#624147: *11 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:0, avail:0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C4490A0 +2025/08/20 09:31:55 [debug] 624147#624147: worker cycle +2025/08/20 09:31:55 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:31:55 [debug] 624147#624147: epoll: fd:6 ev:2005 d:000079281606E1E1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 http keepalive handler +2025/08/20 09:31:55 [debug] 624147#624147: *11 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: eof:1, avail:-1 +2025/08/20 09:31:55 [debug] 624147#624147: *11 recv: fd:6 0 of 1024 +2025/08/20 09:31:55 [info] 624147#624147: *11 client 127.0.0.1 closed keepalive connection +2025/08/20 09:31:55 [debug] 624147#624147: *11 close http connection: 6 +2025/08/20 09:31:55 [debug] 624147#624147: *11 event timer del: 6: 263513677 +2025/08/20 09:31:55 [debug] 624147#624147: *11 reusable connection: 0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C4490A0 +2025/08/20 09:31:55 [debug] 624147#624147: *11 free: 0000650E7C446840, unused: 120 +2025/08/20 09:31:55 [debug] 624147#624147: timer delta: 3 +2025/08/20 09:31:55 [debug] 624147#624147: worker cycle +2025/08/20 09:31:55 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:5 ev:0001 d:000079281606E010 +2025/08/20 09:33:26 [debug] 624147#624147: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:33:26 [debug] 624147#624147: posix_memalign: 0000650E7C446840:512 @16 +2025/08/20 09:33:26 [debug] 624147#624147: *13 accept: 127.0.0.1:58156 fd:6 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer add: 6: 60000:263599733 +2025/08/20 09:33:26 [debug] 624147#624147: *13 reusable connection: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 91053 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:6 ev:0001 d:000079281606E1E0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http wait request handler +2025/08/20 09:33:26 [debug] 624147#624147: *13 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:-1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:6 1024 of 1024 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: avail:112 +2025/08/20 09:33:26 [debug] 624147#624147: *13 reusable connection: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 posix_memalign: 0000650E7C465A30:4096 @16 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http process request line +2025/08/20 09:33:26 [debug] 624147#624147: *13 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http uri: "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http args: "" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http exten: "" +2025/08/20 09:33:26 [debug] 624147#624147: *13 posix_memalign: 0000650E7C45BDA0:4096 @16 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http process request header line +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Host: localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Accept: */*" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlM2Y0MTQ5MTJkYWYzY2RjZTA4M2M4Mzc4ZWY1NmNlMzNkNmUxMDUzNzc5MTVkZDI2YWI5YmFkNDkwMTA2YWYxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY4MDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5N2VkNTI0MTZkYTliNDg2Y2MyMWZmNzE5MTFlYmIxMGI3Mjk4YjFiMTJjZGI1NzM1ZmI4Y2ZkNzZiYjNkMThlIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDQwNiJdXSwiY29udGVudCI6IiIsInNpZyI6Ijc3MjkxMWZjMzVmMzMxNDQwNjQ4MTA0OGFkMjFmYmUxNzIwNmE4ZGUwYzJkYzk5ZTI0OWY5MzljMzdhNTNkNzk4ZDBhZWZmNzRiZjNiNDM0OTE0ZmRmYjhiNTBhNTUwYzVkOGEyYjljMGUyZWE5YWY3OGVkYjY1YWZlNWI4NGJkIn0=" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Content-Type: text/plain" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Content-Disposition: attachment; filename="test_blob_1755696806.txt"" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header: "Content-Length: 296" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http header done +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer del: 6: 263599733 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 rewrite phase: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: "/health" +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:33:26 [debug] 624147#624147: *13 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:33:26 [debug] 624147#624147: *13 using configuration "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http cl:296 max:104857600 +2025/08/20 09:33:26 [debug] 624147#624147: *13 rewrite phase: 3 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "PUT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script regex: "^(PUT)$" +2025/08/20 09:33:26 [notice] 624147#624147: *13 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script if +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script if: false +2025/08/20 09:33:26 [debug] 624147#624147: *13 post rewrite phase: 4 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 5 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 6 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 7 +2025/08/20 09:33:26 [debug] 624147#624147: *13 access phase: 8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 access phase: 9 +2025/08/20 09:33:26 [debug] 624147#624147: *13 access phase: 10 +2025/08/20 09:33:26 [debug] 624147#624147: *13 post access phase: 11 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 12 +2025/08/20 09:33:26 [debug] 624147#624147: *13 generic phase: 13 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http client request body preread 184 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http request body content length filter +2025/08/20 09:33:26 [debug] 624147#624147: *13 http body new buf t:1 f:0 0000650E7C4493E8, pos 0000650E7C4493E8, size: 184 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http read client request body +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:112 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:6 112 of 112 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: avail:0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http client request body recv 112 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http body new buf t:1 f:0 0000650E7C45C830, pos 0000650E7C45C830, size: 112 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http client request body rest 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http init upstream, client timer: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:33:26 [debug] 624147#624147: *13 posix_memalign: 0000650E7C450150:4096 @16 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "QUERY_STRING" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "QUERY_STRING: " +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REQUEST_METHOD" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "PUT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "CONTENT_TYPE" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "text/plain" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "CONTENT_LENGTH" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "296" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SCRIPT_NAME" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REQUEST_URI" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "DOCUMENT_URI" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "./blobs" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "HTTP/1.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REQUEST_SCHEME" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "http" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "CGI/1.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "nginx/" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "1.18.0" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REMOTE_ADDR" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "127.0.0.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REMOTE_PORT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "58156" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REMOTE_PORT: 58156" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SERVER_ADDR" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "127.0.0.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SERVER_PORT" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SERVER_NAME" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "localhost" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "REDIRECT_STATUS" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "200" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script var: "./blobs" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http script copy: "/ginxsom.fcgi" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlM2Y0MTQ5MTJkYWYzY2RjZTA4M2M4Mzc4ZWY1NmNlMzNkNmUxMDUzNzc5MTVkZDI2YWI5YmFkNDkwMTA2YWYxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTY4MDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5N2VkNTI0MTZkYTliNDg2Y2MyMWZmNzE5MTFlYmIxMGI3Mjk4YjFiMTJjZGI1NzM1ZmI4Y2ZkNzZiYjNkMThlIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDQwNiJdXSwiY29udGVudCI6IiIsInNpZyI6Ijc3MjkxMWZjMzVmMzMxNDQwNjQ4MTA0OGFkMjFmYmUxNzIwNmE4ZGUwYzJkYzk5ZTI0OWY5MzljMzdhNTNkNzk4ZDBhZWZmNzRiZjNiNDM0OTE0ZmRmYjhiNTBhNTUwYzVkOGEyYjljMGUyZWE5YWY3OGVkYjY1YWZlNWI4NGJkIn0=" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755696806.txt"" +2025/08/20 09:33:26 [debug] 624147#624147: *13 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http cleanup add: 0000650E7C45CB80 +2025/08/20 09:33:26 [debug] 624147#624147: *13 get rr peer, try: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 stream socket 10 +2025/08/20 09:33:26 [debug] 624147#624147: *13 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:33:26 [debug] 624147#624147: *13 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #14 +2025/08/20 09:33:26 [debug] 624147#624147: *13 connected +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream connect: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 posix_memalign: 0000650E7C42FF20:128 @16 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream send request +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream send request body +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer buf fl:0 s:1304 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer buf fl:0 s:184 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer buf fl:0 s:8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer buf fl:0 s:112 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer buf fl:0 s:8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer in: 0000650E7C45CC10 +2025/08/20 09:33:26 [debug] 624147#624147: *13 writev: 1616 of 1616 +2025/08/20 09:33:26 [debug] 624147#624147: *13 chain writer out: 0000000000000000 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer add: 10: 60000:263599733 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http request count:2 blk:0 +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 0 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: 60000 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:6 ev:0004 d:000079281606E1E0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http run request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream check client, write event:1, "/upload" +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream process header +2025/08/20 09:33:26 [debug] 624147#624147: *13 malloc: 0000650E7C451160:4096 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:-1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:10 1400 of 4096 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 21 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 33 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:33:26] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlM2Y0MTQ5MTJkYWYzY2RjZTA4M2M4Mzc4ZWY1NmNlMzNkNmUxMDUzNzc5MTVkZDI2YWI5YmFkNDkwMTA2YWYxIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTY4MDYsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI5N2VkNTI0MTZkYTliNDg2Y2MyMWZmNzE5MTFlYmIxMGI3Mjk4YjFiMTJjZGI1NzM1ZmI4Y2ZkNzZiYjNkMThlIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDQwNiJdXSwiY29udGVudCI6IiIsInNpZyI6Ijc3MjkxMWZjMzVmMzMxNDQwNjQ4MTA0OGFkMjFmYmUxNzIwNmE4ZGUwYzJkYzk5ZTI0OWY5MzljMzdhNTNkNzk4ZDBhZWZmNzRiZjNiNDM0OTE0ZmRmYjhiNTBhNTUwYzVkOGEyYjljMGUyZWE5YWY3OGVkYjY1YWZlNWI4NGJkIn0= +LOG: [2025-08-20 09:33:26] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG: Successfully read DEBUG-" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 3F +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 319 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "LAAN: DATA TO HASH: Test blob content for Ginxsom Blossom server +Timestamp: 2025-08-20T09:33:26-04:00 +Random data: 24e3a099a13320ce509eb234f75f34f73eb999faa377d4cacb141eae61939fe7 +Test message: Hello from put_test.sh! + +This file is used to test the upload functionality +of the Ginxsom Blossom server implementation. +1" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream dummy handler +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 2 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: 59998 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:10 ev:0005 d:000079281606E2C8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream process header +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:-1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:10 2696 of 2696 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: avail:488 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 62 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 06 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 98 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "DEBUG-LAAN: Calculated SHA-256: 97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth calle" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "d with method: upload, hash: 97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiJlM2Y0MTQ5MTJkYWYz... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: " parse: {"kind":24242,"id":"e3f414912daf3cdce083c8378ef56ce33d6e105377915dd26ab9bad490106af1","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755696806,"tags":[["t","upload"],["x","97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e"],["expiration","1755700406"]],"content":"","sig":"772911fc35f3314406481048ad21fbe17206a8de0c2dc99e249f939c37a53d798d0aeff74bf3b434914fdfb8b50a550c5d8a2b9c0e2ea9af78edb65afe5b84bd"} +✅ SUCCESS: cJSON_Parse succeeded" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: ", event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "e3f414912daf3cdce083c8378ef56ce33d6e105377915dd26ab9bad490106af1", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755696806, + "tags": [["t", "upload"], ["x", "97ed52416da9b486cc21ff71911ebb10b7298b1b12cdb5735fb8cfd76bb3d18e"], ["expiration", "1755700406"]], + "content": "", + "sig": "772911fc35f3314406481048ad21fbe17206a8de0c2dc99e249f939c37a53d798d0aeff74bf3b434914fdfb8b50a550c5d8a2b9c0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "e2ea9af78edb65afe5b84bd" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: e3f414912daf3cdce083c8378ef56ce33d6e105377915dd26ab9bad490106af1 +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 772911fc35f3314406481048ad21fbe17206a8de0c2dc99e249f939c37a53d798d0aeff74bf3b434914fdfb8b50a550c5d8a2b9c0e2ea9af78edb65afe5b84bd +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755696806 +🔍 STEP SERVER-5: Detailed pubkey" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: " analysis +ℹ️" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:488 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:10 1448 of 4096 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: avail:0 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: " INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(5" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: F8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 504 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "5) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: C5 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 03 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 197 +2025/08/20 09:33:26 [error] 624147#624147: *13 FastCGI sent in stderr: "ubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:33:26] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 07 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 06 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: C7 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 199 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi parser: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi parser: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi parser: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi header done +2025/08/20 09:33:26 [debug] 624147#624147: *13 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:33:26 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:33:26 [debug] 624147#624147: *13 write new buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http write filter: l:0 f:0 s:181 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http cacheable: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream process upstream +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe read upstream: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe preread: 164 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe length: -1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write downstream: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write busy: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write: out:0000000000000000, f:0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe read upstream: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe length: -1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer: 10, old: 263599733, new: 263599736 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream dummy handler +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: 59997 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:10 ev:2005 d:000079281606E2C8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream request: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream process upstream +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe read upstream: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 readv: eof:1, avail:-1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 readv: 1, last:2648 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe recv chain: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe buf free s:0 t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 164 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe length: -1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 input buf #0 0000650E7C451664 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 06 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi closed stdout +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 03 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 01 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 08 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record byte: 00 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi record length: 8 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http fastcgi sent end request +2025/08/20 09:33:26 [debug] 624147#624147: *13 input buf 0000650E7C451664 139 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write downstream: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write downstream flush in +2025/08/20 09:33:26 [debug] 624147#624147: *13 http output filter "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http copy filter: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http postpone filter "/upload?" 0000650E7C45CBE0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http chunk: 139 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write new buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write new buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http write filter: l:0 f:0 s:326 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http copy filter: 0 "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 pipe write downstream done +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer: 10, old: 263599733, new: 263599737 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream exit: 0000000000000000 +2025/08/20 09:33:26 [debug] 624147#624147: *13 finalize http upstream request: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 finalize http fastcgi request +2025/08/20 09:33:26 [debug] 624147#624147: *13 free rr peer 1 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 close http upstream connection: 10 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C42FF20, unused: 48 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer del: 10: 263599733 +2025/08/20 09:33:26 [debug] 624147#624147: *13 reusable connection: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http upstream temp fd: -1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http output filter "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http copy filter: "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http postpone filter "/upload?" 00007FFEBE5AA8A0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http chunk: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write old buf t:1 f:0 0000650E7C450808, pos 0000650E7C450808, size: 181 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write old buf t:1 f:0 0000650E7C45CD78, pos 0000650E7C45CD78, size: 4 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write old buf t:1 f:0 0000650E7C451160, pos 0000650E7C451664, size: 139 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write old buf t:0 f:0 0000000000000000, pos 0000650E5AD062E8, size: 2 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 write new buf t:0 f:0 0000000000000000, pos 0000650E5AD062E5, size: 5 file: 0, size: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http write filter: l:1 f:0 s:331 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http write filter limit 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 writev: 331 of 331 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http write filter 0000000000000000 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http copy filter: 0 "/upload?" +2025/08/20 09:33:26 [debug] 624147#624147: *13 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 set http keepalive handler +2025/08/20 09:33:26 [debug] 624147#624147: *13 http close request +2025/08/20 09:33:26 [debug] 624147#624147: *13 http log handler +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C451160 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C465A30, unused: 3 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C45BDA0, unused: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C450150, unused: 1250 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C4490A0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 hc free: 0000000000000000 +2025/08/20 09:33:26 [debug] 624147#624147: *13 hc busy: 0000000000000000 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 tcp_nodelay +2025/08/20 09:33:26 [debug] 624147#624147: *13 reusable connection: 1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer add: 6: 65000:263604737 +2025/08/20 09:33:26 [debug] 624147#624147: *13 post event 0000650E7C497770 +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:33:26 [debug] 624147#624147: posted event 0000650E7C497770 +2025/08/20 09:33:26 [debug] 624147#624147: *13 delete posted event 0000650E7C497770 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http keepalive handler +2025/08/20 09:33:26 [debug] 624147#624147: *13 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:0, avail:0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C4490A0 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: 65000 +2025/08/20 09:33:26 [debug] 624147#624147: epoll: fd:6 ev:2005 d:000079281606E1E0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 http keepalive handler +2025/08/20 09:33:26 [debug] 624147#624147: *13 malloc: 0000650E7C4490A0:1024 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: eof:1, avail:-1 +2025/08/20 09:33:26 [debug] 624147#624147: *13 recv: fd:6 0 of 1024 +2025/08/20 09:33:26 [info] 624147#624147: *13 client 127.0.0.1 closed keepalive connection +2025/08/20 09:33:26 [debug] 624147#624147: *13 close http connection: 6 +2025/08/20 09:33:26 [debug] 624147#624147: *13 event timer del: 6: 263604737 +2025/08/20 09:33:26 [debug] 624147#624147: *13 reusable connection: 0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C4490A0 +2025/08/20 09:33:26 [debug] 624147#624147: *13 free: 0000650E7C446840, unused: 120 +2025/08/20 09:33:26 [debug] 624147#624147: timer delta: 1 +2025/08/20 09:33:26 [debug] 624147#624147: worker cycle +2025/08/20 09:33:26 [debug] 624147#624147: epoll timer: -1 +2025/08/20 09:38:54 [notice] 624146#624146: signal 15 (SIGTERM) received from 626500, exiting +2025/08/20 09:38:54 [debug] 624146#624146: wake up, sigio 0 +2025/08/20 09:38:54 [debug] 624146#624146: child: 0 624147 e:0 t:0 d:0 r:1 j:0 +2025/08/20 09:38:54 [debug] 624146#624146: termination cycle: 50 +2025/08/20 09:38:54 [debug] 624146#624146: sigsuspend +2025/08/20 09:38:54 [debug] 624147#624147: epoll: fd:7 ev:0001 d:000079281606E0F8 +2025/08/20 09:38:54 [debug] 624147#624147: channel handler +2025/08/20 09:38:54 [debug] 624147#624147: channel: 32 +2025/08/20 09:38:54 [debug] 624147#624147: channel command: 4 +2025/08/20 09:38:54 [debug] 624147#624147: channel: -2 +2025/08/20 09:38:54 [debug] 624147#624147: timer delta: 327731 +2025/08/20 09:38:54 [notice] 624147#624147: exiting +2025/08/20 09:38:54 [debug] 624147#624147: flush files +2025/08/20 09:38:54 [debug] 624147#624147: run cleanup: 0000650E7C494A80 +2025/08/20 09:38:54 [debug] 624147#624147: run cleanup: 0000650E7C487A18 +2025/08/20 09:38:54 [debug] 624147#624147: cleanup resolver +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C495DE0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C488BE0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C467B50 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C466A40 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C460A10 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C45F950 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C45E890 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C45D7D0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C455170 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C44C140, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C456580, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C461A20, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C468B60, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C46CB70, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C470B80, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C474B90, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C478BA0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C47CBB0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C480BC0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C484BD0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C489DB0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C48DDC0, unused: 0 +2025/08/20 09:38:54 [debug] 624147#624147: free: 0000650E7C491DD0, unused: 4920 +2025/08/20 09:38:54 [notice] 624147#624147: exit +2025/08/20 09:38:54 [notice] 624146#624146: signal 17 (SIGCHLD) received from 624147 +2025/08/20 09:38:54 [notice] 624146#624146: worker process 624147 exited with code 0 +2025/08/20 09:38:54 [debug] 624146#624146: shmtx forced unlock +2025/08/20 09:38:54 [debug] 624146#624146: wake up, sigio 3 +2025/08/20 09:38:54 [debug] 624146#624146: reap children +2025/08/20 09:38:54 [debug] 624146#624146: child: 0 624147 e:1 t:1 d:0 r:1 j:0 +2025/08/20 09:38:54 [notice] 624146#624146: exit +2025/08/20 09:38:54 [debug] 624146#624146: close listening 0.0.0.0:9001 #5 +2025/08/20 09:38:54 [debug] 624146#624146: run cleanup: 0000650E7C487A18 +2025/08/20 09:38:54 [debug] 624146#624146: cleanup resolver +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C495DE0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C488BE0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C467B50 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C466A40 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C460A10 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C45F950 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C45E890 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C45D7D0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C455170 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C44C140, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C456580, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C461A20, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C468B60, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C46CB70, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C470B80, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C474B90, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C478BA0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C47CBB0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C480BC0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C484BD0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C489DB0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C48DDC0, unused: 0 +2025/08/20 09:38:54 [debug] 624146#624146: free: 0000650E7C491DD0, unused: 4951 +2025/08/20 09:38:57 [debug] 626535#626535: bind() 0.0.0.0:9001 #5 +2025/08/20 09:38:57 [debug] 626535#626535: counter: 000075FCD21FE080, 1 +2025/08/20 09:38:57 [debug] 626536#626536: bind() 0.0.0.0:9001 #5 +2025/08/20 09:38:57 [notice] 626536#626536: using the "epoll" event method +2025/08/20 09:38:57 [debug] 626536#626536: counter: 000073B011458080, 1 +2025/08/20 09:38:57 [notice] 626536#626536: nginx/1.18.0 (Ubuntu) +2025/08/20 09:38:57 [notice] 626536#626536: OS: Linux 6.12.10-76061203-generic +2025/08/20 09:38:57 [notice] 626536#626536: getrlimit(RLIMIT_NOFILE): 1048576:1048576 +2025/08/20 09:38:57 [debug] 626537#626536: write: 6, 00007FFDBED42270, 7, 0 +2025/08/20 09:38:57 [debug] 626537#626537: setproctitle: "nginx: master process nginx -p . -c config/local-nginx.conf" +2025/08/20 09:38:57 [notice] 626537#626537: start worker processes +2025/08/20 09:38:57 [debug] 626537#626537: channel 6:7 +2025/08/20 09:38:57 [notice] 626537#626537: start worker process 626538 +2025/08/20 09:38:57 [debug] 626537#626537: sigsuspend +2025/08/20 09:38:57 [debug] 626538#626538: add cleanup: 00005C23627C6AC0 +2025/08/20 09:38:57 [debug] 626538#626538: malloc: 00005C2362779BD0:8 +2025/08/20 09:38:57 [debug] 626538#626538: notify eventfd: 9 +2025/08/20 09:38:57 [debug] 626538#626538: testing the EPOLLRDHUP flag: success +2025/08/20 09:38:57 [debug] 626538#626538: malloc: 00005C236278C5D0:6144 +2025/08/20 09:38:57 [debug] 626538#626538: malloc: 000073B011250010:237568 +2025/08/20 09:38:57 [debug] 626538#626538: malloc: 00005C23627C96F0:98304 +2025/08/20 09:38:57 [debug] 626538#626538: malloc: 00005C23627E1700:98304 +2025/08/20 09:38:57 [debug] 626538#626538: epoll add event: fd:5 op:1 ev:00002001 +2025/08/20 09:38:57 [debug] 626538#626538: epoll add event: fd:7 op:1 ev:00002001 +2025/08/20 09:38:57 [debug] 626538#626538: setproctitle: "nginx: worker process" +2025/08/20 09:38:57 [debug] 626538#626538: worker cycle +2025/08/20 09:38:57 [debug] 626538#626538: epoll timer: -1 +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:5 ev:0001 d:000073B011250010 +2025/08/20 09:39:27 [debug] 626538#626538: accept on 0.0.0.0:9001, ready: 0 +2025/08/20 09:39:27 [debug] 626538#626538: posix_memalign: 00005C2362778840:512 @16 +2025/08/20 09:39:27 [debug] 626538#626538: *1 accept: 127.0.0.1:49730 fd:6 +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer add: 6: 60000:263960688 +2025/08/20 09:39:27 [debug] 626538#626538: *1 reusable connection: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 epoll add event: fd:6 op:1 ev:80002001 +2025/08/20 09:39:27 [debug] 626538#626538: timer delta: 30003 +2025/08/20 09:39:27 [debug] 626538#626538: worker cycle +2025/08/20 09:39:27 [debug] 626538#626538: epoll timer: 60000 +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:6 ev:0001 d:000073B0112501E0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http wait request handler +2025/08/20 09:39:27 [debug] 626538#626538: *1 malloc: 00005C236277B0A0:1024 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:0, avail:-1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: fd:6 1024 of 1024 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: avail:112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 reusable connection: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 posix_memalign: 00005C2362797A70:4096 @16 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http process request line +2025/08/20 09:39:27 [debug] 626538#626538: *1 http request line: "PUT /upload HTTP/1.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http uri: "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http args: "" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http exten: "" +2025/08/20 09:39:27 [debug] 626538#626538: *1 posix_memalign: 00005C236278DDE0:4096 @16 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http process request header line +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Host: localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "User-Agent: curl/8.15.0" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Accept: */*" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Authorization: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzMDI1MzhlNDVhYTVjYWQzZmY4NWE3ODdiMGNjZWZiZDE3ZTBhZjg1N2EwZTg2MThmZjdjZjIzZjAzZjEyYTFiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTcxNjcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NzcxNGQ0NGI1ZDNhMzk1NGRlODhhMWNlNmI0NmVhYTBiMGQxMTg4Nzg3OWEyM2U2NDlmY2U4M2YwYWRlZTYyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDc2NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjgzYWZjYzdkMDYyOGRjYzJkMTRlODA1NjE0YmJlMGMwZDE4Yjk1ZWZlOTY4ODExZGRlMTQ1OGM3MzFmMjkyZTRiNjM4NmRhMzZiM2UzY2NiM2M1MDgyZThlMDIzMWQ0M2MzN2I5YTYyYWQ5Mjg1YjIwZTY1MTU2YTg1MjhjNTUzIn0=" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Content-Type: text/plain" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Content-Disposition: attachment; filename="test_blob_1755697167.txt"" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header: "Content-Length: 296" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http header done +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer del: 6: 263960688 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 rewrite phase: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: "/health" +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: ~ "^/([a-f0-9]{64}).*$" +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: ~ "^/([a-f0-9]{64})(\.[a-zA-Z0-9]+)?$" +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: ~ "^/fcgi-head/([a-f0-9]{64}).*$" +2025/08/20 09:39:27 [debug] 626538#626538: *1 test location: ~ "^/list/([a-f0-9]{64}).*$" +2025/08/20 09:39:27 [debug] 626538#626538: *1 using configuration "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http cl:296 max:104857600 +2025/08/20 09:39:27 [debug] 626538#626538: *1 rewrite phase: 3 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "PUT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script regex: "^(PUT)$" +2025/08/20 09:39:27 [notice] 626538#626538: *1 "^(PUT)$" matches "PUT", client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script if +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script if: false +2025/08/20 09:39:27 [debug] 626538#626538: *1 post rewrite phase: 4 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 5 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 6 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 7 +2025/08/20 09:39:27 [debug] 626538#626538: *1 access phase: 8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 access phase: 9 +2025/08/20 09:39:27 [debug] 626538#626538: *1 access phase: 10 +2025/08/20 09:39:27 [debug] 626538#626538: *1 post access phase: 11 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 12 +2025/08/20 09:39:27 [debug] 626538#626538: *1 generic phase: 13 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http client request body preread 184 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http request body content length filter +2025/08/20 09:39:27 [debug] 626538#626538: *1 http body new buf t:1 f:0 00005C236277B3E8, pos 00005C236277B3E8, size: 184 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http read client request body +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:0, avail:112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: fd:6 112 of 112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: avail:0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http client request body recv 112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http body new buf t:1 f:0 00005C236278E870, pos 00005C236278E870, size: 112 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http client request body rest 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http init upstream, client timer: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 epoll add event: fd:6 op:3 ev:80002005 +2025/08/20 09:39:27 [debug] 626538#626538: *1 posix_memalign: 00005C2362782190:4096 @16 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "QUERY_STRING" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "QUERY_STRING: " +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REQUEST_METHOD" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "PUT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REQUEST_METHOD: PUT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "CONTENT_TYPE" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "text/plain" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "CONTENT_TYPE: text/plain" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "CONTENT_LENGTH" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "296" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "CONTENT_LENGTH: 296" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SCRIPT_NAME" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SCRIPT_NAME: /upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REQUEST_URI" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REQUEST_URI: /upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "DOCUMENT_URI" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "DOCUMENT_URI: /upload" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "DOCUMENT_ROOT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "./blobs" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "DOCUMENT_ROOT: ./blobs" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SERVER_PROTOCOL" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "HTTP/1.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SERVER_PROTOCOL: HTTP/1.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REQUEST_SCHEME" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "http" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REQUEST_SCHEME: http" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "GATEWAY_INTERFACE" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "CGI/1.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "GATEWAY_INTERFACE: CGI/1.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SERVER_SOFTWARE" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "nginx/" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "1.18.0" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SERVER_SOFTWARE: nginx/1.18.0" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REMOTE_ADDR" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "127.0.0.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REMOTE_ADDR: 127.0.0.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REMOTE_PORT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "49730" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REMOTE_PORT: 49730" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SERVER_ADDR" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "127.0.0.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SERVER_ADDR: 127.0.0.1" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SERVER_PORT" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SERVER_PORT: 9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SERVER_NAME" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "localhost" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SERVER_NAME: localhost" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "REDIRECT_STATUS" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "200" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "REDIRECT_STATUS: 200" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "SCRIPT_FILENAME" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script var: "./blobs" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http script copy: "/ginxsom.fcgi" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "SCRIPT_FILENAME: ./blobs/ginxsom.fcgi" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_HOST: localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_USER_AGENT: curl/8.15.0" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_ACCEPT: */*" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_AUTHORIZATION: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzMDI1MzhlNDVhYTVjYWQzZmY4NWE3ODdiMGNjZWZiZDE3ZTBhZjg1N2EwZTg2MThmZjdjZjIzZjAzZjEyYTFiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2OTcxNjcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NzcxNGQ0NGI1ZDNhMzk1NGRlODhhMWNlNmI0NmVhYTBiMGQxMTg4Nzg3OWEyM2U2NDlmY2U4M2YwYWRlZTYyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDc2NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjgzYWZjYzdkMDYyOGRjYzJkMTRlODA1NjE0YmJlMGMwZDE4Yjk1ZWZlOTY4ODExZGRlMTQ1OGM3MzFmMjkyZTRiNjM4NmRhMzZiM2UzY2NiM2M1MDgyZThlMDIzMWQ0M2MzN2I5YTYyYWQ5Mjg1YjIwZTY1MTU2YTg1MjhjNTUzIn0=" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_CONTENT_TYPE: text/plain" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_CONTENT_DISPOSITION: attachment; filename="test_blob_1755697167.txt"" +2025/08/20 09:39:27 [debug] 626538#626538: *1 fastcgi param: "HTTP_CONTENT_LENGTH: 296" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http cleanup add: 00005C236278EBC0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 get rr peer, try: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 stream socket 10 +2025/08/20 09:39:27 [debug] 626538#626538: *1 epoll add connection: fd:10 ev:80002005 +2025/08/20 09:39:27 [debug] 626538#626538: *1 connect to unix:/tmp/ginxsom-fcgi.sock, fd:10 #2 +2025/08/20 09:39:27 [debug] 626538#626538: *1 connected +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream connect: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 posix_memalign: 00005C2362761F20:128 @16 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream send request +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream send request body +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer buf fl:0 s:1304 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer buf fl:0 s:184 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer buf fl:0 s:8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer buf fl:0 s:112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer buf fl:0 s:8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer in: 00005C236278EC50 +2025/08/20 09:39:27 [debug] 626538#626538: *1 writev: 1616 of 1616 +2025/08/20 09:39:27 [debug] 626538#626538: *1 chain writer out: 0000000000000000 +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer add: 10: 60000:263960688 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http finalize request: -4, "/upload?" a:1, c:2 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http request count:2 blk:0 +2025/08/20 09:39:27 [debug] 626538#626538: timer delta: 0 +2025/08/20 09:39:27 [debug] 626538#626538: worker cycle +2025/08/20 09:39:27 [debug] 626538#626538: epoll timer: 60000 +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:6 ev:0004 d:000073B0112501E0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http run request: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream check client, write event:1, "/upload" +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:10 ev:0005 d:000073B0112502C8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream request: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream process header +2025/08/20 09:39:27 [debug] 626538#626538: *1 malloc: 00005C23627831A0:4096 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:0, avail:-1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: fd:10 3200 of 4096 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 21 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 33 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "DEBUG: FastCGI received request" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "DEBUG: METHOD=PUT, URI=/upload +ENTRY: Entering handle_upload_request() function +DEBUG: handle_upload_request called +LOG: [2025-08-20 09:39:27] PUT /upload - Auth: pending - Status: 0 +DEBUG: content_type=text/plain +DEBUG: content_length=296 +DEBUG: Raw Authorization header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzMDI1MzhlNDVhYTVjYWQzZmY4NWE3ODdiMGNjZWZiZDE3ZTBhZjg1N2EwZTg2MThmZjdjZjIzZjAzZjEyYTFiIiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImN" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "yZWF0ZWRfYXQiOjE3NTU2OTcxNjcsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NzcxNGQ0NGI1ZDNhMzk1NGRlODhhMWNlNmI0NmVhYTBiMGQxMTg4Nzg3OWEyM2U2NDlmY2U4M2YwYWRlZTYyIl0sWyJleHBpcmF0aW9uIiwiMTc1NTcwMDc2NyJdXSwiY29udGVudCI6IiIsInNpZyI6IjgzYWZjYzdkMDYyOGRjYzJkMTRlODA1NjE0YmJlMGMwZDE4Yjk1ZWZlOTY4ODExZGRlMTQ1OGM3MzFmMjkyZTRiNjM4NmRhMzZiM2UzY2NiM2M1MDgyZThlMDIzMWQ0M2MzN2I5YTYyYWQ5Mjg1YjIwZTY1MTU2YTg1MjhjNTUzIn0= +LOG: [2025-08-20 09:39:27] PUT /upload - Auth: auth_provided - Status: 0 +DEBUG-LAAN: Calculated SHA-256:" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 43 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 05 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 67 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: " 87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "AUTH: About to perform authentication - auth_header present: YES +AUTH: Calling authenticate_request with hash: 87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62 +═══════════════════════════════════════════════════════════════════ +🔍 STEP SERVER-1: Starting server-style authentication (mirroring test_auth_debug.c) +ℹ️ INFO: Server-style auth calle" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "d with method: upload, hash: 87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62 +🔍 STEP SERVER-2: Calling parse_authorization_header +DEBUG: parse_authorization_header called with header: Nostr eyJraW5kIjoyNDI0MiwiaWQiOiIzMDI1MzhlNDVhYTVj... +DEBUG: Extracted base64 event (length=DEBUG: Base64 decode result - decoded_len=DEBUG: Successfully decoded JSON (length=✅ SUCCESS: parse_authorization_header succeeded +🔍 STEP SERVER-3: Calling cJSON_Parse on JSON string +ℹ️ INFO: JSON to" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: " parse: {"kind":24242,"id":"302538e45aa5cad3ff85a787b0ccefbd17e0af857a0e8618ff7cf23f03f12a1b","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1755697167,"tags":[["t","upload"],["x","87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62"],["expiration","1755700767"]],"content":"","sig":"83afcc7d0628dcc2d14e805614bbe0c0d18b95efe968811dde1458c731f292e4b6386da36b3e3ccb3c5082e8e0231d43c37b9a62ad9285b20e65156a8528c553"} +✅ SUCCESS: cJSON_Parse succeeded" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: ", event parsed +ℹ️ INFO: Parsed JSON: { + "kind": 24242, + "id": "302538e45aa5cad3ff85a787b0ccefbd17e0af857a0e8618ff7cf23f03f12a1b", + "pubkey": "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", + "created_at": 1755697167, + "tags": [["t", "upload"], ["x", "87714d44b5d3a3954de88a1ce6b46eaa0b0d11887879a23e649fce83f0adee62"], ["expiration", "1755700767"]], + "content": "", + "sig": "83afcc7d0628dcc2d14e805614bbe0c0d18b95efe968811dde1458c731f292e4b6386da36b3e3ccb3c5082e8e0231d43c37b9a62a" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:0, avail:0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream request: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream dummy handler +2025/08/20 09:39:27 [debug] 626538#626538: timer delta: 3 +2025/08/20 09:39:27 [debug] 626538#626538: worker cycle +2025/08/20 09:39:27 [debug] 626538#626538: epoll timer: 59997 +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:10 ev:2005 d:000073B0112502C8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream request: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream process header +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:1, avail:-1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: fd:10 1984 of 4096 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "d9285b20e65156a8528c553" +} +🔍 STEP SERVER-4: Event fields before validation +ℹ️ INFO: id: 302538e45aa5cad3ff85a787b0ccefbd17e0af857a0e8618ff7cf23f03f12a1b +ℹ️ INFO: pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: sig: 83afcc7d0628dcc2d14e805614bbe0c0d18b95efe968811dde1458c731f292e4b6386da36b3e3ccb3c5082e8e0231d43c37b9a62ad9285b20e65156a8528c553 +ℹ️ INFO: kind: 24242 +ℹ️ INFO: created_at: 1755697167 +🔍 STEP SERVER-5: Detailed pubkey" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: " analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(0x37) 9(0x39) b(0x62) e(0x65) 6(0x36) 6(0x36) 7(0x37) e(0x65) f(0x66) 9(0x39) +🔍 STEP SERVER-6: Pre-validation pubkey analysis +ℹ️ INFO: Pubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 +ℹ️ INFO: Length: ℹ️ INFO: Character analysis (first 10): +7(55) 9(57) b(98) e(101) 6(54) 6(54) 7(5" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: F8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 504 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "5) e(101) f(102) 9(57) +ℹ️ INFO: Character validation test: +ALL VALID (lowercase hex) +🔍 STEP SERVER-7: Starting detailed validation analysis +ℹ️ INFO: Testing structure validation... +ℹ️ INFO: nostr_validate_event_structure returned: 0 (Success) +✅ SUCCESS: Structure validation PASSED +ℹ️ INFO: Testing cryptographic verification... +ℹ️ INFO: nostr_verify_event_signature returned: -32 (Event has invalid public key) +❌ ERROR: CRYPTO verification failed! +❌ ERROR: Failed p" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: C5 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 03 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 197 +2025/08/20 09:39:27 [error] 626538#626538: *1 FastCGI sent in stderr: "ubkey: 79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798 (length: AUTH: authenticate_request returned: -32 +LOG: [2025-08-20 09:39:27] PUT /upload - Auth: auth_failed - Status: 401" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "PUT /upload HTTP/1.1", upstream: "fastcgi://unix:/tmp/ginxsom-fcgi.sock:", host: "localhost:9001" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 07 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 06 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: C7 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 199 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi parser: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi header: "Status: 401 Unauthorized" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi parser: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi header: "Content-Type: application/json" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi parser: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi header done +2025/08/20 09:39:27 [debug] 626538#626538: *1 HTTP/1.1 401 Unauthorized +Server: nginx/1.18.0 (Ubuntu) +Date: Wed, 20 Aug 2025 13:39:27 GMT +Content-Type: application/json +Transfer-Encoding: chunked +Connection: keep-alive + +2025/08/20 09:39:27 [debug] 626538#626538: *1 write new buf t:1 f:0 00005C2362782848, pos 00005C2362782848, size: 181 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http write filter: l:0 f:0 s:181 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http cacheable: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream process upstream +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe read upstream: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe preread: 164 +2025/08/20 09:39:27 [debug] 626538#626538: *1 readv: eof:1, avail:0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 readv: 1, last:2112 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe recv chain: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe buf free s:0 t:1 f:0 00005C23627831A0, pos 00005C23627838BC, size: 164 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe length: -1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 input buf #0 00005C23627838BC +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 06 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi closed stdout +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 03 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 01 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 08 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record byte: 00 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi record length: 8 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http fastcgi sent end request +2025/08/20 09:39:27 [debug] 626538#626538: *1 input buf 00005C23627838BC 139 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe write downstream: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe write downstream flush in +2025/08/20 09:39:27 [debug] 626538#626538: *1 http output filter "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http copy filter: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http postpone filter "/upload?" 00005C236278EC20 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http chunk: 139 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write old buf t:1 f:0 00005C2362782848, pos 00005C2362782848, size: 181 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write new buf t:1 f:0 00005C236278EDB8, pos 00005C236278EDB8, size: 4 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write new buf t:1 f:0 00005C23627831A0, pos 00005C23627838BC, size: 139 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write new buf t:0 f:0 0000000000000000, pos 00005C234DABC2E8, size: 2 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http write filter: l:0 f:0 s:326 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http copy filter: 0 "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 pipe write downstream done +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer: 10, old: 263960688, new: 263960692 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream exit: 0000000000000000 +2025/08/20 09:39:27 [debug] 626538#626538: *1 finalize http upstream request: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 finalize http fastcgi request +2025/08/20 09:39:27 [debug] 626538#626538: *1 free rr peer 1 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 close http upstream connection: 10 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C2362761F20, unused: 48 +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer del: 10: 263960688 +2025/08/20 09:39:27 [debug] 626538#626538: *1 reusable connection: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http upstream temp fd: -1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http output filter "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http copy filter: "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http postpone filter "/upload?" 00007FFDBED41EB0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http chunk: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write old buf t:1 f:0 00005C2362782848, pos 00005C2362782848, size: 181 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write old buf t:1 f:0 00005C236278EDB8, pos 00005C236278EDB8, size: 4 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write old buf t:1 f:0 00005C23627831A0, pos 00005C23627838BC, size: 139 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write old buf t:0 f:0 0000000000000000, pos 00005C234DABC2E8, size: 2 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 write new buf t:0 f:0 0000000000000000, pos 00005C234DABC2E5, size: 5 file: 0, size: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http write filter: l:1 f:0 s:331 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http write filter limit 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 writev: 331 of 331 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http write filter 0000000000000000 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http copy filter: 0 "/upload?" +2025/08/20 09:39:27 [debug] 626538#626538: *1 http finalize request: 0, "/upload?" a:1, c:1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 set http keepalive handler +2025/08/20 09:39:27 [debug] 626538#626538: *1 http close request +2025/08/20 09:39:27 [debug] 626538#626538: *1 http log handler +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C23627831A0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C2362797A70, unused: 3 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C236278DDE0, unused: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C2362782190, unused: 1250 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C236277B0A0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 hc free: 0000000000000000 +2025/08/20 09:39:27 [debug] 626538#626538: *1 hc busy: 0000000000000000 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 tcp_nodelay +2025/08/20 09:39:27 [debug] 626538#626538: *1 reusable connection: 1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer add: 6: 65000:263965692 +2025/08/20 09:39:27 [debug] 626538#626538: *1 post event 00005C23627C97B0 +2025/08/20 09:39:27 [debug] 626538#626538: timer delta: 1 +2025/08/20 09:39:27 [debug] 626538#626538: posted event 00005C23627C97B0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 delete posted event 00005C23627C97B0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http keepalive handler +2025/08/20 09:39:27 [debug] 626538#626538: *1 malloc: 00005C236277B0A0:1024 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:0, avail:0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C236277B0A0 +2025/08/20 09:39:27 [debug] 626538#626538: worker cycle +2025/08/20 09:39:27 [debug] 626538#626538: epoll timer: 65000 +2025/08/20 09:39:27 [debug] 626538#626538: epoll: fd:6 ev:2005 d:000073B0112501E0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 http keepalive handler +2025/08/20 09:39:27 [debug] 626538#626538: *1 malloc: 00005C236277B0A0:1024 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: eof:1, avail:-1 +2025/08/20 09:39:27 [debug] 626538#626538: *1 recv: fd:6 0 of 1024 +2025/08/20 09:39:27 [info] 626538#626538: *1 client 127.0.0.1 closed keepalive connection +2025/08/20 09:39:27 [debug] 626538#626538: *1 close http connection: 6 +2025/08/20 09:39:27 [debug] 626538#626538: *1 event timer del: 6: 263965692 +2025/08/20 09:39:27 [debug] 626538#626538: *1 reusable connection: 0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C236277B0A0 +2025/08/20 09:39:27 [debug] 626538#626538: *1 free: 00005C2362778840, unused: 120 +2025/08/20 09:39:27 [debug] 626538#626538: timer delta: 2 +2025/08/20 09:39:27 [debug] 626538#626538: worker cycle +2025/08/20 09:39:27 [debug] 626538#626538: epoll timer: -1 diff --git a/logs/fcgi-stderr.log b/logs/fcgi-stderr.log new file mode 100644 index 0000000..e5b187b --- /dev/null +++ b/logs/fcgi-stderr.log @@ -0,0 +1,3 @@ +FastCGI wrapper starting at Wed Aug 20 09:15:29 AM EDT 2025 +FastCGI wrapper starting at Wed Aug 20 09:19:29 AM EDT 2025 +FastCGI wrapper starting at Wed Aug 20 09:38:57 AM EDT 2025 diff --git a/logs/nginx.pid b/logs/nginx.pid index 9dc9bcf..96547ef 100644 --- a/logs/nginx.pid +++ b/logs/nginx.pid @@ -1 +1 @@ -596584 +626537 diff --git a/logs/spawn-fcgi.log b/logs/spawn-fcgi.log new file mode 100644 index 0000000..e69de29 diff --git a/restart-all.sh b/restart-all.sh index 56d1791..545cacb 100755 --- a/restart-all.sh +++ b/restart-all.sh @@ -141,8 +141,8 @@ if ! command -v spawn-fcgi &> /dev/null; then exit 1 fi -# Start FastCGI application -spawn-fcgi -s "$SOCKET_PATH" -M 666 -u "$USER" -g "$USER" -f "$FCGI_BINARY" -P "$PID_FILE" +# Start FastCGI application with stderr logging using wrapper +spawn-fcgi -s "$SOCKET_PATH" -M 666 -u "$USER" -g "$USER" -f "./fcgi-wrapper.sh" -P "$PID_FILE" 2>logs/spawn-fcgi.log if [ $? -eq 0 ] && [ -f "$PID_FILE" ]; then PID=$(cat "$PID_FILE") @@ -226,4 +226,4 @@ fi echo -e "\n${GREEN}=== Restart sequence complete ===${NC}" echo -e "${YELLOW}Server should be available at: http://localhost:9001${NC}" echo -e "${YELLOW}To stop all processes, run: nginx -p . -c $NGINX_CONFIG -s stop && kill \$(cat $PID_FILE 2>/dev/null)${NC}" -echo -e "${YELLOW}To monitor logs, check: logs/error.log and logs/access.log${NC}" \ No newline at end of file +echo -e "${YELLOW}To monitor logs, check: logs/error.log, logs/access.log, and logs/fcgi-stderr.log${NC}" \ No newline at end of file diff --git a/server_debug.log b/server_debug.log new file mode 100644 index 0000000..e69de29 diff --git a/server_response.log b/server_response.log new file mode 100644 index 0000000..df279be --- /dev/null +++ b/server_response.log @@ -0,0 +1,10 @@ + % Total % Received % Xferd Average Speed Time Time Time Current + Dload Upload Total Spent Left Speed + 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 179 100 166 100 13 25917 2029 --:--:-- --:--:-- --:--:-- 29833 + +502 Bad Gateway + +

502 Bad Gateway

+
nginx/1.18.0 (Ubuntu)
+ + diff --git a/src/main.c b/src/main.c index 0ee416b..2e23950 100644 --- a/src/main.c +++ b/src/main.c @@ -16,6 +16,13 @@ #include #include "ginxsom.h" +// Detailed debugging macros (matching test_auth_debug.c) +#define LOG_STEP(step, msg, ...) fprintf(stderr, "🔍 STEP %s: " msg "\n", step, ##__VA_ARGS__) +#define LOG_SUCCESS(msg, ...) fprintf(stderr, "✅ SUCCESS: " msg "\n", ##__VA_ARGS__) +#define LOG_ERROR(msg, ...) fprintf(stderr, "❌ ERROR: " msg "\n", ##__VA_ARGS__) +#define LOG_INFO(msg, ...) fprintf(stderr, "ℹ️ INFO: " msg "\n", ##__VA_ARGS__) +#define LOG_DIVIDER() fprintf(stderr, "═══════════════════════════════════════════════════════════════════\n") + #define MAX_SHA256_LEN 65 #define MAX_PATH_LEN 512 #define MAX_MIME_LEN 128 @@ -45,88 +52,88 @@ int insert_blob_metadata(const char* sha256, long size, const char* type, sqlite3_stmt* stmt; int rc; - printf("DEBUG: insert_blob_metadata() called for sha256='%s'\r\n", sha256); - printf("DEBUG: Opening database at path: %s\r\n", DB_PATH); + fprintf(stderr, "DEBUG: insert_blob_metadata() called for sha256='%s'\r\n", sha256); + fprintf(stderr, "DEBUG: Opening database at path: %s\r\n", DB_PATH); rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READWRITE, NULL); if (rc) { - printf("DEBUG: Database open FAILED: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Database open FAILED: %s\r\n", sqlite3_errmsg(db)); fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); return 0; } - printf("DEBUG: Database opened successfully for writing\r\n"); + fprintf(stderr, "DEBUG: Database opened successfully for writing\r\n"); const char* sql = "INSERT INTO blobs (sha256, size, type, uploaded_at, uploader_pubkey, filename) VALUES (?, ?, ?, ?, ?, ?)"; - printf("DEBUG: Preparing SQL: %s\r\n", sql); + fprintf(stderr, "DEBUG: Preparing SQL: %s\r\n", sql); rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { - printf("DEBUG: SQL prepare FAILED: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: SQL prepare FAILED: %s\r\n", sqlite3_errmsg(db)); fprintf(stderr, "SQL error: %s\n", sqlite3_errmsg(db)); sqlite3_close(db); return 0; } - printf("DEBUG: SQL prepared successfully, binding parameters\r\n"); - printf("DEBUG: Parameter values to bind:\r\n"); - printf("DEBUG: 1. sha256 = '%s'\r\n", sha256 ? sha256 : "NULL"); - printf("DEBUG: 2. size = %ld\r\n", size); - printf("DEBUG: 3. type = '%s'\r\n", type ? type : "NULL"); - printf("DEBUG: 4. uploaded_at = %ld\r\n", uploaded_at); - printf("DEBUG: 5. uploader_pubkey = '%s'\r\n", uploader_pubkey ? uploader_pubkey : "NULL"); - printf("DEBUG: 6. filename = '%s'\r\n", filename ? filename : "NULL"); + fprintf(stderr, "DEBUG: SQL prepared successfully, binding parameters\r\n"); + fprintf(stderr, "DEBUG: Parameter values to bind:\r\n"); + fprintf(stderr, "DEBUG: 1. sha256 = '%s'\r\n", sha256 ? sha256 : "NULL"); + fprintf(stderr, "DEBUG: 2. size = %ld\r\n", size); + fprintf(stderr, "DEBUG: 3. type = '%s'\r\n", type ? type : "NULL"); + fprintf(stderr, "DEBUG: 4. uploaded_at = %ld\r\n", uploaded_at); + fprintf(stderr, "DEBUG: 5. uploader_pubkey = '%s'\r\n", uploader_pubkey ? uploader_pubkey : "NULL"); + fprintf(stderr, "DEBUG: 6. filename = '%s'\r\n", filename ? filename : "NULL"); // Bind parameters - printf("DEBUG: Binding parameter 1 (sha256)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 1 (sha256)\r\n"); sqlite3_bind_text(stmt, 1, sha256, -1, SQLITE_STATIC); - printf("DEBUG: Binding parameter 2 (size)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 2 (size)\r\n"); sqlite3_bind_int64(stmt, 2, size); - printf("DEBUG: Binding parameter 3 (type)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 3 (type)\r\n"); sqlite3_bind_text(stmt, 3, type, -1, SQLITE_STATIC); - printf("DEBUG: Binding parameter 4 (uploaded_at)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 4 (uploaded_at)\r\n"); sqlite3_bind_int64(stmt, 4, uploaded_at); - printf("DEBUG: Binding parameter 5 (uploader_pubkey)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 5 (uploader_pubkey)\r\n"); if (uploader_pubkey) { - printf("DEBUG: Binding uploader_pubkey as text: '%s'\r\n", uploader_pubkey); + fprintf(stderr, "DEBUG: Binding uploader_pubkey as text: '%s'\r\n", uploader_pubkey); sqlite3_bind_text(stmt, 5, uploader_pubkey, -1, SQLITE_STATIC); } else { - printf("DEBUG: Binding uploader_pubkey as NULL\r\n"); + fprintf(stderr, "DEBUG: Binding uploader_pubkey as NULL\r\n"); sqlite3_bind_null(stmt, 5); } - printf("DEBUG: Binding parameter 6 (filename)\r\n"); + fprintf(stderr, "DEBUG: Binding parameter 6 (filename)\r\n"); if (filename) { - printf("DEBUG: Binding filename as text: '%s'\r\n", filename); + fprintf(stderr, "DEBUG: Binding filename as text: '%s'\r\n", filename); sqlite3_bind_text(stmt, 6, filename, -1, SQLITE_STATIC); } else { - printf("DEBUG: Binding filename as NULL\r\n"); + fprintf(stderr, "DEBUG: Binding filename as NULL\r\n"); sqlite3_bind_null(stmt, 6); } - printf("DEBUG: Parameters bound, executing INSERT\r\n"); + fprintf(stderr, "DEBUG: Parameters bound, executing INSERT\r\n"); rc = sqlite3_step(stmt); int success = 0; if (rc == SQLITE_DONE) { - printf("DEBUG: INSERT successful\r\n"); + fprintf(stderr, "DEBUG: INSERT successful\r\n"); success = 1; } else if (rc == SQLITE_CONSTRAINT) { - printf("DEBUG: INSERT failed - blob already exists (duplicate sha256)\r\n"); + fprintf(stderr, "DEBUG: INSERT failed - blob already exists (duplicate sha256)\r\n"); // This is actually OK - blob already exists with same hash success = 1; } else { - printf("DEBUG: INSERT failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: INSERT failed: %s\r\n", sqlite3_errmsg(db)); success = 0; } sqlite3_finalize(stmt); sqlite3_close(db); - printf("DEBUG: Database closed, returning %d\r\n", success); + fprintf(stderr, "DEBUG: Database closed, returning %d\r\n", success); return success; } @@ -136,41 +143,41 @@ int get_blob_metadata(const char* sha256, blob_metadata_t* metadata) { sqlite3_stmt* stmt; int rc; - printf("DEBUG: get_blob_metadata() called with sha256='%s'\r\n", sha256); - printf("DEBUG: Opening database at path: %s\r\n", DB_PATH); + fprintf(stderr, "DEBUG: get_blob_metadata() called with sha256='%s'\r\n", sha256); + fprintf(stderr, "DEBUG: Opening database at path: %s\r\n", DB_PATH); rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READONLY, NULL); if (rc) { - printf("DEBUG: Database open FAILED: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Database open FAILED: %s\r\n", sqlite3_errmsg(db)); fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); return 0; } - printf("DEBUG: Database opened successfully\r\n"); + fprintf(stderr, "DEBUG: Database opened successfully\r\n"); const char* sql = "SELECT sha256, size, type, uploaded_at, filename FROM blobs WHERE sha256 = ?"; - printf("DEBUG: Preparing SQL: %s\r\n", sql); + fprintf(stderr, "DEBUG: Preparing SQL: %s\r\n", sql); rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { - printf("DEBUG: SQL prepare FAILED: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: SQL prepare FAILED: %s\r\n", sqlite3_errmsg(db)); fprintf(stderr, "SQL error: %s\n", sqlite3_errmsg(db)); sqlite3_close(db); return 0; } - printf("DEBUG: SQL prepared successfully\r\n"); - printf("DEBUG: Binding parameter sha256='%s'\r\n", sha256); + fprintf(stderr, "DEBUG: SQL prepared successfully\r\n"); + fprintf(stderr, "DEBUG: Binding parameter sha256='%s'\r\n", sha256); sqlite3_bind_text(stmt, 1, sha256, -1, SQLITE_STATIC); - printf("DEBUG: Executing SQL query...\r\n"); + fprintf(stderr, "DEBUG: Executing SQL query...\r\n"); rc = sqlite3_step(stmt); - printf("DEBUG: sqlite3_step() returned: %d (SQLITE_ROW=%d, SQLITE_DONE=%d)\r\n", + fprintf(stderr, "DEBUG: sqlite3_step() returned: %d (SQLITE_ROW=%d, SQLITE_DONE=%d)\r\n", rc, SQLITE_ROW, SQLITE_DONE); if (rc == SQLITE_ROW) { - printf("DEBUG: Row found! Extracting metadata...\r\n"); + fprintf(stderr, "DEBUG: Row found! Extracting metadata...\r\n"); strncpy(metadata->sha256, (char*)sqlite3_column_text(stmt, 0), MAX_SHA256_LEN-1); metadata->size = sqlite3_column_int64(stmt, 1); strncpy(metadata->type, (char*)sqlite3_column_text(stmt, 2), MAX_MIME_LEN-1); @@ -182,16 +189,16 @@ int get_blob_metadata(const char* sha256, blob_metadata_t* metadata) { metadata->filename[0] = '\0'; } metadata->found = 1; - printf("DEBUG: Metadata extracted - size=%ld, type='%s'\r\n", + fprintf(stderr, "DEBUG: Metadata extracted - size=%ld, type='%s'\r\n", metadata->size, metadata->type); } else { - printf("DEBUG: No row found for sha256='%s'\r\n", sha256); + fprintf(stderr, "DEBUG: No row found for sha256='%s'\r\n", sha256); metadata->found = 0; } sqlite3_finalize(stmt); sqlite3_close(db); - printf("DEBUG: Database closed, returning %d\r\n", metadata->found); + fprintf(stderr, "DEBUG: Database closed, returning %d\r\n", metadata->found); return metadata->found; } @@ -223,17 +230,17 @@ int file_exists_with_type(const char* sha256, const char* mime_type) { snprintf(filepath, sizeof(filepath), "blobs/%s%s", sha256, extension); - printf("DEBUG: file_exists_with_type() checking path: '%s' (MIME: %s)\r\n", filepath, mime_type); + fprintf(stderr, "DEBUG: file_exists_with_type() checking path: '%s' (MIME: %s)\r\n", filepath, mime_type); struct stat st; int result = stat(filepath, &st); - printf("DEBUG: stat() returned: %d (0=success, -1=fail)\r\n", result); + fprintf(stderr, "DEBUG: stat() returned: %d (0=success, -1=fail)\r\n", result); if (result == 0) { - printf("DEBUG: File exists! Size: %ld bytes\r\n", st.st_size); + fprintf(stderr, "DEBUG: File exists! Size: %ld bytes\r\n", st.st_size); return 1; } else { - printf("DEBUG: File does not exist or stat failed\r\n"); + fprintf(stderr, "DEBUG: File does not exist or stat failed\r\n"); return 0; } } @@ -242,29 +249,29 @@ int file_exists_with_type(const char* sha256, const char* mime_type) { void handle_head_request(const char* sha256) { blob_metadata_t metadata = {0}; - printf("DEBUG: handle_head_request called with sha256=%s\r\n", sha256); + fprintf(stderr, "DEBUG: handle_head_request called with sha256=%s\r\n", sha256); // Validate SHA-256 format (64 hex characters) if (strlen(sha256) != 64) { - printf("DEBUG: SHA-256 length validation failed: %zu\r\n", strlen(sha256)); + fprintf(stderr, "DEBUG: SHA-256 length validation failed: %zu\r\n", strlen(sha256)); printf("Status: 400 Bad Request\r\n"); printf("Content-Type: text/plain\r\n\r\n"); printf("Invalid SHA-256 hash format\n"); return; } - printf("DEBUG: SHA-256 length validation passed\r\n"); + fprintf(stderr, "DEBUG: SHA-256 length validation passed\r\n"); // Check if blob exists in database - this is the single source of truth if (!get_blob_metadata(sha256, &metadata)) { - printf("DEBUG: Database lookup failed for sha256=%s\r\n", sha256); + fprintf(stderr, "DEBUG: Database lookup failed for sha256=%s\r\n", sha256); printf("Status: 404 Not Found\r\n"); printf("Content-Type: text/plain\r\n\r\n"); printf("Blob not found\n"); return; } - printf("DEBUG: Database lookup succeeded - blob exists\r\n"); + fprintf(stderr, "DEBUG: Database lookup succeeded - blob exists\r\n"); // Return successful HEAD response with metadata from database printf("Status: 200 OK\r\n"); @@ -328,39 +335,39 @@ const char* extract_sha256_from_uri(const char* uri) { // Parse Authorization header and extract JSON event int parse_authorization_header(const char* auth_header, char* event_json, size_t json_size) { if (!auth_header || !event_json) { - printf("DEBUG: parse_authorization_header - invalid parameters: auth_header=%p, event_json=%p\r\n", + fprintf(stderr, "DEBUG: parse_authorization_header - invalid parameters: auth_header=%p, event_json=%p\n", (void*)auth_header, (void*)event_json); return NOSTR_ERROR_INVALID_INPUT; } - printf("DEBUG: parse_authorization_header called with header: %.50s...\r\n", auth_header); + fprintf(stderr, "DEBUG: parse_authorization_header called with header: %.50s...\n", auth_header); // Check for "Nostr " prefix (case-insensitive) const char* prefix = "nostr "; size_t prefix_len = strlen(prefix); if (strncasecmp(auth_header, prefix, prefix_len) != 0) { - printf("DEBUG: Authorization header missing 'Nostr ' prefix (found: %.10s)\r\n", auth_header); + fprintf(stderr, "DEBUG: Authorization header missing 'Nostr ' prefix (found: %.10s)\n", auth_header); return NOSTR_ERROR_INVALID_INPUT; } // Extract base64 encoded event after "Nostr " const char* base64_event = auth_header + prefix_len; - printf("DEBUG: Extracted base64 event (length=%zu): %.100s...\r\n", strlen(base64_event), base64_event); + fprintf(stderr, "DEBUG: Extracted base64 event (length=%zu): %.100s...\n", strlen(base64_event), base64_event); // Decode base64 to JSON using nostr_core_lib base64 decode unsigned char decoded_buffer[4096]; size_t decoded_len = base64_decode(base64_event, decoded_buffer); - printf("DEBUG: Base64 decode result - decoded_len=%zu\r\n", decoded_len); + fprintf(stderr, "DEBUG: Base64 decode result - decoded_len=%zu\n", decoded_len); if (decoded_len == 0) { - printf("DEBUG: Failed to decode base64 event - base64_decode returned 0\r\n"); + fprintf(stderr, "DEBUG: Failed to decode base64 event - base64_decode returned 0\n"); return NOSTR_ERROR_INVALID_INPUT; } if (decoded_len >= json_size) { - printf("DEBUG: Decoded JSON too large for buffer (decoded_len=%zu, json_size=%zu)\r\n", decoded_len, json_size); + fprintf(stderr, "DEBUG: Decoded JSON too large for buffer (decoded_len=%zu, json_size=%zu)\n", decoded_len, json_size); return NOSTR_ERROR_INVALID_INPUT; } @@ -368,7 +375,7 @@ int parse_authorization_header(const char* auth_header, char* event_json, size_t memcpy(event_json, decoded_buffer, decoded_len); event_json[decoded_len] = '\0'; - printf("DEBUG: Successfully decoded JSON (length=%zu): %s\r\n", decoded_len, event_json); + fprintf(stderr, "DEBUG: Successfully decoded JSON (length=%zu): %s\n", decoded_len, event_json); return NOSTR_SUCCESS; } @@ -378,32 +385,32 @@ int validate_blossom_event(cJSON* event, const char* expected_hash, const char* return NOSTR_ERROR_INVALID_INPUT; } - printf("DEBUG: Validating Blossom event\r\n"); + fprintf(stderr, "DEBUG: Validating Blossom event\r\n"); // Check event kind (must be 24242 for Blossom uploads) cJSON* kind_json = cJSON_GetObjectItem(event, "kind"); if (!kind_json || !cJSON_IsNumber(kind_json)) { - printf("DEBUG: Event missing or invalid 'kind' field\r\n"); + fprintf(stderr, "DEBUG: Event missing or invalid 'kind' field\r\n"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } int kind = cJSON_GetNumberValue(kind_json); if (kind != 24242) { - printf("DEBUG: Event kind %d is not 24242 (Blossom upload)\r\n", kind); + fprintf(stderr, "DEBUG: Event kind %d is not 24242 (Blossom upload)\r\n", kind); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } // Check that created_at exists (basic validation) cJSON* created_at_json = cJSON_GetObjectItem(event, "created_at"); if (!created_at_json || !cJSON_IsNumber(created_at_json)) { - printf("DEBUG: Event missing or invalid 'created_at' field\r\n"); + fprintf(stderr, "DEBUG: Event missing or invalid 'created_at' field\r\n"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } // Look for expiration in tags cJSON* tags = cJSON_GetObjectItem(event, "tags"); if (!tags || !cJSON_IsArray(tags)) { - printf("DEBUG: Event missing or invalid 'tags' field\r\n"); + fprintf(stderr, "DEBUG: Event missing or invalid 'tags' field\r\n"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } @@ -428,7 +435,7 @@ int validate_blossom_event(cJSON* event, const char* expected_hash, const char* const char* event_method = cJSON_GetStringValue(method_value); if (strcmp(event_method, method) == 0) { found_method = 1; - printf("DEBUG: Found matching method tag: %s\r\n", event_method); + fprintf(stderr, "DEBUG: Found matching method tag: %s\r\n", event_method); } } } else if (strcmp(tag_name_str, "x") == 0) { @@ -438,7 +445,7 @@ int validate_blossom_event(cJSON* event, const char* expected_hash, const char* const char* event_hash = cJSON_GetStringValue(hash_value); if (expected_hash && strcmp(event_hash, expected_hash) == 0) { found_hash = 1; - printf("DEBUG: Found matching hash tag: %s\r\n", event_hash); + fprintf(stderr, "DEBUG: Found matching hash tag: %s\r\n", event_hash); } } } else if (strcmp(tag_name_str, "expiration") == 0) { @@ -446,140 +453,700 @@ int validate_blossom_event(cJSON* event, const char* expected_hash, const char* cJSON* exp_value = cJSON_GetArrayItem(tag, 1); if (exp_value && cJSON_IsString(exp_value)) { expiration = (time_t)atol(cJSON_GetStringValue(exp_value)); - printf("DEBUG: Found expiration tag: %ld\r\n", expiration); + fprintf(stderr, "DEBUG: Found expiration tag: %ld\r\n", expiration); } } } // Check if method matches (required) if (!found_method) { - printf("DEBUG: Event missing or invalid method tag\r\n"); + fprintf(stderr, "DEBUG: Event missing or invalid method tag\r\n"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } // Check if hash matches (if provided) if (expected_hash && !found_hash) { - printf("DEBUG: Event hash doesn't match expected hash\r\n"); + fprintf(stderr, "DEBUG: Event hash doesn't match expected hash\r\n"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } // Check expiration time_t now = time(NULL); if (expiration > 0 && now > expiration) { - printf("DEBUG: Event expired (now: %ld, exp: %ld)\r\n", now, expiration); + fprintf(stderr, "DEBUG: Event expired (now: %ld, exp: %ld)\r\n", now, expiration); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } - printf("DEBUG: Blossom event validation passed\r\n"); + fprintf(stderr, "DEBUG: Blossom event validation passed\r\n"); return NOSTR_SUCCESS; } -// Main authentication function -int authenticate_request(const char* auth_header, const char* method, const char* file_hash) { - if (!auth_header) { - printf("DEBUG: authenticate_request - No authorization header provided\r\n"); +// Forward declarations for detailed validation functions +int detailed_structure_validation(cJSON* event); +int detailed_signature_validation(cJSON* event); +void analyze_event_fields(cJSON* event); +void hex_dump(const char* label, const unsigned char* data, size_t len); + +/** + * Detailed structure validation with step-by-step logging + */ +int detailed_structure_validation(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("STRUCT-1", "Starting detailed structure validation"); + + if (!event || !cJSON_IsObject(event)) { + LOG_ERROR("Event is null or not a JSON object"); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + LOG_SUCCESS("Event is valid JSON object"); + + // Check each required field existence + LOG_STEP("STRUCT-2", "Checking required field existence"); + const char* required_fields[] = {"id", "pubkey", "created_at", "kind", "tags", "content", "sig"}; + for (int i = 0; i < 7; i++) { + cJSON* field = cJSON_GetObjectItem(event, required_fields[i]); + if (!field) { + LOG_ERROR("Missing required field: %s", required_fields[i]); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + LOG_SUCCESS("Field '%s' exists", required_fields[i]); + } + + // Get all fields for detailed validation + cJSON* id_item = cJSON_GetObjectItem(event, "id"); + cJSON* pubkey_item = cJSON_GetObjectItem(event, "pubkey"); + cJSON* created_at_item = cJSON_GetObjectItem(event, "created_at"); + cJSON* kind_item = cJSON_GetObjectItem(event, "kind"); + cJSON* tags_item = cJSON_GetObjectItem(event, "tags"); + cJSON* content_item = cJSON_GetObjectItem(event, "content"); + cJSON* sig_item = cJSON_GetObjectItem(event, "sig"); + + // Validate field types + LOG_STEP("STRUCT-3", "Validating field types"); + if (!cJSON_IsString(id_item)) { + LOG_ERROR("Field 'id' is not a string (type: %d)", id_item->type); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("Field 'id' is string"); + + if (!cJSON_IsString(pubkey_item)) { + LOG_ERROR("Field 'pubkey' is not a string (type: %d)", pubkey_item->type); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + LOG_SUCCESS("Field 'pubkey' is string"); + + if (!cJSON_IsNumber(created_at_item)) { + LOG_ERROR("Field 'created_at' is not a number (type: %d)", created_at_item->type); + return NOSTR_ERROR_EVENT_INVALID_CREATED_AT; + } + LOG_SUCCESS("Field 'created_at' is number"); + + if (!cJSON_IsNumber(kind_item)) { + LOG_ERROR("Field 'kind' is not a number (type: %d)", kind_item->type); + return NOSTR_ERROR_EVENT_INVALID_KIND; + } + LOG_SUCCESS("Field 'kind' is number"); + + if (!cJSON_IsArray(tags_item)) { + LOG_ERROR("Field 'tags' is not an array (type: %d)", tags_item->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + LOG_SUCCESS("Field 'tags' is array"); + + if (!cJSON_IsString(content_item)) { + LOG_ERROR("Field 'content' is not a string (type: %d)", content_item->type); + return NOSTR_ERROR_EVENT_INVALID_CONTENT; + } + LOG_SUCCESS("Field 'content' is string"); + + if (!cJSON_IsString(sig_item)) { + LOG_ERROR("Field 'sig' is not a string (type: %d)", sig_item->type); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + LOG_SUCCESS("Field 'sig' is string"); + + // Validate hex string lengths + LOG_STEP("STRUCT-4", "Validating hex string lengths"); + const char* id_str = cJSON_GetStringValue(id_item); + const char* pubkey_str = cJSON_GetStringValue(pubkey_item); + const char* sig_str = cJSON_GetStringValue(sig_item); + + LOG_INFO("ID string: '%s' (length: %zu)", id_str, id_str ? strlen(id_str) : 0); + if (!id_str || strlen(id_str) != 64) { + LOG_ERROR("ID string invalid length (expected 64, got %zu)", id_str ? strlen(id_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("ID string length is correct (64 chars)"); + + LOG_INFO("Pubkey string: '%s' (length: %zu)", pubkey_str, pubkey_str ? strlen(pubkey_str) : 0); + if (!pubkey_str || strlen(pubkey_str) != 64) { + LOG_ERROR("Pubkey string invalid length (expected 64, got %zu)", pubkey_str ? strlen(pubkey_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + LOG_SUCCESS("Pubkey string length is correct (64 chars)"); + + LOG_INFO("Signature string: '%s' (length: %zu)", sig_str, sig_str ? strlen(sig_str) : 0); + if (!sig_str || strlen(sig_str) != 128) { + LOG_ERROR("Signature string invalid length (expected 128, got %zu)", sig_str ? strlen(sig_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + LOG_SUCCESS("Signature string length is correct (128 chars)"); + + // Validate hex characters + LOG_STEP("STRUCT-5", "Validating hex characters"); + LOG_INFO("Checking ID hex characters..."); + for (int i = 0; i < 64; i++) { + char c = id_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in ID at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + } + LOG_SUCCESS("ID hex characters are valid (lowercase)"); + + LOG_INFO("Checking pubkey hex characters..."); + for (int i = 0; i < 64; i++) { + char c = pubkey_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in pubkey at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + } + LOG_SUCCESS("Pubkey hex characters are valid (lowercase)"); + + LOG_INFO("Checking signature hex characters..."); + for (int i = 0; i < 128; i++) { + char c = sig_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in signature at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + } + LOG_SUCCESS("Signature hex characters are valid (lowercase)"); + + // Validate timestamp + LOG_STEP("STRUCT-6", "Validating timestamp"); + double created_at = cJSON_GetNumberValue(created_at_item); + LOG_INFO("Created_at timestamp: %.0f", created_at); + if (created_at < 0) { + LOG_ERROR("Invalid timestamp (negative): %.0f", created_at); + return NOSTR_ERROR_EVENT_INVALID_CREATED_AT; + } + + // Convert to human readable time + time_t timestamp = (time_t)created_at; + char time_str[100]; + struct tm* tm_info = gmtime(×tamp); + strftime(time_str, sizeof(time_str), "%Y-%m-%d %H:%M:%S UTC", tm_info); + LOG_SUCCESS("Timestamp is valid: %s", time_str); + + // Validate kind + LOG_STEP("STRUCT-7", "Validating kind"); + double kind = cJSON_GetNumberValue(kind_item); + LOG_INFO("Event kind: %.0f", kind); + if (kind < 0 || kind > 65535 || kind != (int)kind) { + LOG_ERROR("Invalid kind value: %.0f (must be integer 0-65535)", kind); + return NOSTR_ERROR_EVENT_INVALID_KIND; + } + LOG_SUCCESS("Kind is valid: %d", (int)kind); + + // Validate tags array structure + LOG_STEP("STRUCT-8", "Validating tags array structure"); + int tag_count = cJSON_GetArraySize(tags_item); + LOG_INFO("Tags array has %d elements", tag_count); + + cJSON* tag_item; + int tag_index = 0; + cJSON_ArrayForEach(tag_item, tags_item) { + if (!cJSON_IsArray(tag_item)) { + LOG_ERROR("Tag at index %d is not an array (type: %d)", tag_index, tag_item->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + + int tag_element_count = cJSON_GetArraySize(tag_item); + LOG_INFO("Tag[%d] has %d elements", tag_index, tag_element_count); + + cJSON* tag_element; + int element_index = 0; + cJSON_ArrayForEach(tag_element, tag_item) { + if (!cJSON_IsString(tag_element)) { + LOG_ERROR("Tag[%d][%d] is not a string (type: %d)", tag_index, element_index, tag_element->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + const char* tag_value = cJSON_GetStringValue(tag_element); + LOG_INFO("Tag[%d][%d]: '%s'", tag_index, element_index, tag_value); + element_index++; + } + tag_index++; + } + LOG_SUCCESS("Tags array structure is valid"); + + // Validate content + LOG_STEP("STRUCT-9", "Validating content"); + const char* content_str = cJSON_GetStringValue(content_item); + LOG_INFO("Content: '%s' (length: %zu)", content_str, content_str ? strlen(content_str) : 0); + LOG_SUCCESS("Content is valid string"); + + LOG_SUCCESS("Structure validation completed successfully"); + return NOSTR_SUCCESS; +} + +/** + * Detailed signature validation with step-by-step logging + */ +int detailed_signature_validation(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("CRYPTO-1", "Starting detailed signature validation"); + + if (!event) { + LOG_ERROR("Event is null"); return NOSTR_ERROR_INVALID_INPUT; } - printf("DEBUG: authenticate_request ENTRY - method: %s, hash: %s\r\n", - method ? method : "null", file_hash ? file_hash : "null"); + // Get event fields + cJSON* id_item = cJSON_GetObjectItem(event, "id"); + cJSON* pubkey_item = cJSON_GetObjectItem(event, "pubkey"); + cJSON* created_at_item = cJSON_GetObjectItem(event, "created_at"); + cJSON* kind_item = cJSON_GetObjectItem(event, "kind"); + cJSON* tags_item = cJSON_GetObjectItem(event, "tags"); + cJSON* content_item = cJSON_GetObjectItem(event, "content"); + cJSON* sig_item = cJSON_GetObjectItem(event, "sig"); - // Parse authorization header + if (!id_item || !pubkey_item || !created_at_item || !kind_item || + !tags_item || !content_item || !sig_item) { + LOG_ERROR("Missing required fields for signature validation"); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + + // Create serialization array + LOG_STEP("CRYPTO-2", "Creating serialization array"); + cJSON* serialize_array = cJSON_CreateArray(); + if (!serialize_array) { + LOG_ERROR("Failed to create serialization array"); + return NOSTR_ERROR_MEMORY_FAILED; + } + + cJSON_AddItemToArray(serialize_array, cJSON_CreateNumber(0)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(pubkey_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(created_at_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(kind_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(tags_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(content_item, 1)); + + LOG_SUCCESS("Serialization array created"); + + // Convert to JSON string + LOG_STEP("CRYPTO-3", "Converting to JSON string"); + char* serialize_string = cJSON_PrintUnformatted(serialize_array); + cJSON_Delete(serialize_array); + + if (!serialize_string) { + LOG_ERROR("Failed to serialize array to JSON string"); + return NOSTR_ERROR_MEMORY_FAILED; + } + + LOG_SUCCESS("JSON serialization string created"); + LOG_INFO("Serialization string (length %zu): %s", strlen(serialize_string), serialize_string); + + // Hash the serialized event + LOG_STEP("CRYPTO-4", "Computing SHA256 hash"); + unsigned char event_hash[32]; + if (nostr_sha256((const unsigned char*)serialize_string, strlen(serialize_string), event_hash) != 0) { + LOG_ERROR("SHA256 hashing failed"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + + LOG_SUCCESS("SHA256 hash computed"); + hex_dump("Event hash", event_hash, 32); + + // Convert hash to hex for event ID verification + LOG_STEP("CRYPTO-5", "Verifying event ID"); + char calculated_id[65]; + nostr_bytes_to_hex(event_hash, 32, calculated_id); + + const char* provided_id = cJSON_GetStringValue(id_item); + LOG_INFO("Calculated ID: %s", calculated_id); + LOG_INFO("Provided ID: %s", provided_id); + + if (!provided_id || strcmp(calculated_id, provided_id) != 0) { + LOG_ERROR("Event ID mismatch!"); + LOG_ERROR(" Expected: %s", calculated_id); + LOG_ERROR(" Got: %s", provided_id ? provided_id : "NULL"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("Event ID verification passed"); + + // Prepare signature verification + LOG_STEP("CRYPTO-6", "Preparing signature verification"); + const char* pubkey_str = cJSON_GetStringValue(pubkey_item); + const char* sig_str = cJSON_GetStringValue(sig_item); + + if (!pubkey_str || !sig_str) { + LOG_ERROR("Missing pubkey or signature strings"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + + // Convert hex strings to bytes + LOG_STEP("CRYPTO-7", "Converting hex strings to bytes"); + unsigned char pubkey_bytes[32]; + unsigned char sig_bytes[64]; + + if (nostr_hex_to_bytes(pubkey_str, pubkey_bytes, 32) != 0) { + LOG_ERROR("Failed to convert pubkey hex to bytes"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + LOG_SUCCESS("Pubkey hex converted to bytes"); + hex_dump("Pubkey bytes", pubkey_bytes, 32); + + if (nostr_hex_to_bytes(sig_str, sig_bytes, 64) != 0) { + LOG_ERROR("Failed to convert signature hex to bytes"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + LOG_SUCCESS("Signature hex converted to bytes"); + hex_dump("Signature bytes", sig_bytes, 64); + + // Verify signature using nostr_core_lib function (avoiding direct secp256k1 calls) + LOG_STEP("CRYPTO-8", "Verifying signature using nostr_verify_event_signature()"); + + // Create a temporary event structure for verification + cJSON* temp_event = cJSON_CreateObject(); + if (!temp_event) { + LOG_ERROR("Failed to create temporary event for verification"); + free(serialize_string); + return NOSTR_ERROR_MEMORY_FAILED; + } + + // Copy all required fields to temp event + cJSON_AddItemToObject(temp_event, "id", cJSON_Duplicate(id_item, 1)); + cJSON_AddItemToObject(temp_event, "pubkey", cJSON_Duplicate(pubkey_item, 1)); + cJSON_AddItemToObject(temp_event, "created_at", cJSON_Duplicate(created_at_item, 1)); + cJSON_AddItemToObject(temp_event, "kind", cJSON_Duplicate(kind_item, 1)); + cJSON_AddItemToObject(temp_event, "tags", cJSON_Duplicate(tags_item, 1)); + cJSON_AddItemToObject(temp_event, "content", cJSON_Duplicate(content_item, 1)); + cJSON_AddItemToObject(temp_event, "sig", cJSON_Duplicate(sig_item, 1)); + + LOG_INFO("Calling nostr_verify_event_signature() for detailed crypto validation"); + int crypto_verify_result = nostr_verify_event_signature(temp_event); + LOG_INFO("nostr_verify_event_signature returned: %d (%s)", + crypto_verify_result, nostr_strerror(crypto_verify_result)); + + cJSON_Delete(temp_event); + + if (crypto_verify_result != NOSTR_SUCCESS) { + LOG_ERROR("Signature verification FAILED!"); + LOG_ERROR("nostr_verify_event_signature returned error: %d (%s)", + crypto_verify_result, nostr_strerror(crypto_verify_result)); + free(serialize_string); + return crypto_verify_result; + } + + LOG_SUCCESS("Signature verification PASSED using nostr_core_lib!"); + free(serialize_string); + return NOSTR_SUCCESS; +} + +/** + * Analyze event fields in detail + */ +void analyze_event_fields(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("ANALYZE-1", "Analyzing event field details"); + + cJSON* field; + cJSON_ArrayForEach(field, event) { + if (field->string) { + LOG_INFO("Field '%s':", field->string); + if (cJSON_IsString(field)) { + const char* value = cJSON_GetStringValue(field); + LOG_INFO(" Type: String"); + LOG_INFO(" Value: '%s'", value); + LOG_INFO(" Length: %zu", value ? strlen(value) : 0); + } else if (cJSON_IsNumber(field)) { + double value = cJSON_GetNumberValue(field); + LOG_INFO(" Type: Number"); + LOG_INFO(" Value: %.0f", value); + } else if (cJSON_IsArray(field)) { + int size = cJSON_GetArraySize(field); + LOG_INFO(" Type: Array"); + LOG_INFO(" Size: %d", size); + } else { + LOG_INFO(" Type: Other (%d)", field->type); + } + } + } +} + +/** + * Print hex dump of binary data + */ +void hex_dump(const char* label, const unsigned char* data, size_t len) { + LOG_INFO("%s (%zu bytes):", label, len); + for (size_t i = 0; i < len; i += 16) { + fprintf(stderr, " %04zx: ", i); + for (size_t j = 0; j < 16; j++) { + if (i + j < len) { + fprintf(stderr, "%02x ", data[i + j]); + } else { + fprintf(stderr, " "); + } + } + fprintf(stderr, " |"); + for (size_t j = 0; j < 16 && i + j < len; j++) { + unsigned char c = data[i + j]; + fprintf(stderr, "%c", (c >= 32 && c <= 126) ? c : '.'); + } + fprintf(stderr, "|\n"); + } +} + +// Main authentication function with comprehensive step-by-step logging +int authenticate_request(const char* auth_header, const char* method, const char* file_hash) { + LOG_DIVIDER(); + LOG_STEP("SERVER-1", "Starting server-style authentication (mirroring test_auth_debug.c)"); + + if (!auth_header) { + LOG_ERROR("No authorization header provided"); + return NOSTR_ERROR_INVALID_INPUT; + } + + LOG_INFO("Server-style auth called with method: %s, hash: %s", + method ? method : "null", file_hash ? file_hash : "null"); + + // Parse authorization header (same as server) char event_json[4096]; - printf("DEBUG: authenticate_request - calling parse_authorization_header\r\n"); + LOG_STEP("SERVER-2", "Calling parse_authorization_header"); int parse_result = parse_authorization_header(auth_header, event_json, sizeof(event_json)); if (parse_result != NOSTR_SUCCESS) { - printf("DEBUG: authenticate_request - Authorization header parsing failed: %d\r\n", parse_result); + LOG_ERROR("Authorization header parsing failed: %d (%s)", parse_result, nostr_strerror(parse_result)); return parse_result; } - printf("DEBUG: authenticate_request - parse_authorization_header succeeded\r\n"); + LOG_SUCCESS("parse_authorization_header succeeded"); - // Parse JSON event - printf("DEBUG: authenticate_request - calling cJSON_Parse on: %s\r\n", event_json); + // Parse JSON event (same as server) + LOG_STEP("SERVER-3", "Calling cJSON_Parse on JSON string"); + LOG_INFO("JSON to parse: %s", event_json); cJSON* event = cJSON_Parse(event_json); if (!event) { - printf("DEBUG: authenticate_request - Failed to parse JSON event with cJSON_Parse\r\n"); + LOG_ERROR("Failed to parse JSON event with cJSON_Parse"); return NOSTR_ERROR_EVENT_INVALID_CONTENT; } - printf("DEBUG: authenticate_request - cJSON_Parse succeeded, event parsed\r\n"); + LOG_SUCCESS("cJSON_Parse succeeded, event parsed"); - // Debug: Print event fields before validation + // Print complete parsed JSON like server does + char* parsed_json_str = cJSON_Print(event); + LOG_INFO("Parsed JSON: %s", parsed_json_str ? parsed_json_str : "NULL"); + if (parsed_json_str) free(parsed_json_str); + + // Debug: Print event fields before validation (same as server) cJSON* id_json = cJSON_GetObjectItem(event, "id"); cJSON* pubkey_json = cJSON_GetObjectItem(event, "pubkey"); cJSON* sig_json = cJSON_GetObjectItem(event, "sig"); cJSON* kind_json = cJSON_GetObjectItem(event, "kind"); cJSON* created_at_json = cJSON_GetObjectItem(event, "created_at"); - printf("DEBUG: authenticate_request - Event fields before validation:\r\n"); - printf("DEBUG: id: %s\r\n", id_json && cJSON_IsString(id_json) ? cJSON_GetStringValue(id_json) : "MISSING/INVALID"); - printf("DEBUG: pubkey: %s\r\n", pubkey_json && cJSON_IsString(pubkey_json) ? cJSON_GetStringValue(pubkey_json) : "MISSING/INVALID"); - printf("DEBUG: sig: %s\r\n", sig_json && cJSON_IsString(sig_json) ? cJSON_GetStringValue(sig_json) : "MISSING/INVALID"); - printf("DEBUG: kind: %d\r\n", kind_json && cJSON_IsNumber(kind_json) ? (int)cJSON_GetNumberValue(kind_json) : -999); - printf("DEBUG: created_at: %ld\r\n", created_at_json && cJSON_IsNumber(created_at_json) ? (long)cJSON_GetNumberValue(created_at_json) : -999); + LOG_STEP("SERVER-4", "Event fields before validation"); + LOG_INFO(" id: %s", id_json && cJSON_IsString(id_json) ? cJSON_GetStringValue(id_json) : "MISSING/INVALID"); + LOG_INFO(" pubkey: %s", pubkey_json && cJSON_IsString(pubkey_json) ? cJSON_GetStringValue(pubkey_json) : "MISSING/INVALID"); + LOG_INFO(" sig: %s", sig_json && cJSON_IsString(sig_json) ? cJSON_GetStringValue(sig_json) : "MISSING/INVALID"); + LOG_INFO(" kind: %d", kind_json && cJSON_IsNumber(kind_json) ? (int)cJSON_GetNumberValue(kind_json) : -999); + LOG_INFO(" created_at: %ld", created_at_json && cJSON_IsNumber(created_at_json) ? (long)cJSON_GetNumberValue(created_at_json) : -999); - // Validate event structure and signature using nostr_core_lib - printf("DEBUG: authenticate_request - calling nostr_validate_event\r\n"); - - // Additional debug: Check pubkey characters before validation + // Detailed pubkey analysis (same as server) if (pubkey_json && cJSON_IsString(pubkey_json)) { const char* pubkey_str = cJSON_GetStringValue(pubkey_json); - printf("DEBUG: authenticate_request - Pre-validation pubkey analysis:\r\n"); - printf("DEBUG: Pubkey: %s\r\n", pubkey_str ? pubkey_str : "NULL"); - printf("DEBUG: Length: %zu\r\n", pubkey_str ? strlen(pubkey_str) : 0); + LOG_STEP("SERVER-5", "Detailed pubkey analysis"); + LOG_INFO(" Pubkey: %s", pubkey_str ? pubkey_str : "NULL"); + LOG_INFO(" Length: %zu", pubkey_str ? strlen(pubkey_str) : 0); if (pubkey_str && strlen(pubkey_str) == 64) { - printf("DEBUG: Character analysis (first 10): "); + LOG_INFO(" Character analysis (first 10): "); for (int i = 0; i < 10; i++) { char c = pubkey_str[i]; - printf("%c(%d) ", c, (int)c); + fprintf(stderr, "%c(0x%02x) ", c, (unsigned char)c); } - printf("\r\n"); - printf("DEBUG: Character validation test: "); + fprintf(stderr, "\n"); + } + } + + // Pre-validation pubkey analysis (same as server) + LOG_STEP("SERVER-6", "Pre-validation pubkey analysis"); + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_INFO(" Pubkey: %s", pubkey_str ? pubkey_str : "NULL"); + LOG_INFO(" Length: %zu", pubkey_str ? strlen(pubkey_str) : 0); + if (pubkey_str && strlen(pubkey_str) == 64) { + LOG_INFO(" Character analysis (first 10): "); + for (int i = 0; i < 10; i++) { + char c = pubkey_str[i]; + fprintf(stderr, "%c(%d) ", c, (int)c); + } + fprintf(stderr, "\n"); + LOG_INFO(" Character validation test: "); int valid_chars = 1; for (int i = 0; i < 64; i++) { char c = pubkey_str[i]; if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { - printf("INVALID at pos %d: %c(%d) ", i, c, (int)c); + fprintf(stderr, "INVALID at pos %d: %c(%d) ", i, c, (int)c); valid_chars = 0; } } if (valid_chars) { - printf("ALL VALID (lowercase hex)\r\n"); + fprintf(stderr, "ALL VALID (lowercase hex)\n"); } else { - printf("\r\n"); + fprintf(stderr, "\n"); } } } - int validation_result = nostr_validate_event(event); - printf("DEBUG: authenticate_request - nostr_validate_event returned: %d\r\n", validation_result); - if (validation_result != NOSTR_SUCCESS) { - printf("DEBUG: authenticate_request - Nostr event validation FAILED: %d (%s)\r\n", - validation_result, nostr_strerror(validation_result)); - - // Additional debug: Check specific validation issues + // Detailed validation analysis (same as server) + LOG_STEP("SERVER-7", "Starting detailed validation analysis"); + + // Test structure validation first (same as server) + LOG_INFO("Testing structure validation..."); + int structure_result = nostr_validate_event_structure(event); + LOG_INFO("nostr_validate_event_structure returned: %d (%s)", + structure_result, nostr_strerror(structure_result)); + + // EMERGENCY DEBUG: Write structure validation result to file + FILE* debug_file = fopen("debug_validation.log", "a"); + if (debug_file) { + fprintf(debug_file, "=== STRUCTURE VALIDATION DEBUG ===\n"); + fprintf(debug_file, "nostr_validate_event_structure result: %d (%s)\n", + structure_result, nostr_strerror(structure_result)); + if (structure_result != NOSTR_SUCCESS) { + fprintf(debug_file, "STRUCTURE VALIDATION FAILED!\n"); + // Log the event JSON for debugging + char* event_str = cJSON_Print(event); + if (event_str) { + fprintf(debug_file, "Event JSON: %s\n", event_str); + free(event_str); + } + } + fprintf(debug_file, "=== END STRUCTURE DEBUG ===\n\n"); + fclose(debug_file); + } + + if (structure_result != NOSTR_SUCCESS) { + LOG_ERROR("STRUCTURE validation failed!"); + cJSON_Delete(event); + return structure_result; + } + LOG_SUCCESS("Structure validation PASSED"); + + // Test crypto validation separately (same as server) + LOG_INFO("Testing cryptographic verification..."); + int crypto_result = nostr_verify_event_signature(event); + LOG_INFO("nostr_verify_event_signature returned: %d (%s)", + crypto_result, nostr_strerror(crypto_result)); + + // EMERGENCY DEBUG: Write crypto validation result to file + FILE* debug_file2 = fopen("debug_validation.log", "a"); + if (debug_file2) { + fprintf(debug_file2, "=== CRYPTO VALIDATION DEBUG ===\n"); + fprintf(debug_file2, "nostr_verify_event_signature result: %d (%s)\n", + crypto_result, nostr_strerror(crypto_result)); + if (crypto_result != NOSTR_SUCCESS) { + fprintf(debug_file2, "CRYPTO VALIDATION FAILED!\n"); + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + fprintf(debug_file2, "Failed pubkey: %s (length: %zu)\n", + pubkey_str ? pubkey_str : "NULL", pubkey_str ? strlen(pubkey_str) : 0); + } + } + fprintf(debug_file2, "=== END CRYPTO DEBUG ===\n\n"); + fclose(debug_file2); + } + + if (crypto_result != NOSTR_SUCCESS) { + LOG_ERROR("CRYPTO verification failed!"); if (pubkey_json && cJSON_IsString(pubkey_json)) { const char* pubkey_str = cJSON_GetStringValue(pubkey_json); - printf("DEBUG: authenticate_request - Pubkey length: %zu, value: %s\r\n", + LOG_ERROR("Failed pubkey: %s (length: %zu)", + pubkey_str ? pubkey_str : "NULL", pubkey_str ? strlen(pubkey_str) : 0); + } + cJSON_Delete(event); + return crypto_result; + } + LOG_SUCCESS("Crypto verification PASSED"); + + // Finally test complete validation (same as server) + LOG_INFO("Testing complete validation..."); + int validation_result = nostr_validate_event(event); + LOG_INFO("nostr_validate_event returned: %d (%s)", + validation_result, nostr_strerror(validation_result)); + + // EMERGENCY DEBUG: Write complete validation result to file + FILE* debug_file3 = fopen("debug_validation.log", "a"); + if (debug_file3) { + fprintf(debug_file3, "=== COMPLETE VALIDATION DEBUG ===\n"); + fprintf(debug_file3, "nostr_validate_event result: %d (%s)\n", + validation_result, nostr_strerror(validation_result)); + if (validation_result != NOSTR_SUCCESS) { + fprintf(debug_file3, "COMPLETE VALIDATION FAILED!\n"); + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + fprintf(debug_file3, "Pubkey length: %zu, value: %s\n", + pubkey_str ? strlen(pubkey_str) : 0, pubkey_str ? pubkey_str : "NULL"); + } + } + fprintf(debug_file3, "=== END COMPLETE DEBUG ===\n\n"); + fclose(debug_file3); + } + + if (validation_result != NOSTR_SUCCESS) { + LOG_ERROR("COMPLETE validation failed: %d (%s)", + validation_result, nostr_strerror(validation_result)); + + // Additional debug: Check specific validation issues (same as server) + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_ERROR("Pubkey length: %zu, value: %s", pubkey_str ? strlen(pubkey_str) : 0, pubkey_str ? pubkey_str : "NULL"); } cJSON_Delete(event); return validation_result; } - printf("DEBUG: authenticate_request - nostr_validate_event PASSED\r\n"); + LOG_SUCCESS("Complete validation PASSED"); + + // Run our detailed validations for additional debugging + LOG_STEP("SERVER-8", "Running detailed structure validation"); + int detailed_struct_result = detailed_structure_validation(event); + if (detailed_struct_result != NOSTR_SUCCESS) { + LOG_ERROR("Detailed structure validation failed: %d (%s)", detailed_struct_result, nostr_strerror(detailed_struct_result)); + cJSON_Delete(event); + return detailed_struct_result; + } + LOG_SUCCESS("Detailed structure validation PASSED"); + + LOG_STEP("SERVER-9", "Running detailed signature validation"); + int detailed_crypto_result = detailed_signature_validation(event); + if (detailed_crypto_result != NOSTR_SUCCESS) { + LOG_ERROR("Detailed signature validation failed: %d (%s)", detailed_crypto_result, nostr_strerror(detailed_crypto_result)); + cJSON_Delete(event); + return detailed_crypto_result; + } + LOG_SUCCESS("Detailed signature validation PASSED"); + + // Analyze event fields + analyze_event_fields(event); // Validate Blossom-specific requirements - printf("DEBUG: authenticate_request - calling validate_blossom_event\r\n"); + LOG_STEP("SERVER-10", "Validating Blossom-specific requirements"); int blossom_result = validate_blossom_event(event, file_hash, method); if (blossom_result != NOSTR_SUCCESS) { - printf("DEBUG: authenticate_request - Blossom event validation failed: %d\r\n", blossom_result); + LOG_ERROR("Blossom event validation failed: %d (%s)", blossom_result, nostr_strerror(blossom_result)); cJSON_Delete(event); return blossom_result; } - printf("DEBUG: authenticate_request - validate_blossom_event PASSED\r\n"); + LOG_SUCCESS("Blossom event validation PASSED"); cJSON_Delete(event); - printf("DEBUG: authenticate_request - Authentication successful, returning NOSTR_SUCCESS\r\n"); + LOG_SUCCESS("Server-style authentication successful, returning NOSTR_SUCCESS"); return NOSTR_SUCCESS; } @@ -605,7 +1172,7 @@ int auth_rules_enabled(void) { rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READONLY, NULL); if (rc) { - printf("DEBUG: Database open failed in auth_rules_enabled: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Database open failed in auth_rules_enabled: %s\r\n", sqlite3_errmsg(db)); return 0; // Disable rules if can't check database } @@ -998,7 +1565,7 @@ int check_auth_cache(const char* cache_key, auth_rule_result_t* result) { sqlite3_finalize(stmt); sqlite3_close(db); - printf("DEBUG: Cache hit for key: %.16s... (allowed=%d)\r\n", cache_key, result->allowed); + fprintf(stderr, "DEBUG: Cache hit for key: %.16s... (allowed=%d)\r\n", cache_key, result->allowed); return 1; } @@ -1019,7 +1586,7 @@ void store_auth_cache(const char* cache_key, const auth_rule_result_t* result) { rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READWRITE, NULL); if (rc) { - printf("DEBUG: Failed to open database for caching: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Failed to open database for caching: %s\r\n", sqlite3_errmsg(db)); return; } @@ -1053,9 +1620,9 @@ void store_auth_cache(const char* cache_key, const auth_rule_result_t* result) { rc = sqlite3_step(stmt); if (rc == SQLITE_DONE) { - printf("DEBUG: Cached auth decision for key: %.16s... (TTL=%d)\r\n", cache_key, cache_ttl); + fprintf(stderr, "DEBUG: Cached auth decision for key: %.16s... (TTL=%d)\r\n", cache_key, cache_ttl); } else { - printf("DEBUG: Failed to cache auth decision: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Failed to cache auth decision: %s\r\n", sqlite3_errmsg(db)); } sqlite3_finalize(stmt); } @@ -1075,13 +1642,13 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h result->allowed = 1; // Default allow if no rules apply strcpy(result->reason, "No rules matched - default allow"); - printf("DEBUG: evaluate_auth_rules called - pubkey=%s, op=%s, hash=%s, mime=%s, size=%ld\r\n", + fprintf(stderr, "DEBUG: evaluate_auth_rules called - pubkey=%s, op=%s, hash=%s, mime=%s, size=%ld\r\n", pubkey ? pubkey : "NULL", operation ? operation : "NULL", hash ? hash : "NULL", mime_type ? mime_type : "NULL", file_size); // Check if authentication rules system is enabled if (!auth_rules_enabled()) { - printf("DEBUG: Authentication rules system is disabled\r\n"); + fprintf(stderr, "DEBUG: Authentication rules system is disabled\r\n"); strcpy(result->reason, "Authentication rules system disabled - default allow"); return 1; } @@ -1092,11 +1659,11 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h // Check cache first for performance if (check_auth_cache(cache_key, result)) { - printf("DEBUG: Using cached authentication decision\r\n"); + fprintf(stderr, "DEBUG: Using cached authentication decision\r\n"); return 1; } - printf("DEBUG: No cache hit - evaluating rules in priority order\r\n"); + fprintf(stderr, "DEBUG: No cache hit - evaluating rules in priority order\r\n"); // Evaluate rules in priority order (lower priority number = higher precedence) auth_rule_result_t rule_result; @@ -1109,7 +1676,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: Pubkey blacklist rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: Pubkey blacklist rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1119,7 +1686,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: Hash blacklist rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: Hash blacklist rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1129,7 +1696,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: MIME type blacklist rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: MIME type blacklist rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1139,7 +1706,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: Size limit rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: Size limit rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1149,7 +1716,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: Pubkey whitelist rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: Pubkey whitelist rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1159,7 +1726,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h *result = rule_result; highest_priority = rule_result.priority; rule_matched = 1; - printf("DEBUG: MIME type whitelist rule matched (priority %d)\r\n", rule_result.priority); + fprintf(stderr, "DEBUG: MIME type whitelist rule matched (priority %d)\r\n", rule_result.priority); } } @@ -1191,7 +1758,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h snprintf(result->reason, sizeof(result->reason), "Denied - pubkey not in whitelist (found %d whitelist rules)", whitelist_count); rule_matched = 1; - printf("DEBUG: Denied due to whitelist policy - pubkey not whitelisted\r\n"); + fprintf(stderr, "DEBUG: Denied due to whitelist policy - pubkey not whitelisted\r\n"); } } sqlite3_finalize(stmt); @@ -1203,7 +1770,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h // Cache the decision for future requests store_auth_cache(cache_key, result); - printf("DEBUG: Rule evaluation complete - allowed=%d, rule_id=%d, reason=%s\r\n", + fprintf(stderr, "DEBUG: Rule evaluation complete - allowed=%d, rule_id=%d, reason=%s\r\n", result->allowed, result->rule_id, result->reason); return rule_matched; @@ -1212,7 +1779,7 @@ int evaluate_auth_rules(const char* pubkey, const char* operation, const char* h // Enhanced authentication function that integrates rule evaluation int authenticate_request_with_rules(const char* auth_header, const char* method, const char* file_hash, const char* mime_type, long file_size) { - printf("DEBUG: authenticate_request_with_rules called - method: %s, file_hash: %s, mime_type: %s, file_size: %ld\r\n", + fprintf(stderr, "DEBUG: authenticate_request_with_rules called - method: %s, file_hash: %s, mime_type: %s, file_size: %ld\r\n", method ? method : "NULL", file_hash ? file_hash : "NULL", mime_type ? mime_type : "NULL", file_size); // Step 1: Basic nostr authentication (if header provided) @@ -1220,14 +1787,14 @@ int authenticate_request_with_rules(const char* auth_header, const char* method, static char pubkey_buffer[256]; if (auth_header) { - printf("DEBUG: Authorization header provided, starting basic nostr authentication\r\n"); + fprintf(stderr, "DEBUG: Authorization header provided, starting basic nostr authentication\r\n"); // Parse and validate nostr event first int auth_result = authenticate_request(auth_header, method, file_hash); if (auth_result != NOSTR_SUCCESS) { - printf("DEBUG: Basic nostr authentication failed: %d (%s)\r\n", auth_result, nostr_strerror(auth_result)); + fprintf(stderr, "DEBUG: Basic nostr authentication failed: %d (%s)\r\n", auth_result, nostr_strerror(auth_result)); return auth_result; } - printf("DEBUG: Basic nostr authentication PASSED\r\n"); + fprintf(stderr, "DEBUG: Basic nostr authentication PASSED\r\n"); // Extract pubkey from validated event char event_json[4096]; @@ -1247,9 +1814,9 @@ int authenticate_request_with_rules(const char* auth_header, const char* method, cJSON_Delete(event); } } - printf("DEBUG: Extracted pubkey from auth: %s\r\n", pubkey ? pubkey : "NULL"); + fprintf(stderr, "DEBUG: Extracted pubkey from auth: %s\r\n", pubkey ? pubkey : "NULL"); } else { - printf("DEBUG: No authorization header - evaluating rules for anonymous request\r\n"); + fprintf(stderr, "DEBUG: No authorization header - evaluating rules for anonymous request\r\n"); } // Step 2: Evaluate authentication rules @@ -1257,11 +1824,11 @@ int authenticate_request_with_rules(const char* auth_header, const char* method, int rule_evaluated = evaluate_auth_rules(pubkey, method, file_hash, mime_type, file_size, &rule_result); if (rule_evaluated && !rule_result.allowed) { - printf("DEBUG: Request denied by authentication rules: %s\r\n", rule_result.reason); + fprintf(stderr, "DEBUG: Request denied by authentication rules: %s\r\n", rule_result.reason); return NOSTR_ERROR_INVALID_INPUT; // Authentication denied by rules } - printf("DEBUG: Request allowed - nostr auth + rules passed\r\n"); + fprintf(stderr, "DEBUG: Request allowed - nostr auth + rules passed\r\n"); return NOSTR_SUCCESS; } @@ -1295,14 +1862,14 @@ void log_request(const char* method, const char* uri, const char* auth_status, i strftime(timestamp, sizeof(timestamp), "%Y-%m-%d %H:%M:%S", tm_info); // For now, log to stdout - later can be configured to log files - printf("LOG: [%s] %s %s - Auth: %s - Status: %d\r\n", + fprintf(stderr, "LOG: [%s] %s %s - Auth: %s - Status: %d\r\n", timestamp, method ? method : "NULL", uri ? uri : "NULL", auth_status ? auth_status : "none", status_code); } // Handle GET /list/ requests void handle_list_request(const char* pubkey) { - printf("DEBUG: handle_list_request called with pubkey=%s\r\n", pubkey ? pubkey : "NULL"); + fprintf(stderr, "DEBUG: handle_list_request called with pubkey=%s\r\n", pubkey ? pubkey : "NULL"); // Log the incoming request log_request("GET", "/list", "pending", 0); @@ -1330,20 +1897,20 @@ void handle_list_request(const char* pubkey) { long until_timestamp = 0; if (query_string) { - printf("DEBUG: Query string: %s\r\n", query_string); + fprintf(stderr, "DEBUG: Query string: %s\r\n", query_string); // Parse since parameter const char* since_param = strstr(query_string, "since="); if (since_param) { since_timestamp = atol(since_param + 6); - printf("DEBUG: Since timestamp: %ld\r\n", since_timestamp); + fprintf(stderr, "DEBUG: Since timestamp: %ld\r\n", since_timestamp); } // Parse until parameter const char* until_param = strstr(query_string, "until="); if (until_param) { until_timestamp = atol(until_param + 6); - printf("DEBUG: Until timestamp: %ld\r\n", until_timestamp); + fprintf(stderr, "DEBUG: Until timestamp: %ld\r\n", until_timestamp); } } @@ -1352,7 +1919,7 @@ void handle_list_request(const char* pubkey) { const char* auth_status = "none"; if (auth_header) { - printf("DEBUG: Authorization header provided for list request\r\n"); + fprintf(stderr, "DEBUG: Authorization header provided for list request\r\n"); int auth_result = authenticate_request_with_rules(auth_header, "list", NULL, NULL, 0); if (auth_result != NOSTR_SUCCESS) { send_error_response(401, "authentication_failed", "Invalid or expired authentication", @@ -1370,7 +1937,7 @@ void handle_list_request(const char* pubkey) { rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READONLY, NULL); if (rc) { - printf("DEBUG: Database open failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Database open failed: %s\r\n", sqlite3_errmsg(db)); send_error_response(500, "database_error", "Failed to access database", "Internal server error"); log_request("GET", "/list", auth_status, 500); return; @@ -1392,11 +1959,11 @@ void handle_list_request(const char* pubkey) { "SELECT sha256, size, type, uploaded_at, filename FROM blobs WHERE uploader_pubkey = ? ORDER BY uploaded_at DESC"); } - printf("DEBUG: SQL query: %s\r\n", sql); + fprintf(stderr, "DEBUG: SQL query: %s\r\n", sql); rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { - printf("DEBUG: SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); sqlite3_close(db); send_error_response(500, "database_error", "Failed to prepare query", "Internal server error"); log_request("GET", "/list", auth_status, 500); @@ -1477,13 +2044,13 @@ void handle_list_request(const char* pubkey) { sqlite3_finalize(stmt); sqlite3_close(db); - printf("DEBUG: List request completed successfully\r\n"); + fprintf(stderr, "DEBUG: List request completed successfully\r\n"); log_request("GET", "/list", auth_status, 200); } // Handle DELETE / requests void handle_delete_request(const char* sha256) { - printf("DEBUG: handle_delete_request called with sha256=%s\r\n", sha256 ? sha256 : "NULL"); + fprintf(stderr, "DEBUG: handle_delete_request called with sha256=%s\r\n", sha256 ? sha256 : "NULL"); // Log the incoming request log_request("DELETE", "/delete", "pending", 0); @@ -1560,7 +2127,7 @@ void handle_delete_request(const char* sha256) { rc = sqlite3_open_v2(DB_PATH, &db, SQLITE_OPEN_READWRITE, NULL); if (rc) { - printf("DEBUG: Database open failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Database open failed: %s\r\n", sqlite3_errmsg(db)); send_error_response(500, "database_error", "Failed to access database", "Internal server error"); log_request("DELETE", "/delete", "authenticated", 500); return; @@ -1570,7 +2137,7 @@ void handle_delete_request(const char* sha256) { const char* sql = "SELECT uploader_pubkey, type FROM blobs WHERE sha256 = ?"; rc = sqlite3_prepare_v2(db, sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { - printf("DEBUG: SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); sqlite3_close(db); send_error_response(500, "database_error", "Failed to prepare query", "Internal server error"); log_request("DELETE", "/delete", "authenticated", 500); @@ -1613,13 +2180,13 @@ void handle_delete_request(const char* sha256) { return; } - printf("DEBUG: Ownership check passed, proceeding with deletion\r\n"); + fprintf(stderr, "DEBUG: Ownership check passed, proceeding with deletion\r\n"); // Delete from database first const char* delete_sql = "DELETE FROM blobs WHERE sha256 = ?"; rc = sqlite3_prepare_v2(db, delete_sql, -1, &stmt, NULL); if (rc != SQLITE_OK) { - printf("DEBUG: Delete SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); + fprintf(stderr, "DEBUG: Delete SQL prepare failed: %s\r\n", sqlite3_errmsg(db)); sqlite3_close(db); send_error_response(500, "database_error", "Failed to prepare delete", "Internal server error"); log_request("DELETE", "/delete", "authenticated", 500); @@ -1633,13 +2200,13 @@ void handle_delete_request(const char* sha256) { sqlite3_close(db); if (rc != SQLITE_DONE) { - printf("DEBUG: Database delete failed: %d\r\n", rc); + fprintf(stderr, "DEBUG: Database delete failed: %d\r\n", rc); send_error_response(500, "database_error", "Failed to delete blob metadata", "Internal server error"); log_request("DELETE", "/delete", "authenticated", 500); return; } - printf("DEBUG: Blob metadata deleted from database\r\n"); + fprintf(stderr, "DEBUG: Blob metadata deleted from database\r\n"); // Determine file extension from MIME type and delete physical file const char* extension = ""; @@ -1668,15 +2235,15 @@ void handle_delete_request(const char* sha256) { char filepath[MAX_PATH_LEN]; snprintf(filepath, sizeof(filepath), "blobs/%s%s", sha256, extension); - printf("DEBUG: Attempting to delete file: %s\r\n", filepath); + fprintf(stderr, "DEBUG: Attempting to delete file: %s\r\n", filepath); if (unlink(filepath) != 0) { - printf("DEBUG: Failed to delete physical file: %s\r\n", filepath); + fprintf(stderr, "DEBUG: Failed to delete physical file: %s\r\n", filepath); // File deletion failed, but database is already updated // Log warning but don't fail the request - printf("WARNING: Physical file deletion failed, but metadata was removed\r\n"); + fprintf(stderr, "WARNING: Physical file deletion failed, but metadata was removed\r\n"); } else { - printf("DEBUG: Physical file deleted successfully\r\n"); + fprintf(stderr, "DEBUG: Physical file deleted successfully\r\n"); } // Return success response @@ -1687,13 +2254,14 @@ void handle_delete_request(const char* sha256) { printf(" \"sha256\": \"%s\"\n", sha256); printf("}\n"); - printf("DEBUG: Delete operation completed successfully\r\n"); + fprintf(stderr, "DEBUG: Delete operation completed successfully\r\n"); log_request("DELETE", "/delete", "authenticated", 200); } // Handle PUT /upload requests void handle_upload_request(void) { - printf("DEBUG: handle_upload_request called\r\n"); + fprintf(stderr, "ENTRY: Entering handle_upload_request() function\r\n"); + fprintf(stderr, "DEBUG: handle_upload_request called\r\n"); // Log the incoming request log_request("PUT", "/upload", "pending", 0); @@ -1702,8 +2270,8 @@ void handle_upload_request(void) { const char* content_type = getenv("CONTENT_TYPE"); const char* content_length_str = getenv("CONTENT_LENGTH"); - printf("DEBUG: content_type=%s\r\n", content_type ? content_type : "NULL"); - printf("DEBUG: content_length=%s\r\n", content_length_str ? content_length_str : "NULL"); + fprintf(stderr, "DEBUG: content_type=%s\r\n", content_type ? content_type : "NULL"); + fprintf(stderr, "DEBUG: content_length=%s\r\n", content_length_str ? content_length_str : "NULL"); // Validate required headers if (!content_type) { @@ -1727,7 +2295,7 @@ void handle_upload_request(void) { // Get Authorization header for authentication const char* auth_header = getenv("HTTP_AUTHORIZATION"); - printf("DEBUG: Raw Authorization header: %s\r\n", auth_header ? auth_header : "NULL"); + fprintf(stderr, "DEBUG: Raw Authorization header: %s\r\n", auth_header ? auth_header : "NULL"); // Store uploader pubkey for metadata (will be extracted during auth if provided) const char* uploader_pubkey = NULL; @@ -1748,18 +2316,32 @@ void handle_upload_request(void) { size_t bytes_read = fread(file_data, 1, content_length, stdin); if (bytes_read != (size_t)content_length) { - printf("DEBUG: Expected %ld bytes, read %zu bytes\r\n", content_length, bytes_read); + fprintf(stderr, "DEBUG: Expected %ld bytes, read %zu bytes\r\n", content_length, bytes_read); free(file_data); printf("Status: 400 Bad Request\r\n"); printf("Content-Type: text/plain\r\n\r\n"); printf("Failed to read complete file data\n"); return; } - - printf("DEBUG: Successfully read %zu bytes from stdin\r\n", bytes_read); - + // Calculate SHA-256 hash using nostr_core function unsigned char hash[32]; + + + // EMERGENCY DEBUG: Write to direct file + FILE* debug_file = fopen("debug_hash_data.log", "a"); + if (debug_file) { + fprintf(debug_file, "=== HASH DEBUG SESSION ===\n"); + fprintf(debug_file, "Content length: %ld\n", content_length); + fprintf(debug_file, "File data to hash: "); + for (int i = 0; i < content_length; i++) { + fprintf(debug_file, "%02x", (unsigned char)file_data[i]); + } + fprintf(debug_file, "\n"); + fprintf(debug_file, "File data as string: %.*s\n", (int)content_length, file_data); + fclose(debug_file); + } + if (nostr_sha256(file_data, content_length, hash) != NOSTR_SUCCESS) { free(file_data); printf("Status: 500 Internal Server Error\r\n"); @@ -1771,12 +2353,24 @@ void handle_upload_request(void) { // Convert hash to hex string char sha256_hex[65]; nostr_bytes_to_hex(hash, 32, sha256_hex); - printf("DEBUG: Calculated SHA-256: %s\r\n", sha256_hex); + fprintf(stderr, "DEBUG-LAAN: Calculated SHA-256: %s\r\n", sha256_hex); + fflush(stderr); + + // EMERGENCY DEBUG: Write calculated hash to direct file + FILE* debug_file2 = fopen("debug_hash_data.log", "a"); + if (debug_file2) { + fprintf(debug_file2, "Calculated SHA-256: %s\n", sha256_hex); + fprintf(debug_file2, "=== END DEBUG SESSION ===\n\n"); + fclose(debug_file2); + } // TEMPORARY FIX: Bypass rules system and use simple authentication + fprintf(stderr, "AUTH: About to perform authentication - auth_header present: %s\r\n", auth_header ? "YES" : "NO"); int auth_result = NOSTR_SUCCESS; if (auth_header) { + fprintf(stderr, "AUTH: Calling authenticate_request with hash: %s\r\n", sha256_hex); auth_result = authenticate_request(auth_header, "upload", sha256_hex); + fprintf(stderr, "AUTH: authenticate_request returned: %d\r\n", auth_result); if (auth_result != NOSTR_SUCCESS) { free(file_data); send_error_response(401, "authentication_failed", "Authentication failed", @@ -1808,7 +2402,7 @@ void handle_upload_request(void) { } } - printf("DEBUG: Authentication passed, uploader_pubkey: %s\r\n", uploader_pubkey ? uploader_pubkey : "anonymous"); + fprintf(stderr, "DEBUG: Authentication passed, uploader_pubkey: %s\r\n", uploader_pubkey ? uploader_pubkey : "anonymous"); // Determine file extension from Content-Type const char* extension = ""; @@ -1839,7 +2433,7 @@ void handle_upload_request(void) { char filepath[MAX_PATH_LEN]; snprintf(filepath, sizeof(filepath), "blobs/%s%s", sha256_hex, extension); - printf("DEBUG: Saving file to: %s\r\n", filepath); + fprintf(stderr, "DEBUG: Saving file to: %s\r\n", filepath); FILE* outfile = fopen(filepath, "wb"); if (!outfile) { @@ -1863,25 +2457,25 @@ void handle_upload_request(void) { return; } - printf("DEBUG: Successfully saved %zu bytes to %s\r\n", bytes_written, filepath); + fprintf(stderr, "DEBUG: Successfully saved %zu bytes to %s\r\n", bytes_written, filepath); // Extract filename from Content-Disposition header if present const char* filename = NULL; const char* content_disposition = getenv("HTTP_CONTENT_DISPOSITION"); - printf("DEBUG: Content-Disposition header: %s\r\n", content_disposition ? content_disposition : "NULL"); + fprintf(stderr, "DEBUG: Content-Disposition header: %s\r\n", content_disposition ? content_disposition : "NULL"); if (content_disposition) { - printf("DEBUG: Looking for filename= in Content-Disposition header\r\n"); + fprintf(stderr, "DEBUG: Looking for filename= in Content-Disposition header\r\n"); // Look for filename= in Content-Disposition header const char* filename_start = strstr(content_disposition, "filename="); if (filename_start) { - printf("DEBUG: Found filename= at position %ld\r\n", filename_start - content_disposition); + fprintf(stderr, "DEBUG: Found filename= at position %ld\r\n", filename_start - content_disposition); filename_start += 9; // Skip "filename=" - printf("DEBUG: Filename value starts with: %.20s\r\n", filename_start); + fprintf(stderr, "DEBUG: Filename value starts with: %.20s\r\n", filename_start); // Handle quoted filenames if (*filename_start == '"') { - printf("DEBUG: Processing quoted filename\r\n"); + fprintf(stderr, "DEBUG: Processing quoted filename\r\n"); filename_start++; // Skip opening quote // Find closing quote const char* filename_end = strchr(filename_start, '"'); @@ -1889,20 +2483,20 @@ void handle_upload_request(void) { // Extract filename between quotes static char filename_buffer[256]; size_t filename_len = filename_end - filename_start; - printf("DEBUG: Quoted filename length: %zu\r\n", filename_len); + fprintf(stderr, "DEBUG: Quoted filename length: %zu\r\n", filename_len); if (filename_len < sizeof(filename_buffer)) { strncpy(filename_buffer, filename_start, filename_len); filename_buffer[filename_len] = '\0'; filename = filename_buffer; - printf("DEBUG: Extracted quoted filename: '%s'\r\n", filename); + fprintf(stderr, "DEBUG: Extracted quoted filename: '%s'\r\n", filename); } else { - printf("DEBUG: Quoted filename too long, skipping\r\n"); + fprintf(stderr, "DEBUG: Quoted filename too long, skipping\r\n"); } } else { - printf("DEBUG: No closing quote found for filename\r\n"); + fprintf(stderr, "DEBUG: No closing quote found for filename\r\n"); } } else { - printf("DEBUG: Processing unquoted filename\r\n"); + fprintf(stderr, "DEBUG: Processing unquoted filename\r\n"); // Unquoted filename - extract until space or end const char* filename_end = filename_start; while (*filename_end && *filename_end != ' ' && *filename_end != ';') { @@ -1910,30 +2504,30 @@ void handle_upload_request(void) { } static char filename_buffer[256]; size_t filename_len = filename_end - filename_start; - printf("DEBUG: Unquoted filename length: %zu\r\n", filename_len); + fprintf(stderr, "DEBUG: Unquoted filename length: %zu\r\n", filename_len); if (filename_len < sizeof(filename_buffer)) { strncpy(filename_buffer, filename_start, filename_len); filename_buffer[filename_len] = '\0'; filename = filename_buffer; - printf("DEBUG: Extracted unquoted filename: '%s'\r\n", filename); + fprintf(stderr, "DEBUG: Extracted unquoted filename: '%s'\r\n", filename); } else { - printf("DEBUG: Unquoted filename too long, skipping\r\n"); + fprintf(stderr, "DEBUG: Unquoted filename too long, skipping\r\n"); } } } else { - printf("DEBUG: No filename= found in Content-Disposition header\r\n"); + fprintf(stderr, "DEBUG: No filename= found in Content-Disposition header\r\n"); } } else { - printf("DEBUG: No Content-Disposition header provided\r\n"); + fprintf(stderr, "DEBUG: No Content-Disposition header provided\r\n"); } - printf("DEBUG: Final filename after extraction: %s\r\n", filename ? filename : "NULL"); + fprintf(stderr, "DEBUG: Final filename after extraction: %s\r\n", filename ? filename : "NULL"); // Store blob metadata in database time_t uploaded_time = time(NULL); if (!insert_blob_metadata(sha256_hex, content_length, content_type, uploaded_time, uploader_pubkey, filename)) { // Database insertion failed - clean up the physical file to maintain consistency - printf("DEBUG: Database insertion failed, removing physical file\r\n"); + fprintf(stderr, "DEBUG: Database insertion failed, removing physical file\r\n"); unlink(filepath); printf("Status: 500 Internal Server Error\r\n"); printf("Content-Type: text/plain\r\n\r\n"); @@ -1941,7 +2535,7 @@ void handle_upload_request(void) { return; } - printf("DEBUG: Blob metadata successfully stored in database\r\n"); + fprintf(stderr, "DEBUG: Blob metadata successfully stored in database\r\n"); // Return success response with blob descriptor printf("Status: 200 OK\r\n"); @@ -1954,19 +2548,22 @@ void handle_upload_request(void) { printf(" \"url\": \"http://localhost:9001/%s%s\"\n", sha256_hex, extension); printf("}\n"); - printf("DEBUG: Upload completed successfully with database storage\r\n"); + fprintf(stderr, "DEBUG: Upload completed successfully with database storage\r\n"); } int main(void) { + fprintf(stderr, "STARTUP: FastCGI application starting up\r\n"); + fflush(stderr); while (FCGI_Accept() >= 0) { // DEBUG: Log every request received - printf("DEBUG: FastCGI received request\r\n"); + fprintf(stderr, "DEBUG: FastCGI received request\r\n"); + fflush(stderr); const char* request_method = getenv("REQUEST_METHOD"); const char* request_uri = getenv("REQUEST_URI"); // DEBUG: Log request details - printf("DEBUG: METHOD=%s, URI=%s\r\n", + fprintf(stderr, "DEBUG: METHOD=%s, URI=%s\r\n", request_method ? request_method : "NULL", request_uri ? request_uri : "NULL"); @@ -1980,7 +2577,7 @@ int main(void) { // Handle HEAD requests for blob metadata if (strcmp(request_method, "HEAD") == 0) { const char* sha256 = extract_sha256_from_uri(request_uri); - printf("DEBUG: Extracted SHA256=%s\r\n", sha256 ? sha256 : "NULL"); + fprintf(stderr, "DEBUG: Extracted SHA256=%s\r\n", sha256 ? sha256 : "NULL"); if (sha256) { handle_head_request(sha256); log_request("HEAD", request_uri, "none", 200); // Assuming success - could be enhanced to track actual status @@ -2019,7 +2616,7 @@ int main(void) { } else if (strcmp(request_method, "DELETE") == 0) { // Handle DELETE / requests const char* sha256 = extract_sha256_from_uri(request_uri); - printf("DEBUG: DELETE request - extracted SHA256=%s\r\n", sha256 ? sha256 : "NULL"); + fprintf(stderr, "DEBUG: DELETE request - extracted SHA256=%s\r\n", sha256 ? sha256 : "NULL"); if (sha256) { handle_delete_request(sha256); } else { diff --git a/test_auth_debug b/test_auth_debug new file mode 100755 index 0000000..dd4089c Binary files /dev/null and b/test_auth_debug differ diff --git a/test_auth_debug.c b/test_auth_debug.c new file mode 100644 index 0000000..631712e --- /dev/null +++ b/test_auth_debug.c @@ -0,0 +1,765 @@ +/* + * Debug test for Authorization header processing + * Tests the exact same flow as the ginxsom server with detailed step-by-step logging + */ + +#include +#include +#include +#include +#include "nostr_core_lib/nostr_core/nip001.h" +#include "nostr_core_lib/nostr_core/nostr_common.h" +#include "nostr_core_lib/nostr_core/utils.h" +#include "nostr_core_lib/nostr_core/crypto/nostr_secp256k1.h" +#include "nostr_core_lib/cjson/cJSON.h" + +// Logging utility +#define LOG_STEP(step, msg, ...) printf("🔍 STEP %s: " msg "\n", step, ##__VA_ARGS__) +#define LOG_SUCCESS(msg, ...) printf("✅ SUCCESS: " msg "\n", ##__VA_ARGS__) +#define LOG_ERROR(msg, ...) printf("❌ ERROR: " msg "\n", ##__VA_ARGS__) +#define LOG_INFO(msg, ...) printf("ℹ️ INFO: " msg "\n", ##__VA_ARGS__) +#define LOG_DIVIDER() printf("═══════════════════════════════════════════════════════════════════\n") + +// Forward declarations for detailed validation functions +int detailed_structure_validation(cJSON* event); +int detailed_signature_validation(cJSON* event); +void analyze_event_fields(cJSON* event); +void analyze_serialization(cJSON* event); +void hex_dump(const char* label, const unsigned char* data, size_t len); + +// Copy the exact parse_authorization_header function from main.c +int parse_authorization_header(const char* auth_header, char* event_json, size_t json_size) { + if (!auth_header || !event_json) { + printf("DEBUG: parse_authorization_header - invalid parameters: auth_header=%p, event_json=%p\r\n", + (void*)auth_header, (void*)event_json); + return NOSTR_ERROR_INVALID_INPUT; + } + + printf("DEBUG: parse_authorization_header called with header: %.50s...\r\n", auth_header); + + // Check for "Nostr " prefix (case-insensitive) + const char* prefix = "nostr "; + size_t prefix_len = strlen(prefix); + + if (strncasecmp(auth_header, prefix, prefix_len) != 0) { + printf("DEBUG: Authorization header missing 'Nostr ' prefix (found: %.10s)\r\n", auth_header); + return NOSTR_ERROR_INVALID_INPUT; + } + + // Extract base64 encoded event after "Nostr " + const char* base64_event = auth_header + prefix_len; + printf("DEBUG: Extracted base64 event (length=%zu): %.100s...\r\n", strlen(base64_event), base64_event); + + // Decode base64 to JSON using nostr_core_lib base64 decode + unsigned char decoded_buffer[4096]; + size_t decoded_len = base64_decode(base64_event, decoded_buffer); + + printf("DEBUG: Base64 decode result - decoded_len=%zu\r\n", decoded_len); + + if (decoded_len == 0) { + printf("DEBUG: Failed to decode base64 event - base64_decode returned 0\r\n"); + return NOSTR_ERROR_INVALID_INPUT; + } + + if (decoded_len >= json_size) { + printf("DEBUG: Decoded JSON too large for buffer (decoded_len=%zu, json_size=%zu)\r\n", decoded_len, json_size); + return NOSTR_ERROR_INVALID_INPUT; + } + + // Copy decoded JSON to output buffer + memcpy(event_json, decoded_buffer, decoded_len); + event_json[decoded_len] = '\0'; + + printf("DEBUG: Successfully decoded JSON (length=%zu): %s\r\n", decoded_len, event_json); + return NOSTR_SUCCESS; +} + +/** + * Detailed structure validation with step-by-step logging + */ +int detailed_structure_validation(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("STRUCT-1", "Starting detailed structure validation"); + + if (!event || !cJSON_IsObject(event)) { + LOG_ERROR("Event is null or not a JSON object"); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + LOG_SUCCESS("Event is valid JSON object"); + + // Check each required field existence + LOG_STEP("STRUCT-2", "Checking required field existence"); + const char* required_fields[] = {"id", "pubkey", "created_at", "kind", "tags", "content", "sig"}; + for (int i = 0; i < 7; i++) { + cJSON* field = cJSON_GetObjectItem(event, required_fields[i]); + if (!field) { + LOG_ERROR("Missing required field: %s", required_fields[i]); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + LOG_SUCCESS("Field '%s' exists", required_fields[i]); + } + + // Get all fields for detailed validation + cJSON* id_item = cJSON_GetObjectItem(event, "id"); + cJSON* pubkey_item = cJSON_GetObjectItem(event, "pubkey"); + cJSON* created_at_item = cJSON_GetObjectItem(event, "created_at"); + cJSON* kind_item = cJSON_GetObjectItem(event, "kind"); + cJSON* tags_item = cJSON_GetObjectItem(event, "tags"); + cJSON* content_item = cJSON_GetObjectItem(event, "content"); + cJSON* sig_item = cJSON_GetObjectItem(event, "sig"); + + // Validate field types + LOG_STEP("STRUCT-3", "Validating field types"); + if (!cJSON_IsString(id_item)) { + LOG_ERROR("Field 'id' is not a string (type: %d)", id_item->type); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("Field 'id' is string"); + + if (!cJSON_IsString(pubkey_item)) { + LOG_ERROR("Field 'pubkey' is not a string (type: %d)", pubkey_item->type); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + LOG_SUCCESS("Field 'pubkey' is string"); + + if (!cJSON_IsNumber(created_at_item)) { + LOG_ERROR("Field 'created_at' is not a number (type: %d)", created_at_item->type); + return NOSTR_ERROR_EVENT_INVALID_CREATED_AT; + } + LOG_SUCCESS("Field 'created_at' is number"); + + if (!cJSON_IsNumber(kind_item)) { + LOG_ERROR("Field 'kind' is not a number (type: %d)", kind_item->type); + return NOSTR_ERROR_EVENT_INVALID_KIND; + } + LOG_SUCCESS("Field 'kind' is number"); + + if (!cJSON_IsArray(tags_item)) { + LOG_ERROR("Field 'tags' is not an array (type: %d)", tags_item->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + LOG_SUCCESS("Field 'tags' is array"); + + if (!cJSON_IsString(content_item)) { + LOG_ERROR("Field 'content' is not a string (type: %d)", content_item->type); + return NOSTR_ERROR_EVENT_INVALID_CONTENT; + } + LOG_SUCCESS("Field 'content' is string"); + + if (!cJSON_IsString(sig_item)) { + LOG_ERROR("Field 'sig' is not a string (type: %d)", sig_item->type); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + LOG_SUCCESS("Field 'sig' is string"); + + // Validate hex string lengths + LOG_STEP("STRUCT-4", "Validating hex string lengths"); + const char* id_str = cJSON_GetStringValue(id_item); + const char* pubkey_str = cJSON_GetStringValue(pubkey_item); + const char* sig_str = cJSON_GetStringValue(sig_item); + + LOG_INFO("ID string: '%s' (length: %zu)", id_str, id_str ? strlen(id_str) : 0); + if (!id_str || strlen(id_str) != 64) { + LOG_ERROR("ID string invalid length (expected 64, got %zu)", id_str ? strlen(id_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("ID string length is correct (64 chars)"); + + LOG_INFO("Pubkey string: '%s' (length: %zu)", pubkey_str, pubkey_str ? strlen(pubkey_str) : 0); + if (!pubkey_str || strlen(pubkey_str) != 64) { + LOG_ERROR("Pubkey string invalid length (expected 64, got %zu)", pubkey_str ? strlen(pubkey_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + LOG_SUCCESS("Pubkey string length is correct (64 chars)"); + + LOG_INFO("Signature string: '%s' (length: %zu)", sig_str, sig_str ? strlen(sig_str) : 0); + if (!sig_str || strlen(sig_str) != 128) { + LOG_ERROR("Signature string invalid length (expected 128, got %zu)", sig_str ? strlen(sig_str) : 0); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + LOG_SUCCESS("Signature string length is correct (128 chars)"); + + // Validate hex characters + LOG_STEP("STRUCT-5", "Validating hex characters"); + LOG_INFO("Checking ID hex characters..."); + for (int i = 0; i < 64; i++) { + char c = id_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in ID at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + } + LOG_SUCCESS("ID hex characters are valid (lowercase)"); + + LOG_INFO("Checking pubkey hex characters..."); + for (int i = 0; i < 64; i++) { + char c = pubkey_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in pubkey at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + } + LOG_SUCCESS("Pubkey hex characters are valid (lowercase)"); + + LOG_INFO("Checking signature hex characters..."); + for (int i = 0; i < 128; i++) { + char c = sig_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + LOG_ERROR("Invalid hex character in signature at position %d: '%c' (0x%02x)", i, c, (unsigned char)c); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + } + LOG_SUCCESS("Signature hex characters are valid (lowercase)"); + + // Validate timestamp + LOG_STEP("STRUCT-6", "Validating timestamp"); + double created_at = cJSON_GetNumberValue(created_at_item); + LOG_INFO("Created_at timestamp: %.0f", created_at); + if (created_at < 0) { + LOG_ERROR("Invalid timestamp (negative): %.0f", created_at); + return NOSTR_ERROR_EVENT_INVALID_CREATED_AT; + } + + // Convert to human readable time + time_t timestamp = (time_t)created_at; + char time_str[100]; + struct tm* tm_info = gmtime(×tamp); + strftime(time_str, sizeof(time_str), "%Y-%m-%d %H:%M:%S UTC", tm_info); + LOG_SUCCESS("Timestamp is valid: %s", time_str); + + // Validate kind + LOG_STEP("STRUCT-7", "Validating kind"); + double kind = cJSON_GetNumberValue(kind_item); + LOG_INFO("Event kind: %.0f", kind); + if (kind < 0 || kind > 65535 || kind != (int)kind) { + LOG_ERROR("Invalid kind value: %.0f (must be integer 0-65535)", kind); + return NOSTR_ERROR_EVENT_INVALID_KIND; + } + LOG_SUCCESS("Kind is valid: %d", (int)kind); + + // Validate tags array structure + LOG_STEP("STRUCT-8", "Validating tags array structure"); + int tag_count = cJSON_GetArraySize(tags_item); + LOG_INFO("Tags array has %d elements", tag_count); + + cJSON* tag_item; + int tag_index = 0; + cJSON_ArrayForEach(tag_item, tags_item) { + if (!cJSON_IsArray(tag_item)) { + LOG_ERROR("Tag at index %d is not an array (type: %d)", tag_index, tag_item->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + + int tag_element_count = cJSON_GetArraySize(tag_item); + LOG_INFO("Tag[%d] has %d elements", tag_index, tag_element_count); + + cJSON* tag_element; + int element_index = 0; + cJSON_ArrayForEach(tag_element, tag_item) { + if (!cJSON_IsString(tag_element)) { + LOG_ERROR("Tag[%d][%d] is not a string (type: %d)", tag_index, element_index, tag_element->type); + return NOSTR_ERROR_EVENT_INVALID_TAGS; + } + const char* tag_value = cJSON_GetStringValue(tag_element); + LOG_INFO("Tag[%d][%d]: '%s'", tag_index, element_index, tag_value); + element_index++; + } + tag_index++; + } + LOG_SUCCESS("Tags array structure is valid"); + + // Validate content + LOG_STEP("STRUCT-9", "Validating content"); + const char* content_str = cJSON_GetStringValue(content_item); + LOG_INFO("Content: '%s' (length: %zu)", content_str, content_str ? strlen(content_str) : 0); + LOG_SUCCESS("Content is valid string"); + + LOG_SUCCESS("Structure validation completed successfully"); + return NOSTR_SUCCESS; +} + +/** + * Detailed signature validation with step-by-step logging + */ +int detailed_signature_validation(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("CRYPTO-1", "Starting detailed signature validation"); + + if (!event) { + LOG_ERROR("Event is null"); + return NOSTR_ERROR_INVALID_INPUT; + } + + // Get event fields + cJSON* id_item = cJSON_GetObjectItem(event, "id"); + cJSON* pubkey_item = cJSON_GetObjectItem(event, "pubkey"); + cJSON* created_at_item = cJSON_GetObjectItem(event, "created_at"); + cJSON* kind_item = cJSON_GetObjectItem(event, "kind"); + cJSON* tags_item = cJSON_GetObjectItem(event, "tags"); + cJSON* content_item = cJSON_GetObjectItem(event, "content"); + cJSON* sig_item = cJSON_GetObjectItem(event, "sig"); + + if (!id_item || !pubkey_item || !created_at_item || !kind_item || + !tags_item || !content_item || !sig_item) { + LOG_ERROR("Missing required fields for signature validation"); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + + // Create serialization array + LOG_STEP("CRYPTO-2", "Creating serialization array"); + cJSON* serialize_array = cJSON_CreateArray(); + if (!serialize_array) { + LOG_ERROR("Failed to create serialization array"); + return NOSTR_ERROR_MEMORY_FAILED; + } + + cJSON_AddItemToArray(serialize_array, cJSON_CreateNumber(0)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(pubkey_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(created_at_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(kind_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(tags_item, 1)); + cJSON_AddItemToArray(serialize_array, cJSON_Duplicate(content_item, 1)); + + LOG_SUCCESS("Serialization array created"); + + // Convert to JSON string + LOG_STEP("CRYPTO-3", "Converting to JSON string"); + char* serialize_string = cJSON_PrintUnformatted(serialize_array); + cJSON_Delete(serialize_array); + + if (!serialize_string) { + LOG_ERROR("Failed to serialize array to JSON string"); + return NOSTR_ERROR_MEMORY_FAILED; + } + + LOG_SUCCESS("JSON serialization string created"); + LOG_INFO("Serialization string (length %zu): %s", strlen(serialize_string), serialize_string); + + // Hash the serialized event + LOG_STEP("CRYPTO-4", "Computing SHA256 hash"); + unsigned char event_hash[32]; + if (nostr_sha256((const unsigned char*)serialize_string, strlen(serialize_string), event_hash) != 0) { + LOG_ERROR("SHA256 hashing failed"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + + LOG_SUCCESS("SHA256 hash computed"); + hex_dump("Event hash", event_hash, 32); + + // Convert hash to hex for event ID verification + LOG_STEP("CRYPTO-5", "Verifying event ID"); + char calculated_id[65]; + nostr_bytes_to_hex(event_hash, 32, calculated_id); + + const char* provided_id = cJSON_GetStringValue(id_item); + LOG_INFO("Calculated ID: %s", calculated_id); + LOG_INFO("Provided ID: %s", provided_id); + + if (!provided_id || strcmp(calculated_id, provided_id) != 0) { + LOG_ERROR("Event ID mismatch!"); + LOG_ERROR(" Expected: %s", calculated_id); + LOG_ERROR(" Got: %s", provided_id ? provided_id : "NULL"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_ID; + } + LOG_SUCCESS("Event ID verification passed"); + + // Prepare signature verification + LOG_STEP("CRYPTO-6", "Preparing signature verification"); + const char* pubkey_str = cJSON_GetStringValue(pubkey_item); + const char* sig_str = cJSON_GetStringValue(sig_item); + + if (!pubkey_str || !sig_str) { + LOG_ERROR("Missing pubkey or signature strings"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_STRUCTURE; + } + + // Convert hex strings to bytes + LOG_STEP("CRYPTO-7", "Converting hex strings to bytes"); + unsigned char pubkey_bytes[32]; + unsigned char sig_bytes[64]; + + if (nostr_hex_to_bytes(pubkey_str, pubkey_bytes, 32) != 0) { + LOG_ERROR("Failed to convert pubkey hex to bytes"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + LOG_SUCCESS("Pubkey hex converted to bytes"); + hex_dump("Pubkey bytes", pubkey_bytes, 32); + + if (nostr_hex_to_bytes(sig_str, sig_bytes, 64) != 0) { + LOG_ERROR("Failed to convert signature hex to bytes"); + free(serialize_string); + return NOSTR_ERROR_CRYPTO_FAILED; + } + LOG_SUCCESS("Signature hex converted to bytes"); + hex_dump("Signature bytes", sig_bytes, 64); + + // Parse the public key into secp256k1 format + LOG_STEP("CRYPTO-8", "Parsing public key into secp256k1 format"); + nostr_secp256k1_xonly_pubkey xonly_pubkey; + if (!nostr_secp256k1_xonly_pubkey_parse(&xonly_pubkey, pubkey_bytes)) { + LOG_ERROR("Failed to parse public key into secp256k1 format"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_PUBKEY; + } + LOG_SUCCESS("Public key parsed into secp256k1 format"); + + // Verify Schnorr signature + LOG_STEP("CRYPTO-9", "Verifying Schnorr signature"); + if (!nostr_secp256k1_schnorrsig_verify(sig_bytes, event_hash, &xonly_pubkey)) { + LOG_ERROR("Schnorr signature verification FAILED!"); + LOG_ERROR("This means the signature does not match the event hash and public key"); + free(serialize_string); + return NOSTR_ERROR_EVENT_INVALID_SIGNATURE; + } + + LOG_SUCCESS("Schnorr signature verification PASSED!"); + free(serialize_string); + return NOSTR_SUCCESS; +} + +/** + * Analyze event fields in detail + */ +void analyze_event_fields(cJSON* event) { + LOG_DIVIDER(); + LOG_STEP("ANALYZE-1", "Analyzing event field details"); + + cJSON* field; + cJSON_ArrayForEach(field, event) { + if (field->string) { + LOG_INFO("Field '%s':", field->string); + if (cJSON_IsString(field)) { + const char* value = cJSON_GetStringValue(field); + LOG_INFO(" Type: String"); + LOG_INFO(" Value: '%s'", value); + LOG_INFO(" Length: %zu", value ? strlen(value) : 0); + } else if (cJSON_IsNumber(field)) { + double value = cJSON_GetNumberValue(field); + LOG_INFO(" Type: Number"); + LOG_INFO(" Value: %.0f", value); + } else if (cJSON_IsArray(field)) { + int size = cJSON_GetArraySize(field); + LOG_INFO(" Type: Array"); + LOG_INFO(" Size: %d", size); + } else { + LOG_INFO(" Type: Other (%d)", field->type); + } + } + } +} + +/** + * Print hex dump of binary data + */ +void hex_dump(const char* label, const unsigned char* data, size_t len) { + LOG_INFO("%s (%zu bytes):", label, len); + for (size_t i = 0; i < len; i += 16) { + printf(" %04zx: ", i); + for (size_t j = 0; j < 16; j++) { + if (i + j < len) { + printf("%02x ", data[i + j]); + } else { + printf(" "); + } + } + printf(" |"); + for (size_t j = 0; j < 16 && i + j < len; j++) { + unsigned char c = data[i + j]; + printf("%c", (c >= 32 && c <= 126) ? c : '.'); + } + printf("|\n"); + } +} + +/** + * Mirror the exact server-side validation flow for comparison + */ +int server_style_authentication(const char* auth_header, const char* method, const char* file_hash) { + LOG_DIVIDER(); + LOG_STEP("SERVER-1", "Starting server-style authentication (mirroring main.c)"); + + if (!auth_header) { + LOG_ERROR("No authorization header provided"); + return NOSTR_ERROR_INVALID_INPUT; + } + + LOG_INFO("Server-style auth called with method: %s, hash: %s", + method ? method : "null", file_hash ? file_hash : "null"); + + // Parse authorization header (same as server) + char event_json[4096]; + LOG_STEP("SERVER-2", "Calling parse_authorization_header"); + int parse_result = parse_authorization_header(auth_header, event_json, sizeof(event_json)); + if (parse_result != NOSTR_SUCCESS) { + LOG_ERROR("Authorization header parsing failed: %d (%s)", parse_result, nostr_strerror(parse_result)); + return parse_result; + } + LOG_SUCCESS("parse_authorization_header succeeded"); + + // Parse JSON event (same as server) + LOG_STEP("SERVER-3", "Calling cJSON_Parse on JSON string"); + LOG_INFO("JSON to parse: %s", event_json); + cJSON* event = cJSON_Parse(event_json); + if (!event) { + LOG_ERROR("Failed to parse JSON event with cJSON_Parse"); + return NOSTR_ERROR_EVENT_INVALID_CONTENT; + } + LOG_SUCCESS("cJSON_Parse succeeded, event parsed"); + + // Print complete parsed JSON like server does + char* parsed_json_str = cJSON_Print(event); + LOG_INFO("Parsed JSON: %s", parsed_json_str ? parsed_json_str : "NULL"); + if (parsed_json_str) free(parsed_json_str); + + // Debug: Print event fields before validation (same as server) + cJSON* id_json = cJSON_GetObjectItem(event, "id"); + cJSON* pubkey_json = cJSON_GetObjectItem(event, "pubkey"); + cJSON* sig_json = cJSON_GetObjectItem(event, "sig"); + cJSON* kind_json = cJSON_GetObjectItem(event, "kind"); + cJSON* created_at_json = cJSON_GetObjectItem(event, "created_at"); + + LOG_STEP("SERVER-4", "Event fields before validation"); + LOG_INFO(" id: %s", id_json && cJSON_IsString(id_json) ? cJSON_GetStringValue(id_json) : "MISSING/INVALID"); + LOG_INFO(" pubkey: %s", pubkey_json && cJSON_IsString(pubkey_json) ? cJSON_GetStringValue(pubkey_json) : "MISSING/INVALID"); + LOG_INFO(" sig: %s", sig_json && cJSON_IsString(sig_json) ? cJSON_GetStringValue(sig_json) : "MISSING/INVALID"); + LOG_INFO(" kind: %d", kind_json && cJSON_IsNumber(kind_json) ? (int)cJSON_GetNumberValue(kind_json) : -999); + LOG_INFO(" created_at: %ld", created_at_json && cJSON_IsNumber(created_at_json) ? (long)cJSON_GetNumberValue(created_at_json) : -999); + + // Detailed pubkey analysis (same as server) + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_STEP("SERVER-5", "Detailed pubkey analysis"); + LOG_INFO(" Pubkey: %s", pubkey_str ? pubkey_str : "NULL"); + LOG_INFO(" Length: %zu", pubkey_str ? strlen(pubkey_str) : 0); + if (pubkey_str && strlen(pubkey_str) == 64) { + LOG_INFO(" Character analysis (first 10): "); + for (int i = 0; i < 10; i++) { + char c = pubkey_str[i]; + printf("%c(0x%02x) ", c, (unsigned char)c); + } + printf("\n"); + } + } + + // Pre-validation pubkey analysis (same as server) + LOG_STEP("SERVER-6", "Pre-validation pubkey analysis"); + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_INFO(" Pubkey: %s", pubkey_str ? pubkey_str : "NULL"); + LOG_INFO(" Length: %zu", pubkey_str ? strlen(pubkey_str) : 0); + if (pubkey_str && strlen(pubkey_str) == 64) { + LOG_INFO(" Character analysis (first 10): "); + for (int i = 0; i < 10; i++) { + char c = pubkey_str[i]; + printf("%c(%d) ", c, (int)c); + } + printf("\n"); + LOG_INFO(" Character validation test: "); + int valid_chars = 1; + for (int i = 0; i < 64; i++) { + char c = pubkey_str[i]; + if (!((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f'))) { + printf("INVALID at pos %d: %c(%d) ", i, c, (int)c); + valid_chars = 0; + } + } + if (valid_chars) { + printf("ALL VALID (lowercase hex)\n"); + } else { + printf("\n"); + } + } + } + + // Detailed validation analysis (same as server) + LOG_STEP("SERVER-7", "Starting detailed validation analysis"); + + // Test structure validation first (same as server) + LOG_INFO("Testing structure validation..."); + int structure_result = nostr_validate_event_structure(event); + LOG_INFO("nostr_validate_event_structure returned: %d (%s)", + structure_result, nostr_strerror(structure_result)); + + if (structure_result != NOSTR_SUCCESS) { + LOG_ERROR("STRUCTURE validation failed!"); + cJSON_Delete(event); + return structure_result; + } + LOG_SUCCESS("Structure validation PASSED"); + + // Test crypto validation separately (same as server) + LOG_INFO("Testing cryptographic verification..."); + int crypto_result = nostr_verify_event_signature(event); + LOG_INFO("nostr_verify_event_signature returned: %d (%s)", + crypto_result, nostr_strerror(crypto_result)); + + if (crypto_result != NOSTR_SUCCESS) { + LOG_ERROR("CRYPTO verification failed!"); + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_ERROR("Failed pubkey: %s (length: %zu)", + pubkey_str ? pubkey_str : "NULL", pubkey_str ? strlen(pubkey_str) : 0); + } + cJSON_Delete(event); + return crypto_result; + } + LOG_SUCCESS("Crypto verification PASSED"); + + // Finally test complete validation (same as server) + LOG_INFO("Testing complete validation..."); + int validation_result = nostr_validate_event(event); + LOG_INFO("nostr_validate_event returned: %d (%s)", + validation_result, nostr_strerror(validation_result)); + + if (validation_result != NOSTR_SUCCESS) { + LOG_ERROR("COMPLETE validation failed: %d (%s)", + validation_result, nostr_strerror(validation_result)); + + // Additional debug: Check specific validation issues (same as server) + if (pubkey_json && cJSON_IsString(pubkey_json)) { + const char* pubkey_str = cJSON_GetStringValue(pubkey_json); + LOG_ERROR("Pubkey length: %zu, value: %s", + pubkey_str ? strlen(pubkey_str) : 0, pubkey_str ? pubkey_str : "NULL"); + } + + cJSON_Delete(event); + return validation_result; + } + LOG_SUCCESS("Complete validation PASSED"); + + cJSON_Delete(event); + LOG_SUCCESS("Server-style authentication successful, returning NOSTR_SUCCESS"); + return NOSTR_SUCCESS; +} + +int main(void) { + LOG_DIVIDER(); + printf("🔧 COMPREHENSIVE NOSTR EVENT VALIDATION DEBUG TEST 🔧\n"); + LOG_DIVIDER(); + + // Initialize crypto library + LOG_STEP("INIT-1", "Initializing nostr library"); + if (nostr_init() != NOSTR_SUCCESS) { + LOG_ERROR("Failed to initialize nostr library"); + return 1; + } + LOG_SUCCESS("Nostr library initialized"); + + // The actual failing Authorization header from your upload attempt + const char* auth_header = "Nostr eyJraW5kIjoyNDI0MiwiaWQiOiI5NTYxNjA1YjEwNjJjZTM3ZTk1YWI5YjgxZDMwMGQ5YWQ1YmZiOWM1NDRhZTM5NWUxZWI0MWYwMDBjN2Q4OWY2IiwicHVia2V5IjoiNzliZTY2N2VmOWRjYmJhYzU1YTA2Mjk1Y2U4NzBiMDcwMjliZmNkYjJkY2UyOGQ5NTlmMjgxNWIxNmY4MTc5OCIsImNyZWF0ZWRfYXQiOjE3NTU2ODU0MjgsInRhZ3MiOltbInQiLCJ1cGxvYWQiXSxbIngiLCI4NDcxNjE3MWJhYjE2YWQwMjFiZDg5NTMwNTAxODlmZTYwNzU5MTc0MzZjZDExY2M5MzNmMDIxYmJjNWQ1YjBiIl0sWyJleHBpcmF0aW9uIiwiMTc1NTY4OTAyOCJdXSwiY29udGVudCI6IiIsInNpZyI6Ijk1MzE2YWI3NWY4ZDAyYmI5OTVhMTI0OGMyNzRiOTlmOWJjNWRjMGFmNTY0OWU2OTQ5MDE1ZDA2OTkwNGQ0YmRmM2EzYzc5NDI3YWM4MjQ1Njk4NmEyZTkzN2IxZDI1YjZkMmVlOGVlMWU0NDZhODQ5Y2IxOTc3NGRmOTQ4ZWFkIn0="; + + LOG_INFO("Testing Authorization header:"); + printf("%s\n", auth_header); + + // Step 1: Parse the Authorization header + LOG_DIVIDER(); + LOG_STEP("PARSE-1", "Parsing Authorization header"); + char event_json[4096]; + int parse_result = parse_authorization_header(auth_header, event_json, sizeof(event_json)); + if (parse_result != NOSTR_SUCCESS) { + LOG_ERROR("Parse failed with error: %d (%s)", parse_result, nostr_strerror(parse_result)); + nostr_cleanup(); + return 1; + } + LOG_SUCCESS("Authorization header parsed successfully"); + LOG_INFO("Decoded JSON: %s", event_json); + + // Step 2: Parse the JSON + LOG_STEP("PARSE-2", "Parsing JSON string"); + cJSON* event = cJSON_Parse(event_json); + if (!event) { + LOG_ERROR("JSON parsing failed - invalid JSON syntax"); + nostr_cleanup(); + return 1; + } + LOG_SUCCESS("JSON parsing successful"); + + // Step 3: Analyze event fields + analyze_event_fields(event); + + // Step 4: Detailed structure validation + LOG_STEP("MAIN-1", "Running detailed structure validation"); + int structure_result = detailed_structure_validation(event); + if (structure_result != NOSTR_SUCCESS) { + LOG_ERROR("Structure validation failed: %d (%s)", structure_result, nostr_strerror(structure_result)); + LOG_ERROR("VALIDATION FAILED AT STRUCTURE LEVEL"); + cJSON_Delete(event); + nostr_cleanup(); + return 1; + } + LOG_SUCCESS("Detailed structure validation PASSED"); + + // Step 5: Detailed signature validation + LOG_STEP("MAIN-2", "Running detailed signature validation"); + int crypto_result = detailed_signature_validation(event); + if (crypto_result != NOSTR_SUCCESS) { + LOG_ERROR("Signature validation failed: %d (%s)", crypto_result, nostr_strerror(crypto_result)); + LOG_ERROR("VALIDATION FAILED AT CRYPTOGRAPHIC LEVEL"); + cJSON_Delete(event); + nostr_cleanup(); + return 1; + } + LOG_SUCCESS("Detailed signature validation PASSED"); + + // Step 6: Run standard nostr validation for comparison + LOG_DIVIDER(); + LOG_STEP("COMPARE-1", "Running standard nostr_validate_event for comparison"); + int validation_result = nostr_validate_event(event); + LOG_INFO("nostr_validate_event result: %d (%s)", validation_result, nostr_strerror(validation_result)); + + if (validation_result == NOSTR_SUCCESS) { + LOG_SUCCESS("Standard validation PASSED - matches detailed validation"); + } else { + LOG_ERROR("Standard validation FAILED - inconsistent with detailed validation!"); + LOG_ERROR("This indicates a potential issue in the standard validation logic"); + } + + // Step 7: Run server-style authentication for direct comparison + LOG_STEP("COMPARE-2", "Running server-style authentication (exact mirror of server code)"); + int server_result = server_style_authentication(auth_header, "upload", "84716171bab16ad021bd8953050189fe6075917436cd11cc933f021bbc5d5b0b"); + LOG_INFO("server_style_authentication result: %d (%s)", server_result, nostr_strerror(server_result)); + + if (server_result == NOSTR_SUCCESS) { + LOG_SUCCESS("Server-style validation PASSED"); + } else { + LOG_ERROR("Server-style validation FAILED - this shows exactly where server diverges!"); + } + + // Final summary + LOG_DIVIDER(); + if (structure_result == NOSTR_SUCCESS && crypto_result == NOSTR_SUCCESS) { + LOG_SUCCESS("🎉 ALL DETAILED VALIDATIONS PASSED! Event is completely valid."); + printf("✅ Structure validation: PASSED\n"); + printf("✅ Signature validation: PASSED\n"); + printf("✅ Standard validation: %s\n", + (validation_result == NOSTR_SUCCESS) ? "PASSED" : "FAILED (inconsistent!)"); + printf("✅ Server-style validation: %s\n", + (server_result == NOSTR_SUCCESS) ? "PASSED" : "FAILED (shows server issue!)"); + } else { + LOG_ERROR("❌ VALIDATION FAILED!"); + printf("Structure validation: %s (%d)\n", + (structure_result == NOSTR_SUCCESS) ? "PASSED" : "FAILED", structure_result); + printf("Signature validation: %s (%d)\n", + (crypto_result == NOSTR_SUCCESS) ? "PASSED" : "FAILED", crypto_result); + printf("Server-style validation: %s (%d)\n", + (server_result == NOSTR_SUCCESS) ? "PASSED" : "FAILED", server_result); + } + + LOG_DIVIDER(); + LOG_SUCCESS("🔍 DETAILED COMPARISON COMPLETE"); + if (structure_result == NOSTR_SUCCESS && crypto_result == NOSTR_SUCCESS && + validation_result == NOSTR_SUCCESS && server_result == NOSTR_SUCCESS) { + LOG_SUCCESS("🎯 ALL VALIDATION METHODS AGREE: Event is valid"); + } else { + LOG_ERROR("⚠️ VALIDATION METHODS DISAGREE: Check individual results above"); + } + LOG_DIVIDER(); + + cJSON_Delete(event); + nostr_cleanup(); + return (structure_result == NOSTR_SUCCESS && crypto_result == NOSTR_SUCCESS) ? 0 : 1; +} \ No newline at end of file diff --git a/test_hash_match.txt b/test_hash_match.txt new file mode 100644 index 0000000..b5335c5 --- /dev/null +++ b/test_hash_match.txt @@ -0,0 +1 @@ +test data for hash match