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

Something odd with file registration #362

@pontus

Description

@pontus

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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org 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 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org 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 779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org 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\":\"779af7967d1a5e12ccc8e8f2da09868c73ebcaa8@elixir-europe.org\",\"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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions