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

Unable to install Add-in. #158

Closed
PieterHattinghZA opened this issue May 27, 2024 · 18 comments
Closed

Unable to install Add-in. #158

PieterHattinghZA opened this issue May 27, 2024 · 18 comments
Assignees

Comments

@PieterHattinghZA
Copy link

I removed the Add-on to try and resolve an upgrade error, and now when I try to re-install I get the following error

Failed to install Add on

The command '/bin/bash -o pipefail -c apt-get install -y coreutils wget curl python3 python3-dev python3-pip' returned a non-zero code: 100

image

Please asisst or advise

@arthurdent75 arthurdent75 self-assigned this May 28, 2024
@arthurdent75
Copy link
Owner

I think some docker image still stay in cache.
Try to reboot your device (not home assistant, the full device)

@PieterHattinghZA
Copy link
Author

I think some docker image still stay in cache. Try to reboot your device (not home assistant, the full device)

I am running HA in Virtual Box on a laptop. I've restarted the VM, the Host OS, even cleared the Host's history, cache and temp files. Still get the error

@arthurdent75
Copy link
Owner

Can you tell me the addon version you remove? Was 0.xx or 2.xx?
Have you updated your HA to the last release?
Meanwhile, I will try a clean install on a VirtualBox VM.

@PieterHattinghZA
Copy link
Author

PieterHattinghZA commented Jun 24, 2024 via email

@arthurdent75
Copy link
Owner

Issue still not resolved

Sorry, I didn't receive an answer to my question for a month so I thought it was solved.

I also use VirtualBox for testing the addon, including updates and fresh installs.
I was unable to recreate the issue on a fresh install.

@arthurdent75 arthurdent75 reopened this Jun 25, 2024
@PieterHattinghZA
Copy link
Author

PieterHattinghZA commented Jun 25, 2024 via email

@dylancollaud
Copy link

I got the same problem with brand new installation HomeAssistant on RPI 5 with OS Homeassistant.
On other installation same configuration, I didn't get this error.

@arthurdent75
Copy link
Owner

I'm truly sorry but I'm unable to recreate the issue, so I have no clue.
The dockerfile is executed correctly wherever I've tested it, even on github action.

@PieterHattinghZA
Copy link
Author

PieterHattinghZA commented Aug 28, 2024 via email

@arthurdent75
Copy link
Owner

What is the location where the files are installed?

Sorry, I have no idea where HA saves the docker images.

@dylancollaud
Copy link

I look the log of HomeAssistant and I found that :

`2024-08-29 22:45:08.433 INFO (MainThread) [supervisor.addons.addon] No 00185a40_simplescheduler addon Docker image 00185a40/aarch64-addon-simplescheduler found
2024-08-29 22:45:08.434 INFO (MainThread) [supervisor.docker.addon] Starting build for 00185a40/aarch64-addon-simplescheduler:2.5
2024-08-29 22:45:09.905 ERROR (MainThread) [supervisor.docker.addon] Can't build 00185a40/aarch64-addon-simplescheduler:2.5: The command '/bin/bash -o pipefail -c apt-get install -y coreutils wget curl python3 python3-dev python3-pip' returned a non-zero code: 100
2024-08-29 22:45:09.905 ERROR (MainThread) [supervisor.docker.addon] Build log:
Step 1/13 : ARG BUILD_FROM

Step 2/13 : FROM ${BUILD_FROM}

---> 64b146dd73ec

Step 3/13 : RUN apt-get update -y && apt upgrade -y

---> Using cache

---> b7c6fe233019

Step 4/13 : RUN apt-get install -y coreutils wget curl python3 python3-dev python3-pip

---> Running in df0d48441d3a

Reading package lists...

Building dependency tree...

Reading state information...

E: Unable to locate package wget
E: Unable to locate package python3
E: Unable to locate package python3-dev
E: Unable to locate package python3-pip

---> Removed intermediate container df0d48441d3a`

Maybe you will see the error behind code error 100.

Why the system can't locate all package ?

@dylancollaud
Copy link

If I try to install manualy this components with ha add:

RUN apt-get install -y
coreutils
wget
curl
python3
python3-dev \
python3-pip

The only one who doesn't work is pyhton3-pip, (No such package)

@arthurdent75
Copy link
Owner

@dylancollaud thank you for your investigation.
The error is completely nonsense.
I will try to set up a beta repository with some changes in the dockerfile so that you can run some tests.

@arthurdent75
Copy link
Owner

@dylancollaud could you uninstall the addon, add this addon repository:
https://github.com/arthurdent75/SimpleScheduler-BETA
and try to install 2.5.8b from here?

@dylancollaud
Copy link

dylancollaud commented Aug 30, 2024

@arthurdent75
Thank you for this version. That works !

@arthurdent75
Copy link
Owner

Ok, It just downloads the docker image instead of compiling it.
I will add this in the next release.
Until then keep this repository. As soon as a new version comes out, switch back to the official one.
Thank you for the help!

@dylancollaud
Copy link

Perfect, thank you for having solved this problem.

@PieterHattinghZA
Copy link
Author

PieterHattinghZA commented Sep 3, 2024 via email

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

3 participants