openhab / openhabian

openHABian - empowering the smart home, for Raspberry Pi and Debian systems
https://community.openhab.org/t/13379
ISC License
820 stars 251 forks source link

Installation failes due to missing repos #67

Closed anttisep closed 7 years ago

anttisep commented 7 years ago

Hi,

The installation of latest image fails due to some missing repos. From /var/log/raspbian-ua-netinst.log: [openHABian] Adding openHAB 2 Snapshot repositories to sources.list.d... FAILED

The reason can be found while manually running /opt/openhabian/openhabian-setup.sh:

W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-offline/target/apt-repo/Packages  HttpError404
W: Failed to fetch https://openhab.ci.cloudbees.com/job/openHAB-Distribution/ws/distributions/openhab-online/target/apt-repo/Packages  HttpError404

Thank you for all your efforts and Best Regads,

devgiants commented 7 years ago

Hello, I just had the same thing, 2 install failed last night and this morning too.

Thank you for your work, Regards,

Nicolas

anttisep commented 7 years ago

It appears that the installer is using cloudbees Jenkins workspace as a repository. As the previous Jenkins build was aborted, the build artifacts are missing from workspace. Until new (successful) build is triggered, installer can't install packages. Future installations will occasionally fail if e.g. Jenkins build is ongoing. So this isn't openhabian bug as itself, but an alternative solution for installer to fetch packages might be a worth of something to look into.

anttisep commented 7 years ago

Temporary ugly workaround: 1) After failed installation, log into the system. 2) Modify /opt/openhabian/openhabian-setup.sh:

anttisep commented 7 years ago

The repository seems to have come back available. Closing this issue.

ThomDietrich commented 7 years ago

Hey @anttisep you should just have waited :D The problem is unfortunate for sure. I hope/believe this problem will not occur with the new repository available soon. From the instructions you posted I get the impression that yo dug deep into the openHABian scripts. Nice work ;)