nextcloud-spreed-signaling icon indicating copy to clipboard operation
nextcloud-spreed-signaling copied to clipboard

docker build fails for new janus version

Open Lebernd opened this issue 2 years ago • 3 comments

When running docker-compose build the build process fails with:

config.status: error: in `/tmp/usrsctp':
config.status: error: Something went wrong bootstrapping makefile fragments
    for automatic dependency tracking.  If GNU make was not used, consider
    re-running the configure script with MAKE="gmake" (or whatever is
    necessary).  You can also try re-running configure with the
    '--disable-dependency-tracking' option to at least be able to build
    the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
ERROR: Service 'janus' failed to build: The command '/bin/sh -c cd /tmp &&     git clone https://github.com/sctplab/usrsctp &&     cd usrsctp &&     git checkout $USRSCTP_VERSION &&     ./bootstrap &&     ./configure --prefix=/usr &&     make && make install' returned a non-zero code: 1

I was able to build the v0.5.0 with the old version of janus from 0.4.1. A testcall between two users was sucessful.

Running this on the latest UCS:

root@ucs-50:/opt/github/nextcloud-spreed-signaling# docker version
Client:
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.13.8
 Git commit:        afacb8b7f0
 Built:             Thu Mar 25 11:28:59 2021
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.8
  Git commit:       afacb8b7f0
  Built:            Thu Mar 25 11:27:30 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.3-0ubuntu2A~5.0.0.202102242054
  GitCommit:        
 runc:
  Version:          spec: 1.0.1-dev
  GitCommit:        
 docker-init:
  Version:          0.18.0
  GitCommit:  

Lebernd avatar Jun 18 '22 20:06 Lebernd

While this is the service janus from the docker-compose file, the command builds the component usrsctp: ERROR: Service 'janus' failed to build: The command '/bin/sh -c cd /tmp && git clone https://github.com/sctplab/usrsctp && cd usrsctp && git checkout $USRSCTP_VERSION && ./bootstrap && ./configure --prefix=/usr && make && make install' returned a non-zero code: 1

The docker-compose file is covered by CI (since #259) and I could successfully run a local build on Ubuntu 20.04 with

Client: Docker Engine - Community
 Version:           20.10.17
 API version:       1.41
 Go version:        go1.17.11
 Git commit:        100c701
 Built:             Mon Jun  6 23:02:57 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.17
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.11
  Git commit:       a89b842
  Built:            Mon Jun  6 23:01:03 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.6
  GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
 runc:
  Version:          1.1.2
  GitCommit:        v1.1.2-0-ga916309
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Which OS are you using?

fancycode avatar Jun 20 '22 06:06 fancycode

Latest UCS Version 5.0-1 errata 339 - it is debian 10 based.

Lebernd avatar Jun 20 '22 07:06 Lebernd

Unfortunately I don't have a way to test on this UCS platform.

Could you please provide the whole output of docker-compose build and the contents of the config.log of the failed build?

fancycode avatar Jul 04 '22 12:07 fancycode

Feel free to reopen with more details if this still is a problem.

fancycode avatar Aug 30 '22 08:08 fancycode

Just stumbled across this. This happens when the docker version is too old, see https://stackoverflow.com/questions/68774363/docker-build-fail-on-one-of-two-systems So either go with alpine 3.13 or upgrade the environment (which should be the better option...). Just leaving this here for the record.

SystemKeeper avatar Feb 22 '23 20:02 SystemKeeper