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

Adapter installation from git starts first after manually kill of "git ls-remote -h -t git://github.com/iobroker-community-adapters/..." process #1471

Closed
Diginix opened this issue May 23, 2022 · 4 comments
Labels

Comments

@Diginix
Copy link

Diginix commented May 23, 2022

nodejs: 14.19.2
js-controller: 4.0.23
admin 5.4.9

If I choose GIT as source and select an adapter, I see over xx minutes this screen.
image

This happens since some days/weeks. In the past it was that fast as the normal adapter installation, which is still fast and takes at max some seconds, never above a minute.

In CLI I see these processes that won't finish:

node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js url iobroker-community-adapters/ioBroker.pvforecast --host iobroker --debug
git ls-remote -h -t git://github.com/iobroker-community-adapters/ioBroker.pvforecast.git

Happens with influxDB adapter and now with pvforecast.

If I kill the process "git ls-remote", the installation first really starts with these running processes:

node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js url iobroker-community-adapters/ioBroker.pvforecast --host iobroker --debug
git clone --mirror -q https://github.com/iobroker-community-adapters/ioBroker.pvforecast.git /home/iobroker/.npm/_cacache/tmp/git-clone-70f56618/.git
/usr/lib/git-core/git-remote-https origin https://github.com/iobroker-community-adapters/ioBroker.pvforecast.git

And finally comes to a successfully end after some seconds:
image

@Diginix Diginix changed the title Adapter installation from git takes very long time (>10 minutes), maybe without ending Adapter installation from git starts first after manually kill of "git ls-remote -h -t git://github.com/iobroker-community-adapters/..." process May 23, 2022
@Apollon77
Copy link
Collaborator

Thsi is an issue on npm 6.x ... should be fixed in npm 7 or 8 ...

git config --global url."https://".insteadOf git://

could solve the issue also with npm 6 ... execute that in /opt/iobroker

@Diginix
Copy link
Author

Diginix commented May 23, 2022

I'm on npm 6.14 for a looong time and never had this before. Is there any update (linux, iob, ...) that could affect this (e.g. subminor update of npm 6.14.xx?)?

@Apollon77
Copy link
Collaborator

Reason is a change by GitHub:

@Feuer-sturm
Copy link
Collaborator

Thsi is an issue on npm 6.x ... should be fixed in npm 7 or 8 ...

With Nodejs: v16.15.1 and NPM: 8.11.0 adapter installations over github are fast as expected.
Since a few weeks nodejs 16 is recommended https://forum.iobroker.net/topic/55678/node-js-16-x-neue-empfehlung-f%C3%BCr-iobroker

@Apollon77 Can we close this issue or is there a reason to keep it open?

@Apollon77 Apollon77 unpinned this issue Aug 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants