Skip to content

302 Found redirect response during installation #274

@markgene

Description

@markgene

Describe the bug
The database is not installed. In docker log, I saw:

...
+ curl -o /tmp/uta_20210129b.pgd.gz.tmp https://dl.biocommons.org/uta/uta_20210129b.pgd.gz
  % 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   154  100   154    0     0    348      0 --:--:-- --:--:-- --:--:--   349
+ mv /tmp/uta_20210129b.pgd.gz.tmp /tmp/uta_20210129b.pgd.gz
+ cat
+ gzip -cdq
+ psql -1e -U uta_admin -d uta -v ON_ERROR_STOP=1

gzip: stdin: not in gzip format
+ gzip -cdq
+ psql -1e -U uta_admin -d uta -v ON_ERROR_STOP=1
...

I expected to see a larger file size than 154, so I check the URL directly, which gave:

<html>
<head><title>302 Found</title></head>
<body>
<center><h1>302 Found</h1></center>
<hr><center>nginx/1.24.0 (Ubuntu)</center>
</body>
</html>

To Reproduce
Steps to reproduce the behavior:

uta_v=uta_20241220
sudo docker pull biocommons/uta:$uta_v

sudo docker run -d -e POSTGRES_PASSWORD=uta_20210129b_password --name uta_20210129b -p 15032:5432 --restart=always biocommons/uta:uta_20210129b
sudo docker logs $uta_v


curl https://dl.biocommons.org/uta/uta_20210129b.pgd.gz

Expected behavior
I expected the data file is downloaded and database is installed.

Pinned by korikuzma

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions