Page 1 of 1

New installation not working

Posted: Monday 29 May 2023 13:10
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.

Re: New installation not working

Posted: Monday 29 May 2023 14:20
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!

Re: New installation not working

Posted: Monday 29 May 2023 15:50
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:

Re: New installation not working

Posted: Monday 29 May 2023 16:07
by Sjonnie2017
Glad you got it to work! Enjoy your new install!

Re: New installation not working

Posted: Monday 29 May 2023 16:28
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.

Re: New installation not working

Posted: Saturday 03 June 2023 10:04
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?

Re: New installation not working

Posted: Saturday 03 June 2023 10:42
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

Re: New installation not working

Posted: Saturday 03 June 2023 11:06
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!

Re: New installation not working

Posted: Saturday 03 June 2023 12:40
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

Re: New installation not working

Posted: Saturday 03 June 2023 12:46
by jacobsentertainment
Correct!

Re: New installation not working

Posted: Saturday 03 June 2023 19:28
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.

Re: New installation not working

Posted: Sunday 04 June 2023 19:24
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 3454 times

Re: New installation not working

Posted: Sunday 04 June 2023 19:33
by kiddigital
Looks fine.. domoticz is green (has rwx in front)

Must be something else.

Re: New installation not working

Posted: Sunday 04 June 2023 19:57
by jacobsentertainment
On my other pi I have domoticz (older installation) running and compared the permissions.
pi2.png
pi2.png (62.19 KiB) Viewed 3444 times

Re: New installation not working

Posted: Friday 16 June 2023 16:42
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

Re: New installation not working

Posted: Wednesday 28 June 2023 15:57
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:

Re: New installation not working

Posted: Tuesday 03 October 2023 11:15
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.

Re: New installation not working

Posted: Tuesday 03 October 2023 13:11
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.

Re: New installation not working

Posted: Tuesday 03 October 2023 19:42
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