Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Something odd with file registration #362

Open
pontus opened this issue Mar 21, 2023 · 0 comments
Open

Something odd with file registration #362

pontus opened this issue Mar 21, 2023 · 0 comments

Comments

@pontus
Copy link
Contributor

pontus commented Mar 21, 2023

I'm not sure what kind of bug this is (although concurrency would be a first guess) or in where the fault lies, but something is signalling failure for the database queries, which seems wrong.It

(It seems I had multiple concurrent runs, uploading the same empty file, which may be less than useful, but I still don't like that pq error message.)

{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/te
stdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 67f34088-3eec-4515-bc33-d9
5d443707e9","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"marking file  as 'uploaded' in database","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/te
stdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 05cb1e5e-6d1c-4efb-9677-e6
5d1a54d9bf","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"marking file  as 'uploaded' in database","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/te
stdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 3da8d574-5801-4adb-b422-f9
ca8b05458c","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"marking file  as 'uploaded' in database","time":"2023-03-21T10:17:43Z"}
{"level":"error","msg":"pq: invalid input syntax for type uuid: \"\"","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"redirect answer","time":"2023-03-21T10:17:43Z"}
{"level":"error","msg":"pq: invalid input syntax for type uuid: \"\"","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"redirect answer","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 86c4e8d9-8851-4303-808c-e30e5a05fda2","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"marking file  as 'uploaded' in database","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 07798a4c-fe47-4e0a-95d2-fce801391b69","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"marking file  as 'uploaded' in database","time":"2023-03-21T10:17:43Z"}
{"level":"error","msg":"pq: invalid input syntax for type uuid: \"\"","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"redirect answer","time":"2023-03-21T10:17:43Z"}
{"level":"error","msg":"pq: invalid input syntax for type uuid: \"\"","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"redirect answer","time":"2023-03-21T10:17:43Z"}
{"level":"error","msg":"pq: invalid input syntax for type uuid: \"\"","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"redirect answer","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"create message","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"create message","time":"2023-03-21T10:17:43Z"}
{"level":"debug","msg":"create message","time":"2023-03-21T10:17:43Z"}
{"level":"info","msg":"user [email protected] with pilot \u003cnil\u003e uploaded file 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile with checksum f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e at 2023-03-21 10:17:43.43417045 +0000 UTC m=+4696.970727983","time":"2023-03-21T10:17:43Z"}
{"level":"info","msg":"user [email protected] with pilot \u003cnil\u003e uploaded file 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile with checksum f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e at 2023-03-21 10:17:43.434527684 +0000 UTC m=+4696.971085247","time":"2023-03-21T10:17:43Z"}
{"level":"info","msg":"user [email protected] with pilot \u003cnil\u003e uploaded file 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile with checksum f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e at 2023-03-21 10:17:43.434597055 +0000 UTC m=+4696.971154618","time":"2023-03-21T10:17:43Z"}
d41d8cd98f00b204e9800998ecf8427e
d41d8cd98f00b204e9800998ecf8427e
d41d8cd98f00b204e9800998ecf8427e
{"level":"debug","msg":"Delivered message: {\"operation\":\"upload\",\"user\":\"[email protected]\",\"filepath\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8_elixir-europe.org/testdir/internal/testfile\",\"filesize\":0,\"encrypted_checksums\":[{\"type\":\"sha256\",\"value\":\"f215faf9d88b7f0a881632ee22459ee452a296c808d261b6cc993d3a1fd0600e\"}]}, with correlation-ID: 6ecc3aa6-bd6d-465b-ad8f-1436d49ae89e","time":"2023-03-21T10:17:43Z"}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant