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

Docker installation not working #2530

Open
daniel-mohr opened this issue Mar 15, 2024 · 1 comment
Open

Docker installation not working #2530

daniel-mohr opened this issue Mar 15, 2024 · 1 comment

Comments

@daniel-mohr
Copy link

Following Docker installation does not work:

docker-compose -f docker-compose.full.yml build results in:

...
ERROR: failed to solve: process "/bin/sh -c zenodo npm --pinned-file /code/zenodo/package.pinned.json     && cd ${INVENIO_INSTANCE_PATH}/static     && npm install     && cd /code/zenodo     && zenodo collect -v     && zenodo assets build" did not complete successfully: exit code: 1
ERROR: Service 'static' failed to build : Build failed

In the file docker/statsd/Dockerfile the line

RUN npm install -g statsd git://github.com/markkimsal/statsd-elasticsearch-backend.git

does not work. The reason is that github
removed unencrypted Git protocol for quiet a while ago! (cf. The Git Protocol)

Fixing this by

RUN npm install -g statsd https://github.com/webcanvas/angular-schema-form-ckeditor.git

seems not to be enough, still:

...
21.78 Warn: 'angular-schema-form-ckeditor' version ['git://github.com/webcanvas/angular-schema-form-ckeditor.git#b213fa934759a18b1436e23bfcbd9f0f730f1296', 'git://github.com/webcanvas/angular-schema-form-ckeditor.git#b213fa934759a18b1436e23bfcbd9f0f730f1296'] resolved to: 'git://github.com/webcanvas/angular-schema-form-ckeditor.git#b213fa934759a18b1436e23bfcbd9f0f730f1296'  
...
153.2 npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/webcanvas/angular-schema-form
-ckeditor.git /root/.npm/_git-remotes/git-github-com-webcanvas-angular-schema-form-ckeditor-git-b213fa934759a18b1436e23bfcbd9f
0f730f1296-b1e2a8ac: Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-webcanvas-angular-schema-form-ckedit
or-git-b213fa934759a18b1436e23bfcbd9f0f730f1296-b1e2a8ac'...
...

It seems adding git config --global url."https://".insteadOf git:// to Dockerfile and docker/statsd/Dockerfile is a workaround to make old software still build.

docker-compose -f docker-compose.full.yml up -d fails, too (see #2271).

And then docker-compose -f docker-compose.full.yml run --rm web bash /code/zenodo/scripts/init.sh also fails:

...
elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x73981deb3110>: Failed to establish a new connection: [Errno -2] Name or service not known) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x73981deb3110>: Failed to establish a new connection: [Errno -2] Name or service not known)
ERROR: 1
...

It seems 4d3bf14 creates here a bug!

@daniel-mohr daniel-mohr changed the title [Docker installation](https://zenodo.readthedocs.io/en/latest/installation.html) not working Docker installation not working Mar 15, 2024
daniel-mohr added a commit to daniel-mohr/zenodo that referenced this issue Mar 15, 2024
daniel-mohr added a commit to daniel-mohr/zenodo that referenced this issue Mar 15, 2024
@kuhlaid
Copy link

kuhlaid commented Apr 1, 2024

See #2382 for solution.

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

2 participants