Pleased too hear that you enjoy the addon.
I’m not sure what you need, you open a browser bookmark but don’t want to open the webpage it’s pointing to?
Perhaps this can be something useful?
Pleased too hear that you enjoy the addon.
I’m not sure what you need, you open a browser bookmark but don’t want to open the webpage it’s pointing to?
Perhaps this can be something useful?
Will check that thanks. I look to put it in a browser not on android
Oh so the browser part was important. Well, your browser is capable of making requests in the background, you can craft a request with fetch or make an xmlhttprequest and do what you like with the response
If it’s a simple link and don’t want to visit the result you can simply make a target and hide it
<iframe name="whatnot" style="display:none;"> </iframe>
<a href="https://wherever" target="whatnot">do something</a>
How to make a bookmark to open without actually open the link you clicked i don’t know if any browser supports, perhaps some kind of feature that exists in an addon for your browser
I am so late to the party - I am having difficulty in getting to port 8888 - Im getting a “500 bad gateway”. I am running HA in VirtualBox if that matters?
You access the admin-interface using port 8899 (or using the button “open web gui” from home assistant)
After a link is created you can use the 8888 for that specific ID, if no ID is provided it will respond 500 response code with error in log saying “No ID given!”
Both open web gui and 8899 lead to 502 bad gateway.
502 is not the 500 you stated earlier; this would most likely indicate a webserver or proxy not pointing to the correct backend or backend not responding issue i belive
You may try changing the ports in the configuration section or check the activate_tls checkbox (that would make it https if you have a valid certificate i belive)
Are there any clues in the addon log section?
Sorry about that - the error is dark grey text on black so hard to read. The logs are here:
s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
should the admin page be available at http://< local IP >:8899 ?
Hi,
Those logs didn’t indicate anything wrong (same as mine that works as intended),
Yeah the interface should be available on http(or https if you have the tls option enabled and a valid certificate)://<ha-box-ip>:8899/
(if that is the port you have forwarded)
But it should also be available using the ingress method internally routed thru home assistant when you click the [Open in web UI] button
Hi.
Having the same problem as @ebasta . Trying to access remotely, directly to the IP or through the ingress method. All leads to error 502. The log does not show any issue - or any connection request. Any idea how to fix it would be great!
There’s probably an easy fix, if I could reproduce the error myself, have not yet been able to thou
And without some investigation of an instance with the error I don’t really know what the issue is
For now, sorry but as i don’t know whats wrong it’s hard to remediate
Could I get some logs or something else out of the container to support?
the logs should be forwarded to the logs in the logs section of the addon, but absolutely if you can access the actual container that would be very helpful
and the output from netstat -tulpn
and ps -aux
Will try using Protainer
> bash-5.1# netstat -tulpn
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
> tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 213/php-fpm.conf)
> tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 207/nginx: master p
> tcp 0 0 127.0.0.11:33621 0.0.0.0:* LISTEN -
> tcp 0 0 :::80 :::* LISTEN 207/nginx: master p
> udp 0 0 127.0.0.11:41992 0.0.0.0:* -
> bash-5.1# ps
> PID USER TIME COMMAND
> 1 root 0:00 /sbin/docker-init -- /init /run.sh
> 7 root 0:00 s6-svscan -t0 /var/run/s6/services
> 35 root 0:00 foreground if /etc/s6/init/init-stage2-redirfd foreground if if s6-echo -n -- [s6-init] making user provided files availa
> 36 root 0:00 s6-supervise s6-fdholderd
> 47 root 0:00 foreground s6-setsid -gq -- with-contenv backtick -D 0 -n S6_LOGGING printcontenv S6_LOGGING importas S6_LOGGING S6_LOGGING ifelse s
> 188 root 0:00 bash /usr/bin/bashio /run.sh
> 207 root 0:00 nginx: master process nginx
> 208 nginx 0:00 nginx: worker process
> 210 nginx 0:00 nginx: worker process
> 211 nginx 0:00 nginx: worker process
> 212 nginx 0:00 nginx: worker process
> 213 root 0:00 {php-fpm7} php-fpm: master process (/etc/php7/php-fpm.conf)
> 214 nobody 0:00 {php-fpm7} php-fpm: pool www
> 215 nobody 0:00 {php-fpm7} php-fpm: pool www
> 216 root 0:00 sleep 1000
> 217 root 0:00 bash
> 227 root 0:00 ps
Well that doesn’t look right, from my container:
bash-5.1# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 201/nginx: master p
tcp 0 0 127.0.0.11:46651 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8899 0.0.0.0:* LISTEN 201/nginx: master p
tcp 0 0 0.0.0.0:8099 0.0.0.0:* LISTEN 201/nginx: master p
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 207/php-fpm.conf)
udp 0 0 127.0.0.11:34070 0.0.0.0:* -
any ideas how to fix it?
Not from the top of my head, something is up with the nginx config
Is there any contents from /var/log/nginx/*.log?
And what is the content of /etc/nginx/conf.d/default.conf?
The two log files are empty (actually, access.log is empty and error.log points to /dev/stderr
the conf file content is:
server {
include /etc/nginx/snippets/tls.conf;
root /var/www/user;index index.php index.html index.htm index.nginx-debian.html;
server_name _;rewrite ^/(.*)/$ /index.php?link=$1 last;
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi.conf;
}
}server {
listen 8099;
listen 8899;
root /var/www/admin;index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files $uri $uri/ =404;
}
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_buffer_size 4K;
fastcgi_buffers 64 4k;
include /etc/nginx/fastcgi.conf;
}}
btw, I’ve tried removing the add-on and reinstalling it once more before I looked at the logs