Unable to load backup from RaspberryMatic 2 to 3

Support for our english speaking visitors

Moderator: Co-Administratoren

Antworten
User01
Beiträge: 10
Registriert: 16.02.2012, 16:07

Unable to load backup from RaspberryMatic 2 to 3

Beitrag von User01 » 18.11.2018, 23:21

Hi,

I'm trying to upgrade from an older version of RaspberryMatic 2 to the latest version of 3.

When I try to load the previous backup I made, I keep getting an error message saying that there is an issue with the backup:

"Backup fehlerhaft/unvollstaendig (z.B apkx datei fehlt Raspmatic)"

I have tried to upgrade instead to the latest 2.x version and that loads my backup without any issues. If I go one version further, to the first 3.x version, then I get this message.

Does anyone have an idea how I might get past this? I have many Homematic devices and to have to start from scratch would take at least a full day of configuring and I'd like to avoid that!

Thanks!

tomi_cc16
Beiträge: 1150
Registriert: 30.11.2013, 16:35
Wohnort: Mordor
Hat sich bedankt: 23 Mal
Danksagung erhalten: 56 Mal

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von tomi_cc16 » 19.11.2018, 00:58

Hi the apkx error message is just general and does not show the problem, could you post the complete error post.

Here as an exampel:
viewtopic.php?f=65&t=46130&hilit=apkx&start=10#p465095

User01
Beiträge: 10
Registriert: 16.02.2012, 16:07

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von User01 » 19.11.2018, 20:03

Thanks for the quick reply. Here is the output from my logs. Looks like this is the issue:

The persistence directory /tmp/backup/usr/local/etc/config/crRFD/data doesn't exist

I'm not coming up with much though when I search for that. Any ideas?

Code: Alles auswählen

# /bin/checkUsrBackup.sh /tmp/backup/usr/local; echo $?
20:00:19,041 DEBUG [io.netty.util.internal.logging.InternalLoggerFactory:debug] () Using SLF4J as the default logging framework
20:00:19,058 DEBUG [io.netty.util.ResourceLeakDetector:debug] () -Dio.netty.leakDetection.level: simple
20:00:19,067 DEBUG [io.netty.util.ResourceLeakDetector:debug] () -Dio.netty.leakDetection.maxRecords: 4
20:00:19,124 DEBUG [io.netty.channel.MultithreadEventLoopGroup:debug] () -Dio.netty.eventLoopThreads: 8
20:00:19,188 DEBUG [io.netty.util.internal.PlatformDependent:debug] () -Dio.netty.noUnsafe: false
20:00:19,196 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () java.nio.Buffer.address: available
20:00:19,198 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () sun.misc.Unsafe.theUnsafe: available
20:00:19,202 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () sun.misc.Unsafe.copyMemory: available
20:00:19,204 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () direct buffer constructor: available
20:00:19,208 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () java.nio.Bits.unaligned: available, false
20:00:19,208 DEBUG [io.netty.util.internal.PlatformDependent0:debug] () java.nio.DirectByteBuffer.<init>(long, int): available
20:00:19,212 DEBUG [io.netty.util.internal.Cleaner0:debug] () java.nio.ByteBuffer.cleaner(): available
20:00:19,215 DEBUG [io.netty.util.internal.PlatformDependent:debug] () Java version: 8
20:00:19,216 DEBUG [io.netty.util.internal.PlatformDependent:debug] () sun.misc.Unsafe: available
20:00:19,218 DEBUG [io.netty.util.internal.PlatformDependent:debug] () -Dio.netty.noJavassist: false
20:00:19,222 DEBUG [io.netty.util.internal.PlatformDependent:debug] () Javassist: unavailable
20:00:19,233 DEBUG [io.netty.util.internal.PlatformDependent:debug] () You don't have Javassist in your class path or you don't have enough permission to load dynamically generated classes.  Please check the configuration for better performance.
20:00:19,235 DEBUG [io.netty.util.internal.PlatformDependent:debug] () -Dio.netty.tmpdir: /tmp (java.io.tmpdir)
20:00:19,236 DEBUG [io.netty.util.internal.PlatformDependent:debug] () -Dio.netty.bitMode: 32 (sun.arch.data.model)
20:00:19,237 DEBUG [io.netty.util.internal.PlatformDependent:debug] () -Dio.netty.noPreferDirect: false
20:00:19,237 DEBUG [io.netty.util.internal.PlatformDependent:debug] () io.netty.maxDirectMemory: 247332864 bytes
20:00:19,305 DEBUG [io.netty.channel.nio.NioEventLoop:debug] () -Dio.netty.noKeySetOptimization: false
20:00:19,306 DEBUG [io.netty.channel.nio.NioEventLoop:debug] () -Dio.netty.selectorAutoRebuildThreshold: 512
20:00:19,314 DEBUG [io.netty.util.internal.PlatformDependent:debug] () org.jctools-core.MpscChunkedArrayQueue: available
20:00:19,497 DEBUG [io.netty.resolver.dns.DnsServerAddresses:debug] () Default DNS servers: [/172.17.0.1:53] (sun.net.dns.ResolverConfiguration)
20:00:19,509 DEBUG [io.netty.util.NetUtil:debug] () -Djava.net.preferIPv4Stack: false
20:00:19,510 DEBUG [io.netty.util.NetUtil:debug] () -Djava.net.preferIPv6Addresses: false
20:00:19,515 DEBUG [io.netty.util.NetUtil:debug] () Loopback interface: lo (lo, 0:0:0:0:0:0:0:1%lo)
20:00:19,518 DEBUG [io.netty.util.NetUtil:debug] () /proc/sys/net/core/somaxconn: 128
20:00:19,593 DEBUG [de.eq3.cbcs.vertx.management.VertxManager:debug] () State changed from NONE to INITIALIZED
20:00:19,598 INFO  [de.eq3.ccu.server.ip.validation.ValidateHmIPBackup:info] () VALIDATION Step 2: initialize device descriptions Base path: /tmp/backup/usr/local
20:00:23,311 WARN  [de.eq3.cbcs.devicedescription.ChannelTypeDescription:warn] () Invalid state parameter or subtype: Parameter ERROR_POWER_SHORT_CIRCUIT_BUS_1 subtype=default
20:00:23,312 WARN  [de.eq3.cbcs.devicedescription.ChannelTypeDescription:warn] () Invalid state parameter or subtype: Parameter ERROR_POWER_SHORT_CIRCUIT_BUS_2 subtype=default
20:00:23,312 WARN  [de.eq3.cbcs.devicedescription.ChannelTypeDescription:warn] () Invalid state parameter or subtype: Parameter ERROR_SHORT_CIRCUIT_DATA_LINE_BUS_1 subtype=default
20:00:23,312 WARN  [de.eq3.cbcs.devicedescription.ChannelTypeDescription:warn] () Invalid state parameter or subtype: Parameter ERROR_SHORT_CIRCUIT_DATA_LINE_BUS_2 subtype=default
20:00:23,313 WARN  [de.eq3.cbcs.devicedescription.ChannelTypeDescription:warn] () Invalid state parameter or subtype: Parameter ERROR_BUS_CONFIG_MISMATCH subtype=default
20:00:23,329 INFO  [de.eq3.ccu.server.ip.validation.ValidateHmIPBackup:info] () VALIDATION Step 3: initialize kryo persistence persistence home: /etc/config/crRFD/data Base path: /tmp/backup/usr/local
20:00:23,437 INFO  [de.eq3.ccu.server.ip.validation.ValidateHmIPBackup:info] () VALIDATION Step 3.1: kryo persistence directory /tmp/backup/usr/local/etc/config/crRFD/data
20:00:23,440 ERROR [de.eq3.ccu.server.ip.validation.ValidateHmIPBackup:error] () The persistence directory /tmp/backup/usr/local/etc/config/crRFD/data doesn't exist

User01
Beiträge: 10
Registriert: 16.02.2012, 16:07

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von User01 » 19.11.2018, 20:23

Just checked on the Homematic version that I backed up from, and that directory does exist:

Code: Alles auswählen

# ls -lrt /usr/local/etc/config/crRFD/data/
total 16
-rw-r--r--    1 root     root           209 May 24  2016 3014F711A0000350899A0CEA.apkx
-rw-r--r--    1 root     root           123 Mar  5  2017 3014F711A0000350899A0CEA.ap
-rw-r--r--    1 root     root           209 Mar  5  2017 3014F711A061A7D5699DB805.apkx
-rw-r--r--    1 root     root           123 Nov 19 20:10 3014F711A061A7D5699DB805.ap

tomi_cc16
Beiträge: 1150
Registriert: 30.11.2013, 16:35
Wohnort: Mordor
Hat sich bedankt: 23 Mal
Danksagung erhalten: 56 Mal

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von tomi_cc16 » 20.11.2018, 11:11

I wrote a PN to Jens (jmaus) the developer of RaspberryMatic if he could have a look on your error log.

Hope it will help.

Benutzeravatar
jmaus
Beiträge: 9819
Registriert: 17.02.2015, 14:45
System: Alternative CCU (auf Basis OCCU)
Wohnort: Dresden
Hat sich bedankt: 459 Mal
Danksagung erhalten: 1856 Mal
Kontaktdaten:

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von jmaus » 20.11.2018, 17:00

The problem seems to be that you have more than one *.apkx file in your /etc/config/crRFD/data directory. These files refer to the actual rf module you have currently installed on your Pi. And normally you should only have a single apkx file including its corresponding *.dev file.

If you currently don‘t have any HmIP devices in you installation I would suggest to completely delete the data directory and reboot. After the reboot you should then only have a single apkx file and you can recreate the backup again and move over to newer versions.

But if you have HmIP devices you need to find put which of the two apkx files is the right one. For this compare the serial number of your currently installed rf module and delte the other one which doesn‘t match it. then reboot and recreate the backup.
RaspberryMatic 3.75.6.20240316 @ ProxmoxVE – ~200 Hm-RF/HmIP-RF/HmIPW Geräte + ioBroker + HomeAssistant – GitHub / Sponsors / PayPal / ☕️

User01
Beiträge: 10
Registriert: 16.02.2012, 16:07

Re: Unable to load backup from RaspberryMatic 2 to 3

Beitrag von User01 » 21.11.2018, 22:57

Thanks very much for your help. That solved the problem.

Antworten

Zurück zu „HomeMatic - english“