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 OTA devices, latest HA, latest Tasmoadmin, HAOS install. #291

Closed
mattlward opened this issue Mar 24, 2023 · 9 comments
Closed
Labels
stale There has not been activity on this issue or PR for quite some time.

Comments

@mattlward
Copy link

Problem/Motivation

Cannot OTA my devices, appears that the files are never download to my HA server.

(Why the issue was filed)
Because I have several devices I like to keep current.

Expected behavior

I would expect the OTA to work, it does work from the devices looking to github for the firmware.

(What you expected to happen)

Actual behavior

(What actually happened)
The Tasmoadmin addon reports the error "Full Firmware is not accessible on the server at http://192.168.1.6:9541/data/firmwares/tasmota.bin.gz
Please check the OTA IP address and port are correct " regardless of config.

Steps to reproduce

When filling out the update form and either picking automatic or supplying my own files via browse I end up in the same situation.

(How can someone else make/see it happen)

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)
I do not know how to fix it.
TA1
TA2
TA3

@inverse
Copy link
Contributor

inverse commented Apr 13, 2023

The check that's being done is the backend is checking if it can access the firmware that the given URL to ensure that things are downloaded/accessible.

I'm guessing the firmware is not accessible on the URL provided?

@quadcom
Copy link

quadcom commented May 10, 2023

This was posted a few days ago. I am seeing the same problem.

TasmoAdmin/TasmoAdmin#810

*** Nevermind, problem was PEBCAK. I had the TasmoAdmin update address as my Unraid server IP FFS!!!

@mattlward
Copy link
Author

mattlward commented May 12, 2023

I still have not been able to get this working...
With BE and FE checks disabled, I get the following...
image

Looks good, that is the version I would expect. When I attempt and upgrade I get the following log...
image

I have been unable to find the downloaded file on my HA machine... If I try the OTA URL in my browser I am greeted with a 403. So either it is not really downloading the files or the permissions are not right.

@mattlward
Copy link
Author

mattlward commented May 18, 2023

Ok, so I installed TasmoAdmin on my Unraid server as a docker container and it will OTA properly. I can run it there, but I really want my HA server to handle all the duties of my automated home. I have updated everything including the latest TasmoAdmin and the latest version of HA.

This stinks of TasmoAdmin not having correct file system permissions in HA.

Add-on version: 0.24.3
You are running the latest version of this add-on.
System: Home Assistant OS 10.1 (amd64 / generic-x86-64)
Home Assistant Core: 2023.5.3
Home Assistant Supervisor: 2023.04.1

TasmoAdmin startup on HA with debug enabled, says symlink completed... where would that reside?

s6-rc: info: service base-addon-banner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service base-addon-log-level: starting
s6-rc: info: service fix-attrs successfully started
Log level is set to DEBUG
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-tasmoadmin: starting
s6-rc: info: service init-nginx: starting
[16:32:57] DEBUG: Symlinking data directory to persistent storage location...
s6-rc: info: service init-tasmoadmin successfully started
s6-rc: info: service php-fpm: starting
s6-rc: info: service php-fpm successfully started
[16:32:58] INFO: Starting PHP-FPM server...
s6-rc: info: service init-nginx successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
s6-rc: info: service legacy-services: starting
[16:32:58] INFO: Starting NGINX server...
s6-rc: info: service legacy-services successfully started

@aumuelle
Copy link

aumuelle commented May 26, 2023

i'm seeing the very same problems on my side.

"Minimal Firmware is not accessible on the server at http://10.0.0.126:9541/data/firmwares/tasmota-minimal.bin.gz
Please check the OTA IP address and port are correct
Full Firmware is not accessible on the server at http://10.0.0.126:9541/data/firmwares/tasmota.bin.gz
Please check the OTA IP address and port are correct"

wget http://10.0.0.126:9541/data/firmwares/tasmota-minimal.bin.gz
--2023-05-26 09:06:30--  http://10.0.0.126:9541/data/firmwares/tasmota-minimal.bin.gz
Connecting to 10.0.0.126:9541... connected.
HTTP request sent, awaiting response... 403 Forbidden
2023-05-26 09:06:30 ERROR 403: Forbidden.

logs are not very usefull..... (seems that only the startup of the module gets logged)

is this update-service working for anybody running the Home Assistant Operating System?

@inverse
Copy link
Contributor

inverse commented May 26, 2023

Very strange - I'm running the addon from the edge repository and not experiencing any issues.

malachi@pulsar ~ $ curl -I http://192.168.1.100:9541/data/firmwares/tasmota-minimal.bin.gz
HTTP/1.1 200 OK
Server: nginx/1.24.0
Date: Fri, 26 May 2023 21:06:27 GMT
Content-Type: application/octet-stream
Content-Length: 265930
Last-Modified: Fri, 26 May 2023 21:05:57 GMT
Connection: keep-alive
ETag: "64711f35-40eca"
Access-Control-Allow-Origin: *
Accept-Ranges: bytes

malachi@pulsar ~ $ curl -I http://192.168.1.100:9541/data/firmwares/tasmota.bin.gz
HTTP/1.1 200 OK
Server: nginx/1.24.0
Date: Fri, 26 May 2023 21:06:37 GMT
Content-Type: application/octet-stream
Content-Length: 453911
Last-Modified: Fri, 26 May 2023 21:05:57 GMT
Connection: keep-alive
ETag: "64711f35-6ed17"
Access-Control-Allow-Origin: *
Accept-Ranges: bytes

@aumuelle
Copy link

well, this is sort of strange.... but something trivial as deinstalling and reinstalling the addon did solve the problems in my case.
if you have not done so allready, you could give it a try....

Device 5
[2023-06-24T20:28:11.061Z] Starte Update Prozess
[2023-06-24T20:28:11.061Z] Attempting upgrade to version 12.5.0
[2023-06-24T20:28:11.061Z] Checking version...
[2023-06-24T20:28:11.201Z] Current version is 12.1.1(tasmota)
[2023-06-24T20:28:11.201Z] OTA Url => http://10.0.0.126:9541/data/firmwares/tasmota.bin.gz
[2023-06-24T20:28:11.286Z] Starte Module update...
[2023-06-24T20:28:11.367Z] Sleeping for 10s...
[2023-06-24T20:28:21.368Z] Update gestartet
[2023-06-24T20:28:21.368Z] Checking version...
[2023-06-24T20:28:21.424Z] Failed to fetch trying again... attempts left 9 sleeping for 10s...
[2023-06-24T20:28:31.426Z] Checking version...
...
[2023-06-24T20:29:46.534Z] Version is 12.5.0(tasmota)
[2023-06-24T20:29:46.534Z] Device upgrade successful

@mjkl-gh
Copy link

mjkl-gh commented Jun 30, 2023

For me I had SSL enabled on the addon, which blocks the http:// and opens it on https://
image

If i wget https://<my_domainname_or_IP>:9541/data/firmwares/tasmota-sensors.bin.gz --no-check-certificate I could download it

disabling ssl on the HA addon fixes it

@github-actions
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Jul 31, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale There has not been activity on this issue or PR for quite some time.
Projects
None yet
Development

No branches or pull requests

5 participants