Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build doodba:8.0-onbuild Image #544

Open
samsagaz opened this issue Mar 31, 2023 · 3 comments
Open

Cannot build doodba:8.0-onbuild Image #544

samsagaz opened this issue Mar 31, 2023 · 3 comments

Comments

@samsagaz
Copy link

samsagaz commented Mar 31, 2023

Describe the bug
I cannot build the doodba image because debian Wheezy and Jessie were recently removed from the mirror network.

To Reproduce

Just run
invoke img-build
or
docker-compose build --no-cache

 => ERROR [5/1] RUN /opt/odoo/common/build && sync                                                                                                                                                                                                     1969.5s
------
 > [5/1] RUN /opt/odoo/common/build && sync:
#0 0.415 Updating certificates in /etc/ssl/certs... 0 added, 1 removed; done.
#0 1.234 Running hooks in /etc/ca-certificates/update.d....done.
#0 1.255 doodba WARNING: Not aggregating code repositories
#0 1.260
#0 1.260 WARNING: apt does not have a stable CLI interface yet. Use with caution in scripts.
#0 1.260
#0 1131.7 Ign http://deb.debian.org jessie InRelease
#0 1131.7 Ign http://deb.debian.org jessie Release.gpg
#0 1131.7 Ign http://deb.debian.org jessie Release
#0 1131.8 Ign http://security.debian.org jessie/updates InRelease
#0 1132.0 Err http://deb.debian.org jessie/main amd64 Packages
#0 1132.0
#0 1132.2 Err http://deb.debian.org jessie/main amd64 Packages
#0 1132.2
#0 1132.2 Get:1 https://deb.nodesource.com jessie InRelease [4607 B]
#0 1470.3 Err http://deb.debian.org jessie/main amd64 Packages
#0 1470.3
#0 1470.3 Ign http://security.debian.org jessie/updates Release.gpg
#0 1470.3 Get:2 https://apt-archive.postgresql.org jessie-pgdg-archive InRelease [4697 B]
#0 1470.6 Err http://deb.debian.org jessie/main amd64 Packages
#0 1470.6
#0 1470.6 Ign http://security.debian.org jessie/updates Release
#0 1470.8 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1470.8
#0 1471.0 Err http://deb.debian.org jessie/main amd64 Packages
#0 1471.0   404  Not Found
#0 1471.2 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.2
#0 1471.5 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.5
#0 1471.9 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1471.9
#0 1472.4 Err http://security.debian.org jessie/updates/main amd64 Packages
#0 1472.4   404  Not Found [IP: 151.101.130.132 80]
#0 1634.0 Get:3 https://deb.nodesource.com jessie/main Sources [20 B]
#0 1967.3 Get:4 https://deb.nodesource.com jessie/main amd64 Packages [1005 B]
#0 1968.3 Get:5 https://apt-archive.postgresql.org jessie-pgdg-archive/main Sources [422 kB]
#0 1969.0 Get:6 https://apt-archive.postgresql.org jessie-pgdg-archive/main amd64 Packages [1142 kB]
#0 1969.5 W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages  404  Not Found
#0 1969.5
#0 1969.5 W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.130.132 80]
#0 1969.5
#0 1969.5 E: Some index files failed to download. They have been ignored, or old ones used instead.
#0 1969.5 Fetched 1575 kB in 13min 57s (1879 B/s)
#0 1969.5 Traceback (most recent call last):
#0 1969.5   File "/opt/odoo/common/build", line 30, in <module>
#0 1969.5     subprocess.check_call(command)
#0 1969.5   File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
#0 1969.5     raise CalledProcessError(retcode, cmd)
#0 1969.5 subprocess.CalledProcessError: Command '/opt/odoo/custom/build.d/20-update-pg-repos' returned non-zero exit status 100

I think that 7.0 wont work either

@ap-wtioit
Copy link
Contributor

Images for 8.0 have been not supported for quite some time. They are not build/tested since 20dfe8a and not included anymore with 1ad4dfc.

Some things you can try:

  • use archive.debian.org for debian jessie
  • setup a new image with a modern ubuntu / debian and python2.7

@orentol
Copy link

orentol commented Aug 23, 2023

@samsagaz Debian Jessie is very old and apt sources are no more reachable.
You need to build and host fixed image yourself.

Or you can try to add proper sources in existing build.
Create file named:
10-add-jessie_backport

hier:
[docker_project]/odoo/custom/build.d/10-add-jessie_backport

and add this inside:

printf "\nAcquire::Check-Valid-Until "false";" >> /etc/apt/apt.conf
printf "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian jessie-backports main\ndeb [check-valid-until=no] http://archive.debian.org/debian-security jessie/updates main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian-security jessie/updates main\ndeb [check-valid-until=no] http://archive.debian.org/debian jessie main\ndeb-src [check-valid-until=no] http://archive.debian.org/debian jessie main" > /etc/apt/sources.list

@manuel-florido
Copy link
Contributor

@samsagaz Hello, I am having the same issue with v.10. Did you solve the problem?

I tried adding the "10-add-jessie_backport" file like @orentol and I modified the Dockerfile adding:

  • Archived repositories for Debian.
  • Archved repositories for postgresql.
  • "--force-yes" in all the apt-get install lines.

When I build the image I get this error with the bin-deprecated/install.sh file:

  • The following packages have unmet dependencies:
    libpq-dev : Depends: libpq5 (= 14.5-1.pgdg90+1) but 9.4.26-0+deb8u1 is to be installed

Do you know how to build the image correctly?

Thanks!

@yajo @pedrobaeza

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants