Can't connect to OH2 with browser

Hi!

I’ve just upgraded my OH2 to version 2.2… should have not do that… since then I can’t communicate with any browser (port seem block) but I have access trough Samba and SSH as well.

Any clue on how to resume communication?

OH is probably not running. Run systemctl status openhab2 to see what error is causing it to not run.

That’s what I get…

openhab2.service - openHAB 2 - empowering the smart home
Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled)
Active: active (running) since Fri 2018-05-04 15:50:47 EDT; 2h 27min ago
Docs: http://docs.openhab.org
https://community.openhab.org
Main PID: 641 (java)
CGroup: /system.slice/openhab2.service
└─641 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopenhab.conf=/etc/openhab2…

Just went to https://myopenhab.org and my system is offline as well… how do I make it run again?

When you upgraded, did you answer “yes” every time it asked if you want to replace a file with the new one from the distribution? Between 2.0 and 2.2 there was a change in logger library which requires a new format for the logger config file. If you didn’t let the package installer upgrade this file that is likely your problem.

I’ve entered yes without really knowing why… so what now, do I have to re-install from scratch?

I still see my files (things, map, script etc…) can I copy them back or do I have to write everything back?

In /var/lib/openHAB/etc there should be one or more files that end in .dist or something like that. Copy that file over the file with the same name workout the .dist extension.

If you don’t have a .dist file, you can at least replace the logging config with Log4j2 Sample Config

Without .dist you mean?

Thanks a lot I will try that!!!

I don’t have that folder… up to /var/lib that’s what I have:

[15:34:36] openhabian@openHABianPi:/lib$ ls
arm-linux-gnueabihf
cpp
crda
dhcpcd
firmware
ifupdown
init
klibc-YL2Pal4e_FwRI58JJ6S97Xf241g.so
ld-linux-armhf.so.3
ld-linux.so.3
libip4tc.so.0
libip4tc.so.0.1.0
libxtables.so.10
libip6tc.so.0
libxtables.so.10.0.0
libip6tc.so.0.1.0
lsb
libipq.so.0
modprobe.d
libipq.so.0.0.0
modules
libiptc.so.0
resolvconf
libiptc.so.0.0.0
startpar
libnih-dbus.so.1
systemd
libnih-dbus.so.1.0.0
terminfo
libnih.so.1
udev
libnih.so.1.0.0
xtables

Not /lib, /var/lib.

… I don’t think I’m following, anyway thanks for your help… I’ll rebuild my system from scratch on another SD card.

/lib and /var/lib are two different directories. You are looking into the wrong directory.

if I do:
cd /var/lib/openHAB/etc

it doesn’t exist.

FOUND IT!!!

Let me check it out it’s not /var/lib it is var/lib

Finally…sorry about that…I get quite confused some times…
here’s what in that folder:
all.policy
branding.properties
branding-ssh.properties
com.eclipsesource.jaxrs.connector.cfg
com.eclipsesource.jaxrs.swagger.config.cfg
config.properties
custom.properties
custom.system.properties
distribution.info
equinox-debug.properties
host.key
java.util.logging.properties
jetty.xml
jmx.acl.cfg
jmx.acl.java.lang.Memory.cfg
jmx.acl.org.apache.karaf.bundle.cfg
jmx.acl.org.apache.karaf.bundle.cfg.dpkg-dist
jmx.acl.org.apache.karaf.config.cfg
jmx.acl.org.apache.karaf.config.cfg.dpkg-dist
jmx.acl.org.apache.karaf.security.jmx.cfg
jmx.acl.osgi.compendium.cm.cfg
jre.properties
keys.properties
keystore
org.apache.felix.eventadmin.impl.EventAdmin
org.apache.felix.eventadmin.impl.EventAdmin.cfg
org.apache.felix.eventadmin.impl.EventAdmin.cfg.dpkg-dist
org.apache.felix.fileinstall-deploy.cfg
org.apache.felix.fileinstall-deploy.cfg.dpkg-old
org.apache.karaf.command.acl.bundle.cfg
org.apache.karaf.command.acl.config.cfg
org.apache.karaf.command.acl.feature.cfg
org.apache.karaf.command.acl.jaas.cfg
org.apache.karaf.command.acl.kar.cfg
org.apache.karaf.command.acl.scope_bundle.cfg
org.apache.karaf.command.acl.shell.cfg
org.apache.karaf.command.acl.system.cfg
org.apache.karaf.features.cfg
org.apache.karaf.features.repos.cfg
org.apache.karaf.jaas.cfg
org.apache.karaf.kar.cfg
org.apache.karaf.log.cfg
org.apache.karaf.shell.cfg
org.eclipse.smarthome.audio.cfg
org.eclipse.smarthome.audio.cfg.dpkg-dist
org.eclipse.smarthome.basicui.cfg
org.eclipse.smarthome.links.cfg
org.eclipse.smarthome.voice.cfg
org.eclipse.smarthome.voice.cfg.dpkg-dist
org.jupnp.cfg
org.openhab.addons.cfg
org.ops4j.pax.logging.cfg
org.ops4j.pax.logging.cfg.dpkg-dist
org.ops4j.pax.url.mvn.cfg
org.ops4j.pax.web.cfg
overrides.properties
profile.cfg
scripts
shell.init.script
startup.properties
system.properties
users.properties
version.properties

Ok I’ve copy every file finishing by .dist on the others files but nothing did happen after a reboot.

Is there anything different from the ststemctl command?

Is there anything in openhab.log

Hi Rick!

I’ve done the stsemctl command and yes it was all the same, nothing has change.
Thanks for all your help, I’ve move on to flashing OpenHabian 1.4 on another SD card, I’ll make it work from scratch, late last night my Hue were working so it’ll be alright, I’ve setup Grafana so it may be a good thing that it did crash, I’ll learn something new, well what I’ve learn is make a duplicate of your SD card before doing any upgrade change on OH2.

Thanks again for all your help!