Openhabian does not work anymore and can not get it to work anymore


(Robert Hx) #1

Can anybody help me online?

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: what OS is used and which version
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version:
  • Issue of the topic: please be detailed explaining your issue
  • Please post configurations (if applicable):
    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

(Markus Storm) #2

#9, #10, …


(Robert Hx) #3

Yes opensource. Who speaks from commercial use? my Pi with openhab worked until update, and now all is gone.


(Vincent Regaud) #4

Well, we still don’t know what gone wrong…
Fill in the details


(Robert Hx) #5

If I would know…


(Vincent Regaud) #6

It worked, before
What java?
What OH version?
Are you using SD card or booting from USB?

What did you change?
What did you do step by step and it stopped?

Help us…


(Robert Hx) #7

Can you connect to my notebook and see? :slightly_smiling_face:


(Vincent Regaud) #8

What do you mean it’s all gone
No logs?
Can you ssh in the pi?
what does sudo systemctl status openhab2.service show?


(Robert Hx) #9

I can not play with that anymore. I just need some switches to work 99,99% of the time.

After update stopped to work.
mqtt.fx did still connect to pi.
after my superior intervention does not anymore. I tryed to reformat sdcard all from scratch. but does not work


(Robert Hx) #10

[20:20:05] openhabian@openhabian:~$ systemctl status openhab2.service
● openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor pre
Active: active (running) since Fri 2018-12-28 17:54:42 CET; 2h 25min ago
Docs: https://www.openhab.org/docs/
https://community.openhab.org
Main PID: 498 (java)
CGroup: /system.slice/openhab2.service
└─498 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf


(Andy) #11

Do you have any configuration backups or have you cloned your SD card with entire content ? If you use SD cards it’s always good practice to have second card ready with the same system on it.


(Robert Hx) #12

No.
I will go once again from scratch and if then does not work…

i’ll try again :frowning:


(Sascha Billian) #13

Still you seem to be able to connect to your system. Is there any hints in the openhab.log or system logs?
I mean, even if you are setting up the system from scratch, you should now what happened either to avoid it in the future or to find a quick way of getting the system up and running again.


(Robert Hx) #14

mqtt.fx does not connect to pi


(Sascha Billian) #15

Is your problem that only MQTT isn’t working anymore or OpenHab in general?

which broker are you using? which port?
is the broker running (use ps -A on the shell to check if it is)?
Do you get an error when starting the broker from the shell?
Did IP adress change on the PI?
Have you tried connecting to the broker by its IP adress?
Edit:
To which OpenHab version did you update your system?


(Robert Hx) #16

can you just connect to my pc and see? there are to many questions and i do not know where to look


(Robert Hx) #17

login as: openhabian
openhabian@192.168.1.20’s password:
Linux openhabian 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Dec 29 09:32:53 2018 from 192.168.1.2

Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.

2018-12-29 14:34:16,485: FireMotD: Info: No FireMotD ExportFile detected. Please generate with “sudo .\FireMotD -S”

          Welcome to            __  _____    ____  _
        ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
       / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
      / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
      \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
          /_/
              openHAB 2.4.0-1 (Release Build)

Looking for a place to get started? Check out ‘sudo openhabian-config’ and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openhabian:8080
To interact with openHAB on the command line, execute: ‘openhab-cli --help’

[14:34:16] openhabian@openhabian:~$ ps -A
PID TTY TIME CMD
1 ? 00:00:02 systemd
2 ? 00:00:00 kthreadd
4 ? 00:00:00 kworker/0:0H
6 ? 00:00:00 mm_percpu_wq
7 ? 00:00:00 ksoftirqd/0
8 ? 00:00:02 rcu_sched
9 ? 00:00:00 rcu_bh
10 ? 00:00:00 migration/0
11 ? 00:00:00 cpuhp/0
12 ? 00:00:00 cpuhp/1
13 ? 00:00:00 migration/1
14 ? 00:00:00 ksoftirqd/1
16 ? 00:00:00 kworker/1:0H
17 ? 00:00:00 cpuhp/2
18 ? 00:00:00 migration/2
19 ? 00:00:00 ksoftirqd/2
21 ? 00:00:00 kworker/2:0H
22 ? 00:00:00 cpuhp/3
23 ? 00:00:00 migration/3
24 ? 00:00:00 ksoftirqd/3
26 ? 00:00:00 kworker/3:0H
27 ? 00:00:00 kdevtmpfs
28 ? 00:00:00 netns
33 ? 00:00:00 khungtaskd
34 ? 00:00:00 oom_reaper
35 ? 00:00:00 writeback
36 ? 00:00:00 kcompactd0
37 ? 00:00:00 crypto
38 ? 00:00:00 kblockd
39 ? 00:00:00 watchdogd
40 ? 00:00:00 rpciod
41 ? 00:00:00 xprtiod
44 ? 00:00:00 kswapd0
45 ? 00:00:00 nfsiod
55 ? 00:00:00 kthrotld
56 ? 00:00:00 iscsi_eh
57 ? 00:00:00 dwc_otg
58 ? 00:00:00 DWC Notificatio
59 ? 00:00:00 vchiq-slot/0
60 ? 00:00:00 vchiq-recy/0
61 ? 00:00:00 vchiq-sync/0
62 ? 00:00:00 vchiq-keep/0
63 ? 00:00:00 irq/92-mmc1
66 ? 00:00:01 mmcqd/0
67 ? 00:00:00 jbd2/mmcblk0p2-
68 ? 00:00:00 ext4-rsv-conver
69 ? 00:00:00 ipv6_addrconf
81 ? 00:00:00 scsi_eh_0
82 ? 00:00:00 scsi_tmf_0
83 ? 00:00:00 usb-storage
86 ? 00:00:00 kworker/0:1H
90 ? 00:00:00 systemd-journal
108 ? 00:00:00 kworker/u8:2
128 ? 00:00:00 systemd-udevd
147 ? 00:00:00 irq/169-usb-001
218 ? 00:00:00 cfg80211
223 ? 00:00:00 brcmf_wq/mmc1:0
226 ? 00:00:00 brcmf_wdog/mmc1
269 ? 00:00:00 systemd-timesyn
313 ? 00:00:00 rsyslogd
315 ? 00:00:00 cron
319 ? 00:00:00 systemd-logind
320 ? 00:00:03 avahi-daemon
331 ? 00:00:00 thd
349 ? 00:00:00 dbus-daemon
370 ? 00:00:00 avahi-daemon
406 ? 00:00:10 mosquitto
422 ? 00:00:00 wpa_supplicant
438 ? 00:00:00 kworker/3:1H
439 ? 00:00:00 kworker/2:1H
466 ? 00:00:00 kworker/u9:0
467 ? 00:00:00 hciattach
469 ? 00:00:00 kworker/u9:2
479 ? 00:00:00 bluetoothd
500 ? 00:00:00 dhcpcd
503 ? 00:03:31 java
504 ? 00:00:04 node
520 tty1 00:00:00 agetty
589 ? 00:00:00 sshd
600 ? 00:00:04 nmbd
615 ? 00:00:00 smbd
616 ? 00:00:00 smbd-notifyd
617 ? 00:00:00 cleanupd
624 ? 00:00:00 lpqd
654 ? 00:00:00 tail
776 ? 00:00:00 kworker/1:1H
1036 ? 00:00:00 kworker/u8:0
5873 ? 00:00:00 kworker/3:1
8707 ? 00:00:00 kworker/3:0
8769 ? 00:00:00 kworker/0:2
8970 ? 00:00:00 kworker/1:0
9065 ? 00:00:00 kworker/2:2
9083 ? 00:00:00 kworker/0:1
9140 ? 00:00:00 kworker/1:2
9147 ? 00:00:00 kworker/2:0
9166 ? 00:00:00 kworker/0:0
9229 ? 00:00:00 kworker/1:1
9235 ? 00:00:00 kworker/2:1
9242 ? 00:00:00 sshd
9251 ? 00:00:00 systemd
9254 ? 00:00:00 (sd-pam)
9261 ? 00:00:00 sshd
9264 pts/0 00:00:00 bash
9320 pts/0 00:00:00 ps
[14:34:24] openhabian@openhabian:~$


(Markus Storm) #18

No we’ll NOT connect to you PC. This is NOT a helpdesk.
You have to get the basic parts right yourself. Gazillions of ressources on the Internet.


(Kim Andersen) #19

Come on…!!

No, we´re not a helpdesk - But we´re NOT stupid either…

This guy needs help as to where to look to provide the informations which are required. And he probably need help to explain himself.

He actually did give some information which could be usefull (perhaps)…

  1. Update - (assume its openhab and probably to the latest 2.4)
    and
  2. mqtt…

Maybe this could help him:

Another possible help. Direct him to the log files, so we´re able to see whats going on.
Answer could be:
http://IP_OF_HIS_RPI:9001 is he´s running the tail log.
Or
/var/log/openhab2/ to look at the logfiles.

Took me just a few seconds. Hopefully, based on his very limited informations, (but obvious major frustrations), this can get him a bit futher… If not, then we´ll take it from there.
I know you think he should have search for this himself first. But if he doesn´t know how to, or even whats wrong, how the hell can a search be usefull in anyway

As said - We´re not stupid either!


(CM6.5 H102) #20

If you were using the mqtt 1.x binding then did the upgrade from 2.3 to 2.4 then you need to turn on legacy binding via paperUI and install the 1.x mqtt binding again.

After that I would clean the cache and reboot with these commands.

sudo systemctl stop openhab

sudo openhab-cli clean-cache

sudo reboot