doodba: Possible error with tecnativa/odoo-base:10

I cloned the repo, branch scaffolding, as in the “quick guide”:

git clone -b scaffolding https://github.com/Tecnativa/docker-odoo-base.git ocb-and-all-oca-repos
Clonar en «ocb-and-all-oca-repos»...
remote: Counting objects: 1356, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 1356 (delta 6), reused 19 (delta 4), pack-reused 1325
Receiving objects: 100% (1356/1356), 241.72 KiB | 0 bytes/s, done.
Resolving deltas: 100% (810/810), done.
Comprobando la conectividad… hecho.
$ cd ocb-and-all-oca-repos
$ ln -s devel.yaml docker-compose.yml
$ docker-compose build --pull
smtp uses an image, skipping
wdb uses an image, skipping
db uses an image, skipping
inbox uses an image, skipping
Building odoo
Step 1/1 : FROM tecnativa/odoo-base:10.0
10.0: Pulling from tecnativa/odoo-base
aa18ad1a0d33: Pull complete
83c2ca70d25d: Pull complete
767589c3ae5b: Pull complete
45f917242ff7: Pull complete
ec382c11036e: Pull complete
1590cc52bced: Pull complete
c833f2693ef1: Pull complete
ed81f87eb8fa: Pull complete
9ad0a7c006d3: Pull complete
bb76283ff010: Pull complete
3b12f1092ab9: Pull complete
f3be112150a1: Pull complete
fa2369f48020: Pull complete
44d442c24251: Pull complete
0fd9ea64ab24: Pull complete
f857b4b3f64b: Pull complete
c8fdda65ddd7: Pull complete
Digest: sha256:586a33b2842b73f7ef348c4e9c3c1d9b504e44ebc7d065dceda420c0d696087f
Status: Downloaded newer image for tecnativa/odoo-base:10.0
# Executing 26 build triggers...
Step 1/1 : ENTRYPOINT /opt/odoo/common/entrypoint
 ---> Running in 90fcf07dabba
Step 1/1 : CMD /usr/local/bin/odoo
 ---> Running in 7ff4f08c3d3e
Step 1/1 : ARG AGGREGATE=true
 ---> Running in cc4161d18caa
Step 1/1 : ARG DEPTH_DEFAULT=1
 ---> Running in 0f3f1b149aa2
Step 1/1 : ARG DEPTH_MERGE=100
 ---> Running in 8b25dbdbbaaf
Step 1/1 : ARG CLEAN=true
 ---> Running in d06ea2ee17d0
Step 1/1 : ARG COMPILE=true
 ---> Running in 2439778b5127
Step 1/1 : ARG CONFIG_BUILD=true
 ---> Running in 956d427ee1a8
Step 1/1 : ARG PIP_INSTALL_ODOO=true
 ---> Running in 2de5f7a16037
Step 1/1 : ARG ADMIN_PASSWORD=admin
 ---> Running in 0424878f5121
Step 1/1 : ARG SMTP_SERVER=smtp
 ---> Running in 0a479a334720
Step 1/1 : ARG PROXY_MODE=false
 ---> Running in b07bef938888
Step 1/1 : ARG WITHOUT_DEMO=all
 ---> Running in 03c90e44487e
Step 1/1 : ARG PYTHONOPTIMIZE=1
 ---> Running in 3568f33a579d
Step 1/1 : ENV PYTHONOPTIMIZE "$PYTHONOPTIMIZE"
 ---> Running in 0cefe4380063
Step 1/1 : ARG PGUSER=odoo
 ---> Running in 93d89b188d60
Step 1/1 : ARG PGPASSWORD=odoopassword
 ---> Running in 435b9a5eb1f1
Step 1/1 : ARG PGHOST=db
 ---> Running in f2a95e9af646
Step 1/1 : ARG PGDATABASE=prod
 ---> Running in adc083da721c
Step 1/1 : ENV ADMIN_PASSWORD "$ADMIN_PASSWORD" UNACCENT "$UNACCENT" PGUSER "$PGUSER" PGPASSWORD "$PGPASSWORD" PGHOST "$PGHOST" PGDATABASE "$PGDATABASE" PROXY_MODE "$PROXY_MODE" SMTP_SERVER "$SMTP_SERVER" WITHOUT_DEMO "$WITHOUT_DEMO"
 ---> Running in 7c5e92f4a362
Step 1/1 : ARG LOCAL_CUSTOM_DIR=./custom
 ---> Running in 238cd27f62d0
Step 1/1 : COPY $LOCAL_CUSTOM_DIR /opt/odoo/custom
Step 1/1 : ARG LOG_LEVEL=INFO
 ---> Running in f8dfad9c826a
Step 1/1 : RUN mkdir -p /opt/odoo/custom/ssh             && ln -s /opt/odoo/custom/ssh ~root/.ssh             && chmod -R u=rwX,go= /opt/odoo/custom/ssh             && sync
 ---> Running in 8f6ccd840852
Step 1/1 : RUN /opt/odoo/common/build
 ---> Running in 7cfb70f47382
INFO:docker-odoo-base:No installable requirements found in /opt/odoo/custom/dependencies/apt_build.txt
INFO:docker-odoo-base:No installable requirements found in /opt/odoo/custom/dependencies/npm.txt
INFO:docker-odoo-base:Executing: ['pip', 'install', '--upgrade', '--no-cache-dir', '-r', '/opt/odoo/custom/dependencies/pip.txt']
Collecting checksumdir (from -r /opt/odoo/custom/dependencies/pip.txt (line 1))
  Downloading checksumdir-1.1.4.tar.gz
Collecting unicodecsv (from -r /opt/odoo/custom/dependencies/pip.txt (line 2))
  Downloading unicodecsv-0.14.1.tar.gz
Collecting unidecode (from -r /opt/odoo/custom/dependencies/pip.txt (line 3))
  Downloading Unidecode-0.04.21-py2.py3-none-any.whl (228kB)
Collecting requests (from -r /opt/odoo/custom/dependencies/pip.txt (line 4))
  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
Collecting xlsxwriter (from -r /opt/odoo/custom/dependencies/pip.txt (line 5))
  Downloading XlsxWriter-1.0.0-py2.py3-none-any.whl (139kB)
Requirement already up-to-date: idna<2.7,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->-r /opt/odoo/custom/dependencies/pip.txt (line 4))
Requirement already up-to-date: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->-r /opt/odoo/custom/dependencies/pip.txt (line 4))
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->-r /opt/odoo/custom/dependencies/pip.txt (line 4))
Requirement already up-to-date: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->-r /opt/odoo/custom/dependencies/pip.txt (line 4))
Installing collected packages: checksumdir, unicodecsv, unidecode, requests, xlsxwriter
  Running setup.py install for checksumdir: started
    Running setup.py install for checksumdir: finished with status 'done'
  Running setup.py install for unicodecsv: started
    Running setup.py install for unicodecsv: finished with status 'done'
  Found existing installation: requests 2.11.1
    Uninstalling requests-2.11.1:
      Successfully uninstalled requests-2.11.1
  Found existing installation: XlsxWriter 0.9.3
    Uninstalling XlsxWriter-0.9.3:
      Successfully uninstalled XlsxWriter-0.9.3
Successfully installed checksumdir-1.1.4 requests-2.18.4 unicodecsv-0.14.1 unidecode-0.4.21 xlsxwriter-1.0.0
INFO:docker-odoo-base:No installable requirements found in /opt/odoo/custom/dependencies/gem.txt
INFO:docker-odoo-base:No installable requirements found in /opt/odoo/custom/dependencies/apt.txt
WARNING:docker-odoo-base:Not aggregating code repositories
WARNING:docker-odoo-base:Not cleaning garbage
WARNING:docker-odoo-base:Not compiling Python code
WARNING:docker-odoo-base:Skipping Odoo config generation - will perform during entrypoint.
INFO:docker-odoo-base:Installing Odoo from /opt/odoo/custom/src/odoo
WARNING:docker-odoo-base:Blindly symlinking odoo executable
INFO:docker-odoo-base:No removable requirements found in /opt/odoo/custom/dependencies/apt_build.txt
INFO:docker-odoo-base:Executing: rm -Rf ~/.npm /tmp/*
INFO:docker-odoo-base:Executing: rm -Rf ~/.gem /var/lib/gems/*/cache/
Traceback (most recent call last):
  File "/opt/odoo/common/build", line 26, in <module>
    subprocess.check_call(command)
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
ERROR: Service 'odoo' failed to build: The command '/opt/odoo/common/build' returned a non-zero code: 1

OS, Docker and docker-compose versions:

$ lsb_release --all
LSB Version:	core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID:	LinuxMint
Description:	Linux Mint 18.1 Serena
Release:	18.1
Codename:	serena
$ docker --version
Docker version 17.05.0-ce, build 89658be
$ docker-compose --version
docker-compose version 1.11.1, build 7c5d5e4

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

It works for me, too.

Many thanks, @Yajo.

PD: sorry for the delay, but i have a lot of work 😦

Hi!

I had the same problem, using the LOG_LEVEL=DEBUG:

INFO:docker-odoo-base:Executing: rm -Rf ~/.npm /tmp/*
INFO:docker-odoo-base:Executing: rm -Rf ~/.gem /var/lib/gems/*/cache/
DEBUG:docker-odoo-base:Executing /opt/odoo/custom/build.d/.empty
Traceback (most recent call last):
  File "/opt/odoo/common/build", line 29, in <module>
    subprocess.check_call(command)
  File "/usr/lib/python3.5/subprocess.py", line 266, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.5/subprocess.py", line 247, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1282, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 8] Exec format error
ERROR: Service 'odoo' failed to build: The command '/opt/odoo/common/build' returned a non-zero code: 1

A simple rm odoo/custom/build.d/.empty solved it 😃

Still I’m unable to reproduce 😕