MX 21/3 error with MX Snapshot

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX 21/3 error with MX Snapshot

#21 Post by Adrian »

Do you have polkit running? What happens if you run "pkexec"?

thebookkeeper

Re: MX 21/3 error with MX Snapshot

#22 Post by thebookkeeper »

Code: Select all

bookkeeper@mx-dell:~
$ apt list --installed -a *policykit*
Auflistung… Fertig
policykit-1-gnome/oldstable,now 0.105-7 amd64  [installiert]

policykit-1/oldstable,oldstable-security,now 0.105-31+deb11u1 amd64  [installiert]

bookkeeper@mx-dell:~
$ 
Today I use the downgrade version from mx-snapshot ( apt-mark hold mx-snapshot ):

Code: Select all

bookkeeper@mx-dell:~
$ apt policy mx-snapshot
mx-snapshot:
  Installiert:           23.10.01
  Installationskandidat: 23.11.01mx21
  Versionstabelle:
     23.11.01mx21 500
        500 https://mirror.yandex.ru/mirrors/MX-Linux/MX-Packages/mx/repo bullseye/main amd64 Packages
 *** 23.10.01 100
        100 /var/lib/dpkg/status
bookkeeper@mx-dell:~
$ 
But gedit works fine with pkexec:

Code: Select all

bookkeeper@mx-dell:~
$ pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit
bookkeeper@mx-dell:~
$ 

Charlie Brown

Re: MX 21/3 error with MX Snapshot

#23 Post by Charlie Brown »

thebookkeeper wrote: Tue Nov 14, 2023 1:46 am... MX Snapshot cannot create temporary directory in /home/snapshot/...
Just to make sure: No space issue, right?

And, what if you select a different place as the destination ?

Charlie Brown

Re: MX 21/3 error with MX Snapshot

#24 Post by Charlie Brown »

Ok, sorry.

User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX 21/3 error with MX Snapshot

#25 Post by Adrian »

Charlie Brown wrote: Wed Nov 15, 2023 3:06 pm Ok, sorry.
No need for sorry from your part, I didn't see the response... not sure what it might be, I still suspect a pkexec issue.

User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX 21/3 error with MX Snapshot

#26 Post by Adrian »

I think I figured it out (but without logs I cannot really tell for sure this was the problem, but it's definitely one)

Code: Select all

tempdir_parent = largerFreeSpace("/tmp", "/home", snapshot_dir);
I'm checking for the largest location, /tmp /home or snapshot_dir to place that temp folder, /tmp and snapshot dir don't need root access, but if placing on /home it does, I will change that to place in /home/$USER.

thebookkeeper

Re: MX 21/3 error with MX Snapshot

#27 Post by thebookkeeper »

I have a backup from mx-snapshot, so I have install the bug-version again and now we can see the mx-snapshot.log:

Code: Select all

2023-11-15 21:44:48.321 DBG default: mx-snapshot Version: 23.11.01mx21
2023-11-15 21:44:48.357 DBG default: grep -oP '(?<=DISTRIB_ID=).*' /etc/lsb-release
2023-11-15 21:44:48.367 DBG default: cut -f1 -d'_' /etc/mx-version
2023-11-15 21:44:48.376 DBG default: grep -oP '(?<=DISTRIB_CODENAME=).*' /etc/lsb-release
2023-11-15 21:44:48.386 DBG default: /usr/share/mx-snapshot/scripts/snapshot-bootparameter.sh | tr '
' ' '
2023-11-15 21:44:48.438 DBG default: +++ QString Settings::getFilename() const +++
2023-11-15 21:44:48.438 DBG default: +++ void Settings::selectKernel() +++
2023-11-15 21:44:48.585 DBG default: +++ void MainWindow::setup() +++
2023-11-15 21:44:48.633 DBG default: +++ void MainWindow::loadSettings() +++
2023-11-15 21:44:48.638 DBG default: ls -1 /boot/vmlinuz-* | wc -l
2023-11-15 21:44:48.950 DBG default: 2

2023-11-15 21:44:48.960 DBG default: +++ void MainWindow::listFreeSpace() +++
2023-11-15 21:44:48.961 DBG default: stat --file-system --format=%T "/home"
2023-11-15 21:44:48.978 DBG default: df -k --output=avail "/home" |tail -n1
2023-11-15 21:44:48.995 DBG default: - Freier Platz auf /home, wo das Schnappschuss-Verzeichnis liegt:15.83GiB 

2023-11-15 21:44:48.995 DBG default: find "/home/snapshot" -maxdepth 1 -type f -name '*.iso' -exec du -shc {} + |tail -1 |awk '{print $1}'
2023-11-15 21:44:49.018 DBG default: Der freie Platz sollte für die komprimierten Daten von / und /home ausreichen.

Bei Bedarf können sie Platz gewinnen, indem sie
gespeicherte Kopien von früheren Schnappschüssen löschen:
0 Schnappschuss verbraucht 0 Festplattenplatz.

2023-11-15 21:44:49.019 DBG default: find "/home/snapshot" -maxdepth 1 -type f -name '*.iso' -exec du -shc {} + |tail -1 |awk '{print $1}'
2023-11-15 21:44:49.108 DBG default: df -k --output=used / |tail -n1
2023-11-15 21:44:49.247 DBG default: mountpoint -q /home
2023-11-15 21:44:49.294 DBG default: df -k --output=used /home |tail -n1
2023-11-15 21:45:00.328 DBG default: +++ void Settings::selectKernel() +++
2023-11-15 21:45:04.566 DBG default: EXCLUDE ALL true
2023-11-15 21:45:04.566 DBG default: +++ void Settings::excludeDesktop(bool) +++
2023-11-15 21:45:04.566 DBG default: xdg-user-dir "DESKTOP"
2023-11-15 21:45:04.608 DBG default: +++ void Settings::excludeDocuments(bool) +++
2023-11-15 21:45:04.608 DBG default: xdg-user-dir "DOCUMENTS"
2023-11-15 21:45:04.618 DBG default: +++ void Settings::excludeDownloads(bool) +++
2023-11-15 21:45:04.619 DBG default: xdg-user-dir "DOWNLOAD"
2023-11-15 21:45:04.629 DBG default: +++ void Settings::excludeMusic(bool) +++
2023-11-15 21:45:04.629 DBG default: xdg-user-dir "MUSIC"
2023-11-15 21:45:04.639 DBG default: +++ void Settings::excludeNetworks(bool) +++
2023-11-15 21:45:04.639 DBG default: +++ void Settings::excludePictures(bool) +++
2023-11-15 21:45:04.640 DBG default: xdg-user-dir "PICTURES"
2023-11-15 21:45:04.650 DBG default: +++ void Settings::excludeSteam(bool) +++
2023-11-15 21:45:04.650 DBG default: +++ void Settings::excludeVideos(bool) +++
2023-11-15 21:45:04.650 DBG default: xdg-user-dir "VIDEOS"
2023-11-15 21:45:04.660 DBG default: +++ void Settings::excludeVirtualBox(bool) +++
2023-11-15 21:45:04.661 DBG default: +++ void Settings::excludeDesktop(bool) +++
2023-11-15 21:45:04.661 DBG default: xdg-user-dir "DESKTOP"
2023-11-15 21:45:04.673 DBG default: +++ void Settings::excludeDocuments(bool) +++
2023-11-15 21:45:04.673 DBG default: xdg-user-dir "DOCUMENTS"
2023-11-15 21:45:04.686 DBG default: +++ void Settings::excludeDownloads(bool) +++
2023-11-15 21:45:04.686 DBG default: xdg-user-dir "DOWNLOAD"
2023-11-15 21:45:04.699 DBG default: +++ void Settings::excludeMusic(bool) +++
2023-11-15 21:45:04.699 DBG default: xdg-user-dir "MUSIC"
2023-11-15 21:45:04.712 DBG default: +++ void Settings::excludeNetworks(bool) +++
2023-11-15 21:45:04.712 DBG default: +++ void Settings::excludePictures(bool) +++
2023-11-15 21:45:04.712 DBG default: xdg-user-dir "PICTURES"
2023-11-15 21:45:04.725 DBG default: +++ void Settings::excludeSteam(bool) +++
2023-11-15 21:45:04.725 DBG default: +++ void Settings::excludeVideos(bool) +++
2023-11-15 21:45:04.726 DBG default: xdg-user-dir "VIDEOS"
2023-11-15 21:45:04.738 DBG default: +++ void Settings::excludeVirtualBox(bool) +++
2023-11-15 21:45:07.252 DBG default: +++ void Settings::excludeDocuments(bool) +++
2023-11-15 21:45:07.252 DBG default: xdg-user-dir "DOCUMENTS"
2023-11-15 21:45:08.844 DBG default: +++ void Settings::excludeDesktop(bool) +++
2023-11-15 21:45:08.844 DBG default: xdg-user-dir "DESKTOP"
2023-11-15 21:45:11.996 DBG default: +++ void Settings::excludeNetworks(bool) +++
2023-11-15 21:45:22.508 DBG default: grep ^CONFIG_SQUASHFS_LZ4=y /boot/config-5.10.0-26-amd64
2023-11-15 21:45:27.136 DBG default: +++ bool Settings::checkSnapshotDir() const +++
2023-11-15 21:45:27.141 DBG default: mkdir -p /home/snapshot
2023-11-15 21:45:37.198 DBG default: chown $(logname): "//home/snapshot"
2023-11-15 21:45:37.289 DBG default: +++ bool Settings::checkTempDir() +++
2023-11-15 21:45:37.289 DBG default: +++ static bool Settings::isOnSupportedPart(const QString&) +++
2023-11-15 21:45:37.289 DBG default: stat --file-system --format=%T "/home/snapshot"
2023-11-15 21:45:37.300 DBG default: detected partition "xfs" supported part: true
2023-11-15 21:45:37.301 DBG default: +++ static QString Settings::largerFreeSpace(const QString&, const QString&, const QString&) +++
2023-11-15 21:45:37.301 DBG default: +++ static QString Settings::largerFreeSpace(const QString&, const QString&) +++
2023-11-15 21:45:37.301 DBG default: stat -c '%d' /home
2023-11-15 21:45:37.316 DBG default: stat -c '%d' /tmp
2023-11-15 21:45:37.333 DBG default: stat --file-system --format=%T "/tmp"
2023-11-15 21:45:37.350 DBG default: df -k --output=avail "/tmp" |tail -n1
2023-11-15 21:45:37.364 DBG default: stat --file-system --format=%T "/home"
2023-11-15 21:45:37.375 DBG default: df -k --output=avail "/home" |tail -n1
2023-11-15 21:45:37.389 DBG default: +++ static QString Settings::largerFreeSpace(const QString&, const QString&) +++
2023-11-15 21:45:37.389 DBG default: stat -c '%d' /home/snapshot
2023-11-15 21:45:37.401 DBG default: stat -c '%d' /home
2023-11-15 21:45:37.412 DBG default: "Konnte kein Temporärverzeichnis anlegen."
2023-11-15 21:48:13.269 DBG default: Bereinigung läuft...
2023-11-15 21:48:13.481 DBG default: sync
2023-11-15 21:48:13.613 DBG default: Fertigstellung fehlgeschlagen oder Ausführung unterbrochen.
But this is in german language, I'm a german.
You do not have the required permissions to view the files attached to this post.

User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX 21/3 error with MX Snapshot

#28 Post by Adrian »

Perfect, I think I got it, the error message is misleading, it cannot create the temp folder in /home (that's probably because that message predates my attempt to find larger space where to stick that temp folder)

I will have a build soon that you can test.

User avatar
Adrian
Developer
Posts: 8981
Joined: Wed Jul 12, 2006 1:42 am

Re: MX 21/3 error with MX Snapshot

#29 Post by Adrian »

I thought I understood what was going on there, the "/home/snapshot" is actually accurate, in the sense that that's where it tried to put the temp directory, you can also see in the log that I made sure that is owned by your "logname" -- what does "logname" report on the terminal, does it report your correct username? Can you create directories in /home/snapshot with "mkdir testdir" or you get an error message?

I have a new build, it fixes the issue with putting the temp folder in /home (not exactly your problem, but your report brought this to my attention) and it also reunifies MX21 and MX23 builds.

If you want to test the deb (but again it probably won't solve your particular problem); https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

thebookkeeper

Re: MX 21/3 error with MX Snapshot

#30 Post by thebookkeeper »

Thank you, Version 23.11.02 works fine.
Adrian wrote: Wed Nov 15, 2023 6:05 pm... Can you create directories in /home/snapshot with "mkdir testdir" or you get an error message? ...
Yes, no error:

Code: Select all

bookkeeper@mx-dell:~
$ mkdir /home/snapshot/testdir
bookkeeper@mx-dell:~
$ 
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “MX Help”