New installation not working

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

New installation not working

Post by jacobsentertainment »

Hi,

I most be doing something wrong, I had some issues with current installation so wanted to replace the sd card. As I didn't had a backup image (lost or removed it) I needed to start from scratch. Installing the latest pi on a new sd card and insert it in to the pi, access it with putty and setup vnc and domoticz. So far so good! but after installing and rebooting the device I can restart domoticz.sh but whatever I do I can' access the webpage trough 192.168.178.**:8080 I cleared the browser etc but nothing shows up.

So I went for a start from scratch again, now lets try the same thing but with use of docker... This works! :mrgreen: but comes with a new era of learning new shit, as I'm new to al this stuff (just smart enough to follow the steps in the wiki) But with this docker I have domoticz working but can't install the pp manager to get some plugins I need.

Any help would be very appreciated 8-) I prefer to install domoticz without docker as I'm familiar with this setup.
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: New installation not working

Post by Sjonnie2017 »

Have you tried the tips and steps here: https://www.domoticz.com/wiki/Troubleshooting

Might also be worth checking the (crash) logs. Most of the logs are in /var/log (something to do with "dmesg" ;) )

EDIT:

I especially like this part in the Wiki:
Additional you can start domoticz with extra parameters eg ./domoticz -www 8080 -sslwww 443 -log "/var/log/domoticz.log"

For more info on command line parameters see wiki page Command line parameters

For extra debug logging start domoticz manually with debug flags eg:

./domoticz -www 8080 -sslwww 443 -log "/var/log/domoticz.log" -loglevel all -debuglevel normal,auth,hardware,received,webserver,eventsystem,python,thread_id
Good luck with the troubleshooting!
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

The trouble shooting was not helpful, this page assumes that domoticz is working but in my case it looks like its working but display's nothing.
Anyway's I tried an old method of installing domoticz trough te youtube video of Jell Peters and all of a sudden domoticz works again. Now installing all the plugins etc and hope for the best, so far the PP Manager and smart thermostat are nt working... :oops:
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: New installation not working

Post by Sjonnie2017 »

Glad you got it to work! Enjoy your new install!
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

I'm already back to the old SD card :| as I couldn't get the "smart thermostat" t to work... so already flasing a new card.
Ill keep playing around till I got a satisfied result, then I will make a backup or clone.
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

I want to have a complete new and clean installation instead of an old backup, so I bought a couple of SD 3gb class10 cards
Installed with the latest raspberry imager a debian buster version of 3-5-2023 and installed domoticz with use of putty

Code: Select all

sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
went trough the whole sequence of events and selected what's needed http and ssh etc. In the end it tels me everything was successful and domoticz is now running @ 192.168.178.220:8080. After opening this in a browser the tab name changes to domoticz and the adress bar shows

Code: Select all

http://192.168.178.220:8080/#/Offline
so logically I go in to putty and command

Code: Select all

sudo service domoticz.sh start
this takes a couple of seconds and domoticz stay's in the same state "offline"

wtf is going wrong here?
User avatar
gizmocuz
Posts: 2549
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: New installation not working

Post by gizmocuz »

a 3gb SD card? :mrgreen:

How about you start domoticz by hand and see what's going on?

I assume you have nothing else installed yet, a pure clean raspbian

sudo service domoticz stop

cd domoticz

start manually (stop by using control-c)

./domoticz
Quality outlives Quantity!
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

3gb wireless (latest version, new from china :lol: )

I tried from the domoticz folder with bash

Code: Select all

 ./domoticz
only reply I get is "no such file /directory" and "ls" shows me there is "domoticz", "domotcz.db", domoticz.sh" and the rest that comes with a domoticz instalation but nothing starts....


Most likely I'm doing something wrong here, but I have no clue what!
User avatar
gizmocuz
Posts: 2549
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: New installation not working

Post by gizmocuz »

Well assuming you installed raspbian and nothing else, and you login with the 'pi' user, and executed the Domoticz bash command to install Domoticz
you should have a folder called 'domoticz' in your home folder.... when you are logged in with the 'pi' user
Quality outlives Quantity!
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

Correct!
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New installation not working

Post by kiddigital »

Do an ‘ls -las’ and check if the domoticz and domoticz.sh have the ‘x’ (eXecute) bit set. Without it, these file will not get executed.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

kiddigital wrote: Saturday 03 June 2023 19:28 Do an ‘ls -las’ and check if the domoticz and domoticz.sh have the ‘x’ (eXecute) bit set. Without it, these file will not get executed.
Well this is a little above my pay grade ;)
pi.png
pi.png (50.41 KiB) Viewed 2455 times
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: New installation not working

Post by kiddigital »

Looks fine.. domoticz is green (has rwx in front)

Must be something else.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

On my other pi I have domoticz (older installation) running and compared the permissions.
pi2.png
pi2.png (62.19 KiB) Viewed 2445 times
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: New installation not working

Post by JuanUil »

HI,
I had the same problem.
Here is a topic about the same issue with some more information, hopefully it helps.
viewtopic.php?t=40198

It solved my problems!

Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

JuanUil wrote: Friday 16 June 2023 16:42 HI,
I had the same problem.
Here is a topic about the same issue with some more information, hopefully it helps.
viewtopic.php?t=40198

It solved my problems!

Jan
I'm a noob with linux and i'm happy that I get this far, but in my opinion you should be, pick a new sd card -> install raspberry os -> setup preferred way (headless, vnc, etc) -> install domoticz -> setup domoticz and all settings. Ad that should be a clean/new installation and should work out of the box.
I tried homeassistant and I was really amazed by how easy this all went. 20minutes and all was working and most items where recognized in my network and installed within minutes. I just could't get my head around it and went back to domoticz.

I have a good working image what i store on two places and only needs a backup of domoticz, so this way i should be back within minutes if my sd card crashes again. (also working towards an ssd system at the next crsh)

Sheers anyway' :lol:
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

Couple of day's ago I did an complete new build, new card fresh installation.

- Domoticz as from the installer

Code: Select all

sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
installs domoticz but no output on port 8080.
- After installing the beta update it al works fine ( again port 8080 local)
- Today I tried to go back to the stable release, after update refreshed the page and cleared the browser, but nothing on port 8080.
- Went back to the beta release and all works again.

Still not sure what's going wrong here, but would like to go to the stable release as this would work better with the app and thermostat setpoints.
User avatar
waltervl
Posts: 5865
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: New installation not working

Post by waltervl »

You normally cannot go back from a beta to a stable as there are database changes.
You can but then you have to remove the database file (domoticz.db) and start over again with fresh data.
Or delete the domoticz folder and install a fresh stable.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
jacobsentertainment
Posts: 223
Joined: Thursday 01 October 2020 1:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021-1
Location: Not @ home
Contact:

Re: New installation not working

Post by jacobsentertainment »

waltervl wrote: Tuesday 03 October 2023 13:11 You normally cannot go back from a beta to a stable as there are database changes.
You can but then you have to remove the database file (domoticz.db) and start over again with fresh data.
Or delete the domoticz folder and install a fresh stable.
Ok good to know, at least I tried it, went back to beta and all worked again... :mrgreen:
So I'm still on the beta
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest