coppit / docker-xeoma

A docker container for Xeoma surveillance software
GNU General Public License v2.0
16 stars 18 forks source link

getting 404 when trying to access web ui #7

Closed cloudbluedigital closed 4 years ago

cloudbluedigital commented 5 years ago

Hi Guys, So i am trying to install this but I am having a bit of an issue. So i ran this command:

sudo docker run -d --name=Xeoma -p 8090:8090 -p 10090:10090 -v /var/www/data/xeoma/config:/config -v /var/www/data/xeoma/archive:/archive -e VERSION='latest' -e PASSWORD='password' coppit/xeoma

which seems to be fine, docker is running and no specific errors are running. So i have also setup reverse proxy on nginx with ssl so i can access the web ui with this config:

server {
    listen 80;
#   listen 443 ssl;
    server_name xeoma.dsad.co.uk;

    location / {
        proxy_pass http://localhost:10090;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_redirect off;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/xeoma.dsad.co.uk/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/xeoma.dsad.co.uk/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

but when i go to url I get: HTTP error: 404 Is the path wrong? what is the path to the web ui?

Current logs say:

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Dec  4 12:13:24 dbe2ab497ec9 syslog-ng[13]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/30_parse_config_file.sh...
All required settings passed as environment variables. Skipping config file creation.
*** Running /etc/my_init.d/40_install_xeoma.py...
2018-12-04 12:13:24 Determining version of Xeoma to use
/bin/bash: /etc/envvars.merged: No such file or directory
2018-12-04 12:13:24 Config version is "latest"
2018-12-04 12:13:24 Fetching version information from Felenasoft at http://felenasoft.com/xeoma/downloads/version2.xml
2018-12-04 12:13:25 Using Xeoma version 18.11.21 (the latest stable version)
2018-12-04 12:13:25 Deleting files in /config/downloads to reclaim space...
2018-12-04 12:13:25 Downloading from http://felenasoft.com/xeoma/downloads/xeoma_linux64.tgz into /config/downloads
2018-12-04 12:13:25 Downloading from http://felenasoft.com/xeoma/downloads/xeoma_linux64.tgz
2018-12-04 12:13:31 Downloaded to /config/downloads/xeoma_18.11.21.tgz
2018-12-04 12:13:31 Installing Xeoma from /config/downloads/xeoma_18.11.21.tgz
2018-12-04 12:13:32 Installation complete
*** Running /etc/my_init.d/50_configure_xeoma.sh...
/etc/my_init.d/50_configure_xeoma.sh: line 7: /etc/envvars.merged: No such file or directory
[Dec 04 12:13:32 PM] Setting the password

Password set successfull
*** Booting runit daemon...
*** Runit started as PID 49
Dec  4 12:13:33 dbe2ab497ec9 cron[53]: (CRON) INFO (pidfile fd = 3)
Dec  4 12:13:33 dbe2ab497ec9 cron[53]: (CRON) INFO (Running @reboot jobs)
[Dec 04 12:13:33 PM] Starting the server in 5 seconds. See the log directory in your config directory for server logs.
Dec  4 12:17:01 dbe2ab497ec9 CRON[121]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Dec  4 12:17:01 dbe2ab497ec9 CRON[119]: (CRON) info (No MTA installed, discarding output)
patvdleer commented 5 years ago

I'm having the same issue after initial setup and addressing it at port http://192.168.178.38:10090/

patvdleer commented 5 years ago
root@:~/xeoma# docker logs Xeoma
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
Jan 16 16:48:29 6a7268c35c4f syslog-ng[15]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/30_parse_config_file.sh...
All required settings passed as environment variables. Skipping config file creation.
*** Running /etc/my_init.d/40_install_xeoma.py...
2019-01-16 16:48:30 Determining version of Xeoma to use
/bin/bash: /etc/envvars.merged: No such file or directory
2019-01-16 16:48:30 Config version is "latest"
2019-01-16 16:48:30 Fetching version information from Felenasoft at http://felenasoft.com/xeoma/downloads/version2.xml
2019-01-16 16:48:32 Using Xeoma version 18.11.21 (the latest stable version)
2019-01-16 16:48:32 Deleting files in /config/downloads to reclaim space...
2019-01-16 16:48:32 Downloading from http://felenasoft.com/xeoma/downloads/xeoma_linux64.tgz into /config/downloads
2019-01-16 16:48:32 Downloading from http://felenasoft.com/xeoma/downloads/xeoma_linux64.tgz
2019-01-16 16:48:48 Downloaded to /config/downloads/xeoma_18.11.21.tgz
2019-01-16 16:48:48 Installing Xeoma from /config/downloads/xeoma_18.11.21.tgz
2019-01-16 16:48:48 Installation complete
*** Running /etc/my_init.d/50_configure_xeoma.sh...
/etc/my_init.d/50_configure_xeoma.sh: line 7: /etc/envvars.merged: No such file or directory
[Jan 16 04:48:49 PM] Setting the password

Password set successfull
*** Booting runit daemon...
*** Runit started as PID 54
Jan 16 16:48:49 6a7268c35c4f cron[58]: (CRON) INFO (pidfile fd = 3)
Jan 16 16:48:49 6a7268c35c4f cron[58]: (CRON) INFO (Running @reboot jobs)
[Jan 16 04:48:49 PM] Starting the server in 5 seconds. See the log directory in your config directory for server logs.

In the web server log I found the following:

root@:~/xeoma# cat config/Logs/Web\ server\ log/2019-01-16.log 
16:48:55.749  Start log
16:49:13.964  192.168.178.235 - [unauthorized] http://172.17.0.4:10090/
16:49:14.088  192.168.178.235 - [unauthorized] http://172.17.0.4:10090/favicon.ico
CRACKISH commented 5 years ago

I have same error (((

darkcyde6666 commented 5 years ago

Same here!

CRACKISH commented 5 years ago

I solved problem.

First i connected to Xeoma by client.

I install web module for camera, and web UI worked. https://felenasoft.com/xeoma/en/description/#webserver

darkcyde6666 commented 5 years ago

Crackish, can you give anymore details? How did you install a Web module without a UI? Did you CLI it, or edit files to force it to install?

CRACKISH commented 5 years ago

Crackish, can you give anymore details? How did you install a Web module without a UI? Did you CLI it, or edit files to force it to install?

I connected to Xeoma remotely, from Mac by client https://felenasoft.com/xeoma/en/download/.

darkcyde6666 commented 5 years ago

Ah ok, so you connected to the server via the desktop app....will try it asap

gstlouisgit commented 4 years ago

when I tried doing this I got the browser chrome and could see my camera as "cards", but when I click on it it says This website requires you to install the Temasys WebRTC Plugin to work on this browser. I tried installing it but it doesn't look like the browser recognizes it

I realized that this was for safari, but I can't seem to get it working in chrome

coppit commented 4 years ago

You need to add a web server to the camera's connection graph. I just tested it, and it works.

Closing. Please reopen if you think there's a problem with the container.