arthurdent75 / SimpleScheduler

An Home Assistant AddOn to schedule entities on/off on weekly base
183 stars 36 forks source link

Unable to install Add-in. #158

Closed PieterHattinghZA closed 2 weeks ago

PieterHattinghZA commented 3 months ago

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 commented 3 months ago

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

PieterHattinghZA commented 3 months ago

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 commented 3 months ago

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 commented 2 months ago

Issue still not resolved


From: arthurdent75 @.> Sent: Monday, 24 June 2024 14:52 To: arthurdent75/SimpleScheduler @.> Cc: Pieter Hattingh @.>; Author @.> Subject: Re: [arthurdent75/SimpleScheduler] Unable to install Add-in. (Issue #158)

Closed #158https://github.com/arthurdent75/SimpleScheduler/issues/158 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/arthurdent75/SimpleScheduler/issues/158#event-13265960780, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4G232RVL3MXA557NK3ZJAJBJAVCNFSM6AAAAABILPVNGKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGI3DKOJWGA3TQMA. You are receiving this because you authored the thread.

arthurdent75 commented 2 months ago

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.

PieterHattinghZA commented 2 months ago

I had the integration running previously with no issues, until there was an update.

The update produced an error, and I tried to uninstall the integration, to re-install it.

Since then I have not been able to get it working.

Could you maybe indicate in what location I can manually remove any orphaned remnants of the integration, to attempt to then try and re-install it

This e-mail and any attachments thereto are strictly confidential and are intended solely for the use of the addressee. Should you not be the intended addressee, please delete this e-mail message immediately. While care is taken in preparing this document, no representation, warranty or undertaking (expressly or implied) is given and no responsibility nor liability is accepted by the company as to the accuracy of the information contained herein, that the email is free of viruses, or for any damages that may occur from receiving or opening this email.

From: arthurdent75 @.> Sent: Tuesday, June 25, 2024 10:51 AM To: arthurdent75/SimpleScheduler @.> Cc: Pieter Hattingh @.>; Author @.> Subject: Re: [arthurdent75/SimpleScheduler] Unable to install Add-in. (Issue #158)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/arthurdent75/SimpleScheduler/issues/158#issuecomment-2188338746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4GOW6W3LVGFPKLUJ3TZJEVNZAVCNFSM6AAAAABILPVNGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBYGMZTQNZUGY. You are receiving this because you authored the thread.Message ID: @.**@.>>

dylancollaud commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

I would like to try something else.

What is the location where the files are installed?

I want to manually remove any trace of the program and then install it again.

It is a brilliant add-on that you wrote and I applaud your skill.

[cid:24d6fd47-7a97-44cd-b55b-122d77876332]

This e-mail and any attachments thereto are strictly confidential and are intended solely for the use of the addressee. Should

you not be the intended addressee, please delete this e-mail message immediately. While care is taken in preparing this document, no representation, warranty or undertaking (expressly or implied) is given and no responsibility nor liability is accepted by the company as to the accuracy of the information contained herein, that the email is free of viruses, or for any damages that may occur from receiving or opening this email.


From: arthurdent75 @.> Sent: Wednesday, 28 August 2024 09:48 To: arthurdent75/SimpleScheduler @.> Cc: Pieter Hattingh @.>; Author @.> Subject: Re: [arthurdent75/SimpleScheduler] Unable to install Add-in. (Issue #158)

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.

— Reply to this email directly, view it on GitHubhttps://github.com/arthurdent75/SimpleScheduler/issues/158#issuecomment-2314577167, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4HWQ6QNM5OZDVFLBETZTV6GTAVCNFSM6AAAAABILPVNGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJUGU3TOMJWG4. You are receiving this because you authored the thread.Message ID: @.***>

arthurdent75 commented 2 weeks ago

What is the location where the files are installed?

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

dylancollaud commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

@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 commented 2 weeks ago

@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 commented 2 weeks ago

@arthurdent75 Thank you for this version. That works !

arthurdent75 commented 2 weeks ago

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 commented 2 weeks ago

Perfect, thank you for having solved this problem.

PieterHattinghZA commented 1 week ago

Hi, Worked for me also!!!

[cid:193a7c07-2b87-4634-aac9-f2218736e0c8]

This e-mail and any attachments thereto are strictly confidential and are intended solely for the use of the addressee. Should

you not be the intended addressee, please delete this e-mail message immediately. While care is taken in preparing this document, no representation, warranty or undertaking (expressly or implied) is given and no responsibility nor liability is accepted by the company as to the accuracy of the information contained herein, that the email is free of viruses, or for any damages that may occur from receiving or opening this email.


From: arthurdent75 @.> Sent: Friday, 30 August 2024 12:08 To: arthurdent75/SimpleScheduler @.> Cc: Pieter Hattingh @.>; Author @.> Subject: Re: [arthurdent75/SimpleScheduler] Unable to install Add-in. (Issue #158)

@dylancollaudhttps://github.com/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?

— Reply to this email directly, view it on GitHubhttps://github.com/arthurdent75/SimpleScheduler/issues/158#issuecomment-2320742070, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUX4Y4B6IHYP6FNVIITAQUTZUBADTAVCNFSM6AAAAABILPVNGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRQG42DEMBXGA. You are receiving this because you authored the thread.Message ID: @.***>