OH2.2 suddenly logging stopped this morning


(Michael Schnieder) #1

Hi,
I’m running OH2.2stable on a cubietruck/ssd with a bunch of homematic devices.
Everything runs stable since 2 months. But I figured out that logging has stopped this morning for whatever reason and can’t get it back to work again. OH itself is still running without any problem.
I spend the whole afternoon with reading similar posts and tried their solutions but so far I was not successful.
Since I’m more confused right now it would be great if someone just can ask me certain things to do to get some more information about my problem.

Thank you in advance,
Michel


(Rich Koshak) #2

Did you restart OH?

Did you restart the computer?

Unfortunately, weirdness with the logs is often the first sign of a failing SD card.


(Michael Schnieder) #3

Hello Rich,
first of all I have to say that your posts helped me a lot in setting up OH. So a big THANK YOU for that.

I run OH on an SSD which is pretty new, so I assume that ssd failure and space shouldn’t be my problem.
Yes I did restart OH and also my cubie several times without a change.


(Rich Koshak) #4

I misread that you are using an SSD.

Check the logging config and make sure there isn’t something weird going on there.

https://docs.openhab.org/administration/logging.html#config-file

Try stopping OH, removing all the log files, then starting OH again.

Look at syslog or journalctl to make sure that OH isn’t complaining about permissions on the log files.

Log into the Karaf console and see if you can see the logs from there.


(Michael Schnieder) #5

log:get at karaf shows following:
Anything unusual?

openhab> log:get
Logger │ Level
───────────────────────────────────────────────────┼──────
ROOT │ WARN
javax.jmdns │ ERROR
org.apache.karaf.jaas.modules.audit │ INFO
org.apache.karaf.kar.internal.KarServiceImpl │ ERROR
org.apache.karaf.shell.support │ OFF
org.eclipse.smarthome │ INFO
org.eclipse.smarthome.model.script.rules │ INFO
org.jupnp │ ERROR
org.openhab │ INFO
org.openhab.binding.homematic │ INFO
org.ops4j.pax.url.mvn.internal.AetherBasedResolver │ ERROR
org.ops4j.pax.web.pax-web-runtime │ OFF
smarthome.event │ INFO
smarthome.event.InboxUpdatedEvent │ ERROR
smarthome.event.ItemAddedEvent │ ERROR
smarthome.event.ItemRemovedEvent │ ERROR
smarthome.event.ItemStateEvent │ ERROR
smarthome.event.ThingAddedEvent │ ERROR
smarthome.event.ThingRemovedEvent │ ERROR
smarthome.event.ThingStatusInfoEvent │ ERROR


(Michael Schnieder) #6

I also stopped OH2 service, removed all logfiles, restarted OH2 again and all I can see are new created logfiles which are all empty.

In the config-file itself I cannot see anything unusal.

log:tail doesn’t seem to show anything. I waited now for more than 3 minutes, so there should normally show up something


(Rich Koshak) #7

Look at org.ops.blah.blah.logging.cfg (described in the link above. That is where the logging config is.

Can you log:tail the logs in the karaf console?


(Michael Schnieder) #8

I can’t see anything suspicous in the logging.cfg file (/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg). I even exchanged my file with the original one without any change.
log:tail in the karaf console shows nothing.
Thank you for your support so far.


(Rich Koshak) #9

If you can’t see the logs in the karaf console then your logging is horribly broken. I’ve nothing to recommend at this point short of a reinstall.


(Ben Clark) #10

Hi @Milmi12, Would you be able to post the results of the few lines:

cat /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg
sudo journalctl -u openhab2.service -b
openhab-cli info

(Michael Schnieder) #11

Hello Ben,
thank you for joining in.

michel@cubietruck:~$ cat /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg

Common pattern layout for appenders

#log4j2.pattern = %d{ISO8601} | %-5p | %-16t | %-32c{1} | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n

Root logger

log4j2.rootLogger.level = WARN
log4j2.rootLogger.appenderRefs = out, osgi
log4j2.rootLogger.appenderRef.out.ref = LOGFILE
log4j2.rootLogger.appenderRef.osgi.ref = OSGI

Karaf Shell logger

log4j2.logger.shell.name = org.apache.karaf.shell.support
log4j2.logger.shell.level = OFF
log4j2.logger.shell.appenderRefs = stdout
log4j2.logger.shell.appenderRef.stdout.ref = STDOUT

Security audit logger

log4j2.logger.audit.name = org.apache.karaf.jaas.modules.audit
log4j2.logger.audit.level = INFO
log4j2.logger.audit.additivity = false
log4j2.logger.audit.appenderRefs = audit
log4j2.logger.audit.appenderRef.audit.ref = AUDIT

openHAB specific logger configuration

log4j2.logger.openhab.name = org.openhab
log4j2.logger.openhab.level = INFO

log4j2.logger.smarthome.name = org.eclipse.smarthome
log4j2.logger.smarthome.level = INFO

log4j2.logger.smarthomeItemStateEvent.name = smarthome.event.ItemStateEvent
log4j2.logger.smarthomeItemStateEvent.level = ERROR
log4j2.logger.smarthomeItemAddedEvent.name = smarthome.event.ItemAddedEvent
log4j2.logger.smarthomeItemAddedEvent.level = ERROR
log4j2.logger.smarthomeItemRemovedEvent.name = smarthome.event.ItemRemovedEvent
log4j2.logger.smarthomeItemRemovedEvent.level = ERROR
log4j2.logger.smarthomeThingStatusInfoEvent.name = smarthome.event.ThingStatusInfoEvent
log4j2.logger.smarthomeThingStatusInfoEvent.level = ERROR
log4j2.logger.smarthomeThingAddedEvent.name = smarthome.event.ThingAddedEvent
log4j2.logger.smarthomeThingAddedEvent.level = ERROR
log4j2.logger.smarthomeThingRemovedEvent.name = smarthome.event.ThingRemovedEvent
log4j2.logger.smarthomeThingRemovedEvent.level = ERROR
log4j2.logger.smarthomeInboxUpdatedEvent.name = smarthome.event.InboxUpdatedEvent
log4j2.logger.smarthomeInboxUpdatedEvent.level = ERROR

log4j2.logger.events.name = smarthome.event
log4j2.logger.events.level = INFO
log4j2.logger.events.additivity = false
log4j2.logger.events.appenderRefs = event
log4j2.logger.events.appenderRef.event.ref = EVENT
log4j2.logger.events.appenderRef.osgi.ref = OSGI

log4j2.logger.jupnp.name = org.jupnp
log4j2.logger.jupnp.level = ERROR

log4j2.logger.jmdns.name = javax.jmdns
log4j2.logger.jmdns.level = ERROR

#log4j2.logger.org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper = ERROR
#log4j2.logger.org.ops4j.pax.web.service.jetty.internal.JettyServerWrapper = ERROR
#log4j2.logger.org.apache.karaf.kar.internal.KarServiceImpl = ERROR

Appenders configuration

Console appender not used by default (see log4j2.rootLogger.appenderRefs)

log4j2.appender.console.type = Console
log4j2.appender.console.name = STDOUT
log4j2.appender.console.layout.type = PatternLayout
log4j2.appender.console.layout.pattern = %d{HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n

Rolling file appender

log4j2.appender.out.type = RollingRandomAccessFile
log4j2.appender.out.name = LOGFILE
log4j2.appender.out.fileName = /var/log/openhab2/openhab.log
log4j2.appender.out.filePattern = /var/log/openhab2/openhab.log.%i
log4j2.appender.out.immediateFlush = true
log4j2.appender.out.append = true
log4j2.appender.out.layout.type = PatternLayout
log4j2.appender.out.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n
log4j2.appender.out.policies.type = Policies
log4j2.appender.out.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.out.policies.size.size = 16MB

Event log appender

log4j2.appender.event.type = RollingRandomAccessFile
log4j2.appender.event.name = EVENT
log4j2.appender.event.fileName = /var/log/openhab2/events.log
log4j2.appender.event.filePattern = /var/log/openhab2/events.log.%i
log4j2.appender.event.immediateFlush = true
log4j2.appender.event.append = true
log4j2.appender.event.layout.type = PatternLayout
log4j2.appender.event.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-26.26c] - %m%n
log4j2.appender.event.policies.type = Policies
log4j2.appender.event.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.event.policies.size.size = 16MB

Audit file appender

log4j2.appender.audit.type = RollingRandomAccessFile
log4j2.appender.audit.name = AUDIT
log4j2.appender.audit.fileName = /var/log/openhab2/audit.log
log4j2.appender.audit.filePattern = /var/log/openhab2/audit.log.%i
log4j2.appender.audit.append = true
log4j2.appender.audit.layout.type = PatternLayout
log4j2.appender.audit.layout.pattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%-5.5p] [%-36.36c] - %m%n
log4j2.appender.audit.policies.type = Policies
log4j2.appender.audit.policies.size.type = SizeBasedTriggeringPolicy
log4j2.appender.audit.policies.size.size = 8MB

OSGi appender

log4j2.appender.osgi.type = PaxOsgi
log4j2.appender.osgi.name = OSGI
log4j2.appender.osgi.filter = *


(Michael Schnieder) #12

michel@cubietruck:/var/log/openhab2$ sudo journalctl -u openhab2.service -b
– Logs begin at Sat 2018-03-03 03:13:05 CET, end at Sat 2018-03-03 14:43:04 CET. –
Mär 03 03:28:56 cubietruck karaf[31226]: 2018-03-03 03:28:56,517 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 04:00:00 cubietruck karaf[31226]: 2018-03-03 04:00:00,044 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log
Mär 03 06:00:00 cubietruck karaf[31226]: 2018-03-03 06:00:00,055 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log
Mär 03 06:34:00 cubietruck karaf[31226]: 2018-03-03 06:34:00,111 ESH-RuleEngine-334 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appende
Mär 03 08:00:00 cubietruck karaf[31226]: 2018-03-03 08:00:00,133 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log
Mär 03 09:31:02 cubietruck karaf[31226]: 2018-03-03 09:31:02,056 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 09:50:15 cubietruck karaf[31226]: 2018-03-03 09:50:15,128 ESH-RuleEngine-387 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appende
Mär 03 10:00:00 cubietruck karaf[31226]: 2018-03-03 10:00:00,062 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log
Mär 03 10:08:02 cubietruck karaf[31226]: 2018-03-03 10:08:02,952 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 10:48:26 cubietruck karaf[31226]: 2018-03-03 10:48:26,273 Thread-13465 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGF
Mär 03 11:06:05 cubietruck karaf[31226]: 2018-03-03 11:06:05,951 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 11:47:12 cubietruck karaf[31226]: 2018-03-03 11:47:12,413 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 11:56:58 cubietruck karaf[31226]: 2018-03-03 11:56:58,071 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 12:20:57 cubietruck karaf[31226]: 2018-03-03 12:20:57,265 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 13:37:40 cubietruck karaf[31226]: 2018-03-03 13:37:40,281 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 13:57:54 cubietruck karaf[31226]: 2018-03-03 13:57:54,456 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 14:12:04 cubietruck karaf[31226]: 2018-03-03 14:12:04,836 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE
Mär 03 14:29:18 cubietruck karaf[31226]: 2018-03-03 14:29:18,035 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE


(Michael Schnieder) #13

michel@cubietruck:~$ openhab-cli info
Version: 2.2.0 (Build)

User: openhab (Active Process 31226)
User Groups: openhab tty dialout audio

Directories: Folder Name | Path | User:Group
----------- | ---- | ----------
OPENHAB_HOME | /usr/share/openhab2 | openhab:openhab
OPENHAB_RUNTIME | /usr/share/openhab2/runtime | openhab:openhab
OPENHAB_USERDATA | /var/lib/openhab2 | openhab:openhab
OPENHAB_CONF | /etc/openhab2 | openhab:openhab
OPENHAB_LOGDIR | /var/log/openhab2 | openhab:openhab
OPENHAB_BACKUPS | /var/lib/openhab2/backups | openhab:openhab

URLs: http://192.168.1.202:8080
https://192.168.1.202:8443


(Michael Schnieder) #14

And here are the files with their rights.

michel@cubietruck:/var/log/openhab2$ ls -l
total 0
-rw-rw-r-- 1 openhab openhab 0 Mär 1 19:44 audit.log
-rw-rw-r-- 1 openhab openhab 0 Mär 3 14:45 events.log
-rw-rw-r-- 1 openhab openhab 0 Mär 3 14:29 openhab.log
-rw-rw-r-- 1 openhab openhab 0 Mär 1 22:00 rules.log

Since I copied away the old logfiles the system itself created new ones. I set the rights to 664 just to be sure. But still the system is not able to write into the files and I have no clue why.

Thank you for your help,
Michel


(Michael Schnieder) #15

I now changed the rights of the log-files to -rw-rw-rw- and restarted openhab2.service thereafter just to be sure but still no logging available …


(Michael Schnieder) #16

I just called again journalctl. Almost at the end the is a line with an error message IOException: No space left on device …

michel@cubietruck:~$ sudo journalctl -u openhab2.service -b
[sudo] password for michel:
– Logs begin at Sat 2018-03-03 04:40:14 CET, end at Sat 2018-03-03 15:15:11 CET. –
Mär 03 06:00:00 cubietruck karaf[31226]: 2018-03-03 06:00:00,055 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingExc
Mär 03 06:34:00 cubietruck karaf[31226]: 2018-03-03 06:34:00,111 ESH-RuleEngine-334 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Erro
Mär 03 08:00:00 cubietruck karaf[31226]: 2018-03-03 08:00:00,133 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingExc
Mär 03 09:31:02 cubietruck karaf[31226]: 2018-03-03 09:31:02,056 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 09:50:15 cubietruck karaf[31226]: 2018-03-03 09:50:15,128 ESH-RuleEngine-387 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Erro
Mär 03 10:00:00 cubietruck karaf[31226]: 2018-03-03 10:00:00,062 openHAB-job-scheduler_Worker-2 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingExc
Mär 03 10:08:02 cubietruck karaf[31226]: 2018-03-03 10:08:02,952 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 10:48:26 cubietruck karaf[31226]: 2018-03-03 10:48:26,273 Thread-13465 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writ
Mär 03 11:06:05 cubietruck karaf[31226]: 2018-03-03 11:06:05,951 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 11:47:12 cubietruck karaf[31226]: 2018-03-03 11:47:12,413 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 11:56:58 cubietruck karaf[31226]: 2018-03-03 11:56:58,071 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 12:20:57 cubietruck karaf[31226]: 2018-03-03 12:20:57,265 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 13:37:40 cubietruck karaf[31226]: 2018-03-03 13:37:40,281 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 13:57:54 cubietruck karaf[31226]: 2018-03-03 13:57:54,456 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 14:12:04 cubietruck karaf[31226]: 2018-03-03 14:12:04,836 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 14:29:18 cubietruck karaf[31226]: 2018-03-03 14:29:18,035 Thread-69 ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error writing
Mär 03 14:54:07 cubietruck systemd[1]: Stopping openHAB 2 - empowering the smart home…
Mär 03 14:54:13 cubietruck karaf[31226]: 2018-03-03 14:54:13,748 Framework stop ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.logging.log4j.core.appender.AppenderLoggingException: Error wr
Mär 03 14:54:43 cubietruck karaf[31226]: WARNING: EventAdmin: Event Task Processing Interrupted. Events may not be recieved in proper order.
Mär 03 14:54:43 cubietruck systemd[1]: Stopped openHAB 2 - empowering the smart home.
Mär 03 14:54:44 cubietruck systemd[1]: Started openHAB 2 - empowering the smart home.
Mär 03 14:55:12 cubietruck karaf[2521]: 2018-03-03 14:55:12,037 CM Configuration Updater (ManagedService Update: pid=[org.openhab.telegram]) ERROR Unable to write to stream /var/log/openhab2/openhab.log for appender LOGFILE: org.apache.l
Mär 03 14:55:12 cubietruck karaf[2521]: 2018-03-03 14:55:12,060 CM Configuration Updater (ManagedService Update: pid=[org.openhab.telegram]) ERROR An exception occurred processing Appender LOGFILE org.apache.logging.log4j.core.appender.A
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.writeToDestination(RollingRandomAccessFileManager.java:113)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.OutputStreamManager.flushBuffer(OutputStreamManager.java:288)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.flush(RollingRandomAccessFileManager.java:128)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.directEncodeEvent(AbstractOutputStreamAppender.java:179)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.tryAppend(AbstractOutputStreamAppender.java:170)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.AbstractOutputStreamAppender.append(AbstractOutputStreamAppender.java:161)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.RollingRandomAccessFileAppender.append(RollingRandomAccessFileAppender.java:218)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:448)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:433)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.logParent(LoggerConfig.java:439)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:434)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:417)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:403)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:63)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.Logger.logMessage(Logger.java:146)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.doLog0(PaxLoggerImpl.java:151)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.doLog(PaxLoggerImpl.java:144)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.ops4j.pax.logging.log4j2.internal.PaxLoggerImpl.inform(PaxLoggerImpl.java:176)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.ops4j.pax.logging.internal.TrackingLogger.inform(TrackingLogger.java:86)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.ops4j.pax.logging.slf4j.Slf4jLogger.info(Slf4jLogger.java:495)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.openhab.action.telegram.internal.TelegramActionService.updated(TelegramActionService.java:67)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1479)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1435)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:141)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:109)
Mär 03 14:55:12 cubietruck karaf[2521]: at java.lang.Thread.run(Thread.java:748)
Mär 03 14:55:12 cubietruck karaf[2521]: Caused by: java.io.IOException: No space left on device
Mär 03 14:55:12 cubietruck karaf[2521]: at java.io.RandomAccessFile.writeBytes(Native Method)
Mär 03 14:55:12 cubietruck karaf[2521]: at java.io.RandomAccessFile.write(RandomAccessFile.java:525)
Mär 03 14:55:12 cubietruck karaf[2521]: at org.apache.logging.log4j.core.appender.rolling.RollingRandomAccessFileManager.writeToDestination(RollingRandomAccessFileManager.java:109)

So here is my file-system:

michel@cubietruck:~$ df
Filesystem     1K-blocks    Used Available Use% Mounted on
udev              961160       0    961160   0% /dev
tmpfs             205940   22484    183456  11% /run
/dev/sda1      114861188 2161964 107133980   2% /
tmpfs            1029700       0   1029700   0% /dev/shm
tmpfs               5120       4      5116   1% /run/lock
tmpfs            1029700       0   1029700   0% /sys/fs/cgroup
tmpfs            1029700      32   1029668   1% /tmp
/dev/mmcblk0p1   7455984 1070900   6280072  15% /media/mmcboot
log2ram            51200    4176     47024   9% /var/log
tmpfs             205940       0    205940   0% /run/user/1000


(Rich Koshak) #17

It’s a lot easier to read this and configs if you How to use code fences

Despite df says, OH is encountering an error that looks to it like your drive is out of space. I’m not sure there is anything that can be done from the OH side of things beyond filing an issue and continue to look for something in the os that could be causing a problem. It certainly isn’t a config problem as far as I can tell.


(Michael Schnieder) #18

Thank you, Rich, for your advice and your link.
I just solved my problem without knowing exactly what I the problem caused.
I think my problem is related to armbian os which mounts /var/log to log2ram. So I searched for log2ram and found following information:
/var easily get full with log2ram
So first I had to delete some log files and second restarted log2ram service.
I also updated armbian os and now everything is back in service again.
Many thanks to Rich and Ben for your help!


(Ben Clark) #19

Glad you have it working!