Content of items file suddenly changed itself - HELP! URGENT!

Hello,

I just wanted to modify my .items file but as i opened it it suddenly has no single item etc. inside anymore just this:

n all platforms and between C/C++
 and Java software.
Homepage: http://www.icu-project.org
Tag: role::shared-lib, works-with::unicode
Section: java
Priority: optional
Filename: pool/main/i/icu4j-4.4/libicu4j-4.4-java_4.4.2.2-2_all.deb

Package: libicu4j-49-java
Source: icu4j-49
Version: 49.1-1
Installed-Size: 9976
Maintainer: Hilko Bengen <bengen@debian.org>
Architecture: all
Size: 9159648
SHA256: 7c6fe8e6c883bb65b272bed207411a948a05375588eaeadaa6af0181b57f887d
SHA1: 48fcca4ba280344baca95cb66eba4ac09d4b2004
MD5sum: 36619ad7ae46618f394a15370744cb54
Description: Library for Unicode support and internationalization
 ICU is a mature, widely used set of C/C++ and Java libraries for
 Unicode support, software internationalization and globalization
 (i18n/g11n). It grew out of the JDK 1.1 internationalization APIs, which
 the ICU team contributed, and the project continues to be developed
 for the most advanced Unicode/i18n support. ICU is widely portable and
 gives applications the same results on all platforms and between C/C++
 and Java software.
Homepage: http://www.icu-project.org/
Section: java
Priority: optional
Filename: pool/main/i/icu4j-49/libicu4j-49-java_49.1-1_all.deb

Package: libicu4j-java
Source: icu4j
Version: 4.2.1.1-3
Installed-Size: 6317
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Architecture: all
Size: 5710356
SHA256: 69c95cee5687e8024ed50b93a77866b108def05856c924292bbc770754cda278
SHA1: 2f58a208fbe67e0a215c945434f98e45afcb7cea
MD5sum: aad601200cd615cfcb7cab1b53521729
Description: Library for Unicode support and internationalization
 ICU is a mature, widely used set of C/C++ and Java libraries for
 Unicode support, software internationalization and globalization
 (i18n/g11n). It grew out of the JDK 1.1 internationalization APIs, which
 the ICU team contributed, and the project continues to be developed
 for the most advanced Unicode/i18n support. ICU is widely portable and
 gives applications the same results on all platforms and between C/C++
 and Java software.
Homepage: http://www.icu-project.org
Tag: devel::lang:java, devel::library, implemented-in::java, role::devel-lib,
 role::shared-lib, works-with::unicode
Section: java
Priority: optional
Filename: pool/main/i/icu4j/libicu4j-java_4.2.1.1-3_all.deb

Package: libicu52
Source: icu
Version: 52.1-8+deb8u6
Architecture: armhf
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Installed-Size: 26535
Pre-Depends: multiarch-support
Depends: libc6 (>= 2.7), libgcc1 (>= 1:4.4.0), libstdc++6 (>= 4.9)
Multi-Arch: same
Homepage: http://www.icu-project.org
Priority: optional
Section: libs
Filename: pool/main/i/icu/libicu52_52.1-8+deb8u6_armhf.deb
Size: 6555192
SHA256: 13eb283982840e0349e539956f646c5c70fdaebadbcdac7817270a3d07c86018
SHA1: e52e7c236b62c123abc054dd7ada7561da9f89c5
MD5sum: 52eb05cd2f032449dc12d57aa9ac25c1
Description: International Components for Unicode
 ICU is a C++ and C library that provides robust and full-featured
 Unicode and locale support.  This package contains the runtime
 libraries for ICU.

Package: libicu52-dbg
Source: icu
Version: 52.1-8+deb8u6
Architecture: armhf
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Installed-Size: 6691
Depends: libicu52 (= 52.1-8+deb8u6)
Homepage: http://www.icu-project.org
Priority: extra
Section: debug
Filename: pool/main/i/icu/libicu52-dbg_52.1-8+deb8u6_armhf.deb
Size: 5844600
SHA256: 3198963761a500b011dc5c9bb69293cfde47d5a92713e9be45e99e8e88c7014e
SHA1: f1a41d78d0e4efb7018f7ce4c4d324c8521fb9e3
MD5sum: 3ab0cd52ecf31c213388a32e71eeb59c
Description: International Components for Unicode
 ICU is a C++ and C library that provides robust and full-featured
 Unicode and locale support.  This package contains debugging symbols
 for the libraries.

Package: libid3-3.8.3-dev
Source: id3lib3.8.3
Version: 3.8.3-15
Architecture: armhf
Maintainer: Stefan Ott <stefan@ott.net>
Installed-Size: 742
Depends: libid3-3.8.3c2a (= 3.8.3-15), zlib1g-dev
Recommends: libid3-tools
Suggests: libid3-doc
Conflicts: libid3-dev
Replaces: libid3-dev
Provides: libid3-dev
Homepage: http://id3lib.sourceforge.net/
Priority: optional
Section: libdevel
Filename: pool/main/i/id3lib3.8.3/libid3-3.8.3-dev_3.8.3-15_armhf.deb
Size: 252036
SHA256: 9846ca428dea68f28d39d774313f45f831da29794dda3aee770728e55e560ba4
SHA1: 78a8fcbfd24605845b38ea91f81848ea2ad54c57
MD5sum: 0a48c23bb7addcf4362a25e3b62a00f7
Description: ID3 Tag Library: Development Libraries and Header Files
 This package contains the headers that programmers will need to develop
 applications which will use id3lib, the software library for ID3v1 and ID3v2
 tag manipulation.

Package: libid3-3.8.3c2a
Source: id3lib3.8.3
Version: 3.8.3-15
Architecture: armhf
Maintainer: Stefan Ott <stefan@ott.net>
Installed-Size: 309
Depends: libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libstdc++6 (>= 4.6), zlib1g (>= 1:1.1.4)
Suggests: libid3-tools
Conflicts: libid3-3.8.3, libid3-3.8.3c2
Replaces: libid3-3.8.3, libid3-3.8.3c2
Homepage: http://id3lib.sourceforge.net/
Priority: optional
Section: libs
Filename: pool/main/i/id3lib3.8.3/libid3-3.8.3c2a_3.8.3-15_armhf.deb
Size: 160486
SHA256: c7f8ecaeb9d27721aad40194dad393f858ed138af14b965c6283fd3b994c17f1
SHA1: 8596fb9e14174aa1b15de309aac8578fc40c5733
MD5sum: 272bb1c0233fbf58743854ed9c48da92
Description: library for manipulating ID3v1 and ID3v2 tags
 This package provides a software library for manipulating ID3v1 and ID3v2
 tags. It provides a convenient interface for software developers to include
 standards-compliant ID3v1/2 tagging capabilities in their applications.
 Features include identification of valid tags, automatic size conversions,
 (re)synchronisation of tag frames, seamless tag (de)compression, and
 optional padding facilities.

Package: libid3-doc
Source: id3lib3.8.3
Version: 3.8.3-15
Installed-Size: 4023
Maintainer: Stefan Ott <stefan@ott.net>
Architecture: all
Size: 632734
SHA256: 3735dfd0b4f8b56fe7518d0dc2fee630b5f222e64b2f33f5c1d04e7bb4155de1
SHA1: 53504633e41652e599c2a47eec2bd727847bc495
MD5sum: 189b496a43e4dbb9e864cb585aa55dfb
Description: ID3 Tag Library: Documentation
 This package contains the documentation that programmers will need to develop
 applications which will use id3lib, the software library for ID3v1 and ID3v2
 tag manipulation.
Homepage: http://id3lib.sourceforge.net/
Tag: devel::doc, made-of::html, role::documentation
Section: doc
Priority: optional
Filename: pool/main/i/id3lib3.8.3/libid3-doc_3.8.3-15_all.deb

Package: libid3-tools
Source: id3lib3.8.3
Version: 3.8.3-15
Architecture: armhf
Maintainer: Stefan Ott <stefan@ott.net>
Installed-Size: 175
Depends: libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libid3-3.8.3c2a, libstdc++6 (>= 4.4.0), zlib1g (>= 1:1.1.4)
Breaks: libid3-3.8.3-dev (<< 3.8.3-11), libid3-3.8.3c2a (<< 3.8.3-11)
Replaces: libid3-3.8.3-dev (<< 3.8.3-11), libid3-3.8.3c2a (<< 3.8.3-11)
Homepage: http://id3lib.sourceforge.net/
Priority: optional
Section: sound
Filename: pool/main/i/id3lib3.8.3/libid3-tools_3.8.3-15_armhf.deb
Size: 101942
SHA256: 91319eb3f59f8d27373d6af7ffba765b7d38c87c255367d2804d98af818d71a1
SHA1: 56e6acaa5562c9e3b2c2d3b6f0e79bd1fa403bc9
MD5sum: 3f6e1fb134b0f81f0e3eeb87834a02dd
Description: ID3 Tag Library: Utilities
 This package contains some utilities that belong with id3lib, the software
 library for ID3v1 and ID3v2 tag manipulation. The utilities are:
 id3cp, id3tag, id3convert, id3info.

Package: libid3tag0
Source: libid3tag
Version: 0.15.1b-11
Architecture: armhf
Maintainer: Mad Maintainers <pkg-mad-maintainers@lists.alioth.debian.org>
Installed-Size: 85
Depends: libc6 (>= 2.4), zlib1g (>= 1:1.1.4)
Priority: optional
Section: libs
Filename: pool/main/libi/libid3tag/libid3tag0_0.15.1b-11_armhf.deb
Size: 26950
SHA256: 51df80d93eb0cf464ab19ab75791bad9a08f134675bf4368a2ef04e99945cc09
SHA1: 31356e2336804b280f7383105b3de82ef97bc03d
MD5sum: c4d43096b03fba1d3ca51f2114cb567f
Description: ID3 tag reading library from the MAD project
 ID3 tag manipulation library with full support for reading ID3v1, ID3v1.1,
 ID3v2.2, ID3v2.3, and ID3v2.4 tags, as well as support for writing ID3v1,
 ID3v1.1, and ID3v2.4 tags.

Package: libid3tag0-dev
Source: libid3tag
Version: 0.15.1b-11
Architecture: armhf
Maintainer: Mad Maintainers <pkg-mad-maintainers@lists.alioth.debian.org>
Installed-Size: 122
Depends: libid3tag0 (= 0.15.1b-11), pkg-config, zlib1g-dev
Priority: optional
Section: libdevel
Filename: pool/main/libi/libid3tag/libid3tag0-dev_0.15.1b-11_armhf.deb
Size: 32102
SHA256: e7d7f34c026258d4ed104b8c105107953694af0cc64ca8f6977566eecd88c3de
SHA1: aeefac2951e256887441bcdaf59bb06f56783594
MD5sum: f25f1135342c57fe3ab420d33707aabc
Description: ID3 tag reading library from the MAD project
 ID3 tag manipulation library with full support for reading ID3v1, ID3v1.1,
 ID3v2.2, ID3v2.3, and ID3v2.4 tags, as well as support for writing ID3v1,
 ID3v1.1, and ID3v2.4 tags.
 .
 This is the package you need to develop or compile applications that
 use id3tag.

Package: libident
Version: 0.22-3
Architecture: armhf
Maintainer: Paul Slootman <paul@debian.org>
Installed-Size: 62
Depends: libc6 (>= 2.7)
Suggests: libident-dev
Priority: important
Section: libs
Filename: pool/main/libi/libident/libident_0.22-3_armhf.deb
Size: 13520
SHA256: 7d465ef672f68627fe2d01eb3b19d0f9bd77a6eed2dc142bf19bf23382961560
SHA1: 2d290cf517d67ca4b5cef5c46a03ed6e0b0c4f98
MD5sum: bea20c53c1902467d40ee5ad8cf9c362
Description: simple RFC1413 client library - runtime
 This is a small library to interface to the Ident protocol server;
 "ident" enables a remote host to find out who's the owner of a
 network connection.
 .
 /usr/sbin/in.identtestd is a small daemon (to be started from inetd)
 that does an ident lookup on you if you telnet into it. Can be used
 to verify that your Ident server is working correctly.

Package: libident-dev
Source: libident
Version: 0.22-3
Architecture: armhf
Maintainer: Paul Slootman <paul@debian.org>
Installed-Size: 54
Depends: libident (= 0.22-3), libc6 (>= 2.7)
Priority: optional
Section: libdevel
Filename: pool/main/libi/libident/libident-dev_0.22-3_armhf.deb
Size: 8788
SHA256: a13bab126c80140df7a125395d79aae6c8f8818a3c278073067d253bc89b41d4
SHA1: d65ed1b687ab5651b948de6ecf29300e0bfd0292
MD5sum: 742556027027b8a7a71a0a68b19e0c25
Description: simple RFC1413 client library - development
 This is a small library to interface to the Ident protocol server.

Package: libidl-dev
Source: libidl
Version: 0.8.14-0.4
Architecture: armhf
Maintainer: Se

but still all of my items are shown in paper ui.

What kind of error is this ? I did not modified the items file. How can I get it back to normal ?

if i check /var/lib/openhab2/jsondb it also has the same weird content

If you are on an SBC (e.g. Raspberry Pi) and running with an SD card, your SD card is failing. At this point I hope you have a recent backup because I don’t know if you can recover your files from this card.

You can try a reboot and see if the original .items files come back but at this point if you don’t have a good backup it’s

Search the forum for lots and lots and lots of discussion about how to minimize and avoid the SD card wear out problem. The tl;dr is 1. have good backup and restore procedures and 2. don’t run off of an SD card and use a NAS or external HDD or SDD.

As you said the sd card was “killed”. I had a recent backup of my files.

I am currently trying to setup amanda to make an raw backup to my NAS.

Currently I am searching for a good tutorial on how I can mount it as NFS Share, but could not find a tutorial where it also shows where to put the login to the nas.

One more IMPORTANT question:
Is there a way to move the whole system without needing to set everything up again to another device such as an external HDD?

If you are running on openHABian then there is an option to move your running system off of the SD card and onto an USB drive. Beyond that search Google. There a dozens of tutorials.

1 Like