I recently installed the harbour-containers app through the Chum GUI application and attempted to set up a Debian container. I accidentally closed the Containers app while the the container was being set up. After restarting the app, the GUI elements (the existing container and the plus symbol to add a new container) had disappeared. I tried reinstalling the Containers app and rebooting the device but these did not fix the problem.
I’m afraid I’ve broken some dependency when closing the app during the container setup.
Any help with troubleshooting the problem is greatly appreciated!
Loading repository data...
Reading installed packages...
Information for package perl:
-----------------------------
Repository : jolla
Name : perl
Version : 2:5.16.3-1.7.6.jolla
Arch : aarch64
Vendor : meego
Installed Size : 9.8 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : perl-2:5.16.3-1.7.6.jolla.src
Upstream URL : http://www.perl.org/
Summary : Practical Extraction and Report Language
Description :
Perl is a high-level programming language with roots in C, sed, awk and
shell
scripting. Perl is good at handling processes and files, and is especially
good at handling text. Perl's hallmarks are practicality and efficiency.
While it is used to do a lot of different things, Perl's most common
applications are system administration utilities and web programming. A
large
proportion of the CGI scripts on the web are written in Perl. You need the
perl package installed on your system so that your system can handle Perl
scripts.
Install this package if you want to program in Perl or enable your system to
handle Perl scripts.
Loading repository data...
Reading installed packages...
'harbour-containers' is already installed.
No update candidate for 'harbour-containers-0.8.1-1.3.1.bso.aarch64'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
So I should be missing no dependencies if I’m interpreting this correctly.
Unfortunately Containers still remains in a bugged state after a forced reinstall. I also did zypper infoon the packages you gave in chat earlier and they all appear to be installed.
hello, i got the same issue one month ago and never fixed this problem. The plus symbol had disappeared. try the same procedure like your but with no positive result.
I’ll add this here as well. Starting the app from the terminal gives the following output.
[D] unknown:0 - Using Wayland-EGL
library "libui_compat_layer.so" not found
library "libutils.so" not found
library "libcutils.so" not found
library "libhardware.so" not found
library "android.hardware.graphics.mapper@2.0.so" not found
library "android.hardware.graphics.mapper@2.1.so" not found
library "android.hardware.graphics.mapper@3.0.so" not found
library "android.hardware.graphics.mapper@4.0.so" not found
library "libc++.so" not found
library "libhidlbase.so" not found
library "libgralloctypes.so" not found
library "android.hardware.graphics.common@1.2.so" not found
library "libion.so" not found
library "libz.so" not found
library "libhidlmemory.so" not found
library "android.hidl.memory@1.0.so" not found
library "vendor.qti.qspmhal@1.0.so" not found
[D] onCompleted:12 - DB created.
[W] unknown:12 - file:///usr/share/harbour-containers/qml/harbour-containers.qml:12:5: QML Daemon: QDBusError("org.freedesktop.DBus.Python.subprocess.CalledProcessError", "Traceback (most recent call last):\n File \"/usr/lib64/python3.8/site-packages/dbus/service.py\", line 711, in _message_cb\n retval = candidate_method(self, *args, **keywords)\n File \"/usr/share/harbour-containers/service/daemon.py\", line 475, in get_containers\n self._refresh()\n File \"/usr/share/harbour-containers/service/daemon.py\", line 113, in _refresh\n self.containers = lxc.get_containers()\n File \"/usr/share/harbour-containers/service/libs/lxc.py\", line 41, in get_containers\n cmd_out = subprocess.check_output(['lxc-info', '-n', container,'-p','-s','-S']).decode().split(\"\\n\")\n File \"/usr/lib64/python3.8/subprocess.py\", line 415, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File \"/usr/lib64/python3.8/subprocess.py\", line 516, in run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command '['lxc-info', '-n', 'Debian', '-p', '-s', '-S']' returned non-zero exit status 1.\n")
It looks like it’s using localstorage and sqlite, so you should be able to just delete its sqlite db in ~/.local/share/… (not sure if it uses appname or orgname past that, just look for a .db or .sqlite file in the Containers app location, use mc or find or something, it might be a directory just called harbour-containers, or some org.kabouik kinda stuff, looking at desktop file it has no orgname setup so should be somewhere under ~/.local/share/harbour-containers/…, example location from OTP app (but it uses orgname org.seiichiro) ~/.local/share/org.seiichiro0185/harbour-sailotp/QML/OfflineStorage/Databases)
Edit: or based on this harbour-containers/qml/components/Database.qml at master · sailfish-containers/harbour-containers · GitHub you could try to remove just the Debian entry that causes lxc-info to error out and keep other settings intact
Edit2: yeah just delete ~/.local/share/harbour-containers/ and /home/.lxc/Debian that should get you to vanilla state after reinstall based on this (hopefully no config files left in /var/lib/lxc…??? Leave that one alone)