GithubHelp home page GithubHelp logo

Comments (9)

ferry avatar ferry commented on July 2, 2024 2

it is the + character that causes your problem. it should be replaced by %2B, thus:

RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg%2B1_all.deb"
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/postgresql-$PG_MAJOR-repmgr_4.0.6-2.pgdg%2B1_amd64.deb"

from postdock.

adgeese avatar adgeese commented on July 2, 2024 2

Upstream is working when:

echo "Change Upstream.."
fgrep -iR "install_deb_pkg" -lz | xargs sed -i 's/http:\/\/atalia\.postgresql\.org\/morgue\//https:\/\/apt-archive.postgresql.org\/pub\/repos\/apt\/pool\/main\//g'
echo "Change + to %2B in the URL to stop Forbidden"
fgrep -iR "4.0.6-2.pgdg+1" -lz | xargs sed -i 's/pgdg+1/pgdg%2B1/g'

from postdock.

ferry avatar ferry commented on July 2, 2024 1

you have to add /index.html to see the content of the dirs on this repository, for example:

https://apt-archive.postgresql.org/pub/repos/apt/pool/main/b/barman/index.html

from postdock.

bergner avatar bergner commented on July 2, 2024 1

Besides the issues already mentioned here there are other problems as well.

  • Some pgdg80+1 packages don't exist on apt-archive. In my tests I was referencing pgdg+1 instead.
  • There are some dpkg dependency problems.

A suggested merge request which uses apt-archive and also fixes the above problems is available at #266. If you just want to try it (if the merge request isn't merged) you can git clone my fork https://github.com/bergner/PostDock. docker-compose build works for all variants.

from postdock.

stegben avatar stegben commented on July 2, 2024

I got 403 while accessing https://apt-archive.postgresql.org/pub/repos/apt/pool/main
Is there any alternatives?

from postdock.

stegben avatar stegben commented on July 2, 2024

Thanks lol, I feel so dumb now...

from postdock.

stegben avatar stegben commented on July 2, 2024

@ferry I can download the deb file through browser (Chrome 81.0) but failed to download via wget when building docker image. What am I missing?

I was building the image using this Dockerfile, what I did was replacing these lines into:

RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb" 
RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/postgresql-$PG_MAJOR-repmgr_4.0.6-2.pgdg+1_amd64.deb" 

After modifying, I ran:
docker build -f ./src/Postgres-latest.Dockerfile -t postgres:new1 ./src
What I got is:

# ...previos steps were success
Step 5/55 : RUN install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb"
 ---> Running in 6c973dc935c8
--2020-04-29 06:47:47--  https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb
Resolving apt-archive.postgresql.org (apt-archive.postgresql.org)... 13.227.74.21, 13.227.74.63, 13.227.74.35, ...
Connecting to apt-archive.postgresql.org (apt-archive.postgresql.org)|13.227.74.21|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-04-29 06:47:53 ERROR 403: Forbidden.

The command '/bin/sh -c install_deb_pkg "https://apt-archive.postgresql.org/pub/repos/apt/pool/main/r/repmgr/repmgr-common_4.0.6-2.pgdg+1_all.deb"' returned a non-zero code: 8

from postdock.

stegben avatar stegben commented on July 2, 2024

Thanks a lot! It works. You saved my day.

from postdock.

ruslankrivoshein avatar ruslankrivoshein commented on July 2, 2024

Now you should

RUN install_deb_pkg "atalia.postgresql.org/morgue/repmgr-common_5.0.0-4.pgdg+1_all.deb"
RUN install_deb_pkg "atalia.postgresql.org/morgue/postgresql-$PG_MAJOR-repmgr_5.0.0-4.pgdg+1_amd64.deb"

UPD:
There is a lot of errors with links to packages...

from postdock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.