[Solved] Syntax error with mx-snapshot

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
gosia
Posts: 1151
Joined: Sun Apr 28, 2019 3:43 pm

[Solved] Syntax error with mx-snapshot

#1 Post by gosia »

if I exclude the home directory in mx-snapshot (reset account), it aborts after a short time with the error message

Code: Select all

"Die Datei linuxfs konnte nicht erstellt werden, überprüfen Sie bitte, ob genug Speicherplatz frei ist."
(The file linuxfs could not be created, please check if enough disk space is available)

Snapshot to /media/kb/LBACK/snapshot

Code: Select all

$ df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
udev            1,9G       0  1,9G    0% /dev
tmpfs           379M    1,5M  378M    1% /run
/dev/sda3       183G     14G  161G    8% /
tmpfs           5,0M    4,0K  5,0M    1% /run/lock
tmpfs           1,1G     24M  1,1G    3% /run/shm
/dev/sda1       205M    105M   86M   55% /boot
/dev/sda5        47G     35G  9,2G   80% /home
cgroup           12K       0   12K    0% /sys/fs/cgroup
tmpfs           379M    4,0K  379M    1% /run/user/115
tmpfs           379M     12K  379M    1% /run/user/1000
tmpfs           379M       0  379M    0% /run/user/118
tmpfs           379M       0  379M    0% /run/user/33
/dev/sdb2       481G    368G   89G   81% /media/kb/LBACK
But I think this error message is wrong and only occurs because the script aborts with syntax errors. The cause is probably these texts "!(minstall.desktop)" in the command line.

Code: Select all

/bin/bash: -c: Zeile 0: Syntaxfehler beim unerwarteten Wort `('
/bin/bash: -c: Zeile 0: `/usr/bin/mksquashfs /.bind-root iso-template/antiX/linuxfs -comp lz4 -wildcards -ef /usr/local/share/excludes/mx-snapshot-exclude.list -e "home/*/Desktop/!(minstall.desktop)" "home/kb/Schreibtisch/!(minstall.desktop) "home/gosia/Schreibtisch/!(minstall.desktop) "home/tte/Schreibtisch/!(minstall.desktop)" "home/*/Documents/*" "home/*/Documents/.*" "home/kb/Dokumente/*" "home/kb/Dokumente/.* "home/gosia/Dokumente/*" "home/gosia/Dokumente/.* "home/tte/Dokumente/*" "home/tte/Dokumente/.*" "home/*/Downloads/*" "home/*/Downloads/.*" "home/*/Music/*" "home/*/Music/.*" "home/kb/Musik/*" "home/kb/Musik/.* "home/gosia/Musik/*" "home/gosia/Musik/.* "home/tte/Musik/*" "home/tte/Musik/.*" "home/*/Pictures/*" "home/*/Pictures/.*" "home/kb/Bilder/*" "home/kb/Bilder/.* "home/gosia/Bilder/*" "home/gosia/Bilder/.* "home/tte/Bilder/*" "home/tte/Bilder/.*" "home/*/Videos/*" "home/*/Videos/.*" "media/kb/LBACK/snapshot" "tmp/mx-snapshot-RMDapW5i" "etc/minstall.conf" "etc/localtime"'
A complete snapshot (without reset account) runs through without problems

Code: Select all

System:    Host: mexiko.fritz.lokal Kernel: 4.19.0-1-amd64 x86_64 (64 bit gcc: 6.3.0)
           Desktop: Openbox 3.6.1
           Distro: MX-18.3_x64 Continuum March 14, 2018
Machine:   Device: laptop System: Packard Bell product: EasyNote TE11HC v: V1.07
           Mobo: Packard Bell model: EG50_HC_CR v: Type2 - Board Version
           UEFI [Legacy]: Packard Bell v: V1.07 date: 05/11/2012
Battery    BAT1: charge: 49.5 Wh 100.0% condition: 49.5/44.0 Wh (112%)
           model: PANASONIC Li_Ion_4000mA status: Full
CPU:       Dual core Intel Core i5-3210M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9977
           clock speeds: max: 3100 MHz 1: 1270 MHz 2: 1287 MHz 3: 1419 MHz
           4: 1503 MHz
Graphics:  Card: Intel 3rd Gen Core processor Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.19.2 driver: intel
           Resolution: 1366x768@60.00hz
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 18.2.6 Direct Rendering: Yes
Audio:     Card Intel 7 Series/C216 Family High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k4.19.0-1-amd64
Network:   Card-1: Broadcom Limited NetLink BCM57785 Gigabit Ethernet PCIe
           driver: tg3 v: 3.137 bus-ID: 02:00.0
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
           Card-2: Qualcomm Atheros AR9485 Wireless Network Adapter
           driver: ath9k bus-ID: 03:00.0
           IF: wlan0 state: down mac: <filter>
Drives:    HDD Total Size: 1500.3GB (29.9% used)
           ID-1: /dev/sda model: TOSHIBA_MK5059GS size: 500.1GB
           ID-2: USB /dev/sdb model: External_USB_3.0 size: 1000.2GB
Partition: ID-1: / size: 183G used: 14G (8%) fs: ext4 dev: /dev/sda3
           ID-2: /boot size: 205M used: 105M (55%) fs: ext4 dev: /dev/sda1
           ID-3: /home size: 47G used: 35G (80%) fs: ext4 dev: /dev/sda5
           ID-4: swap-1 size: 1.61GB used: 0.12GB (8%) fs: swap dev: /dev/sda8
Sensors:   System Temperatures: cpu: 54.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Repos:     Active apt sources in file: /etc/apt/sources.list.d/antix.list
           deb http://mirror.plusserver.com/mxlinux/mxlinux/antix/stretch/ stretch main
           Active apt sources in file: /etc/apt/sources.list.d/debian-stable-updates.list
           deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/debian.list
           deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
           deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/mx.list
           deb http://mirror.plusserver.com/mxlinux/mxlinux/mx/repo/ stretch non-free main
Info:      Processes: 232 Uptime: 1:57 Memory: 1155.5/3786.7MB
           Init: SysVinit rc: OpenRC runlevel: default Gcc sys: 6.3.0
           Client: Shell (bash 4.4.121) inxi: 2.3.5
Last edited by gosia on Wed Apr 29, 2020 5:11 pm, edited 1 time in total.

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

Re: Syntax error with mx-snapshot

#2 Post by Adrian »

What mx-snapshot version? I wonder if this is not an old bug that it's already been fixed.

User avatar
gosia
Posts: 1151
Joined: Sun Apr 28, 2019 3:43 pm

Re: Syntax error with mx-snapshot

#3 Post by gosia »

mx-snapshot 20.4

User avatar
chrispop99
Global Moderator
Posts: 3388
Joined: Tue Jan 27, 2009 2:07 pm

Re: Syntax error with mx-snapshot

#4 Post by chrispop99 »

I've just tried creating a Snapshot with Reset Account checked, and it completed without error.

Chris
MX Facebook Group Administrator.
Home-built desktop - Core i5 9400, 970 EVO Plus, 8GB
DELL XPS 15
Lots of test machines

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

Re: Syntax error with mx-snapshot

#5 Post by Adrian »

chrispop99 wrote: Wed Apr 29, 2020 3:27 pm I've just tried creating a Snapshot with Reset Account checked, and it completed without error.

Chris
You might not have the same environment and selected the exact settings, I will have to test with multiple users with different LANG settings.

User avatar
gosia
Posts: 1151
Joined: Sun Apr 28, 2019 3:43 pm

Re: Syntax error with mx-snapshot

#6 Post by gosia »

On another computer mx-snapshot 20.4 runs without problems.

Code: Select all

System:    Host: CAIA Kernel: 4.19.0-1-amd64 x86_64 (64 bit gcc: 6.3.0) Desktop: Openbox 3.6.1
           Distro: MX-18.3_x64 Continuum March 14, 2018
Machine:   Device: desktop System: Acer product: Aspire E360 v: R02-A1
           Mobo: Acer model: FC51GM BIOS: Phoenix v: R02-A1 date: 01/19/2006
CPU:       Single core AMD Sempron 3200+ (-UP-) cache: 256 KB
           flags: (lm nx sse sse2 sse3) bmips: 3616 speed: 1800 MHz (max)
Graphics:  Card: NVIDIA NV44 [GeForce 6200 TurboCache] bus-ID: 03:00.0
           Display Server: X.Org 1.19.2 drivers: nouveau (unloaded: modesetting,fbdev,vesa)
           Resolution: 1280x1024@60.02hz
           GLX Renderer: NV44 GLX Version: 2.1 Mesa 18.2.6 Direct Rendering: Yes
Audio:     Card NVIDIA MCP51 AC97 Audio Controller
           driver: snd_intel8x0 ports: c800 c400 bus-ID: 00:10.2
           Sound: Advanced Linux Sound Architecture v: k4.19.0-1-amd64
Network:   Card-1: NVIDIA MCP51 Ethernet Controller driver: forcedeth port: c000 bus-ID: 00:14.0
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
           Card-2: AVM Fritz!Card PCI v2.0 ISDN driver: fcpci port: bc00 bus-ID: 04:07.0
           IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 2000.4GB (1.0% used)
           ID-1: /dev/sda model: ST1000DM003 size: 1000.2GB
           ID-2: USB /dev/sdb model: External_USB_3.0 size: 500.1GB
           ID-3: /dev/sdc model: WDC_WD5000AZLX size: 500.1GB
Partition: ID-1: / size: 358G used: 12G (4%) fs: ext4 dev: /dev/sda5
           ID-2: /home size: 554G used: 3.6G (1%) fs: ext4 dev: /dev/sda6
           ID-3: /boot size: 302M used: 105M (38%) fs: ext4 dev: /dev/sda1
           ID-4: swap-1 size: 4.19GB used: 0.11GB (3%) fs: swap dev: /dev/sda7
Sensors:   System Temperatures: cpu: 41.0C mobo: N/A gpu: 68.0
           Fan Speeds (in rpm): cpu: N/A
Repos:     Active apt sources in file: /etc/apt/sources.list.d/antix.list
           deb http://mirror.plusserver.com/mxlinux/mxlinux/antix/stretch/ stretch main
           Active apt sources in file: /etc/apt/sources.list.d/debian-stable-updates.list
           deb http://ftp.de.debian.org/debian/ stretch-updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/debian.list
           deb http://ftp.de.debian.org/debian/ stretch main contrib non-free
           deb http://security.debian.org/ stretch/updates main contrib non-free
           Active apt sources in file: /etc/apt/sources.list.d/mx.list
           deb http://mirror.plusserver.com/mxlinux/mxlinux/mx/repo/ stretch non-free main
Info:      Processes: 188 Uptime: 27 min Memory: 780.4/1993.3MB
           Init: SysVinit rc: OpenRC runlevel: default Gcc sys: 6.3.0
           Client: Shell (bash 4.4.121) inxi: 2.3.5
What other information can I provide?

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

Re: Syntax error with mx-snapshot

#7 Post by Adrian »

gosia wrote: Wed Apr 29, 2020 3:18 pm mx-snapshot 20.4
Thanks for confirming, I found the bug, it's the quoting of the string, it's missing if you have more than 2 users on the system. I will fix it, the package will come soon in the repo.

User avatar
gosia
Posts: 1151
Joined: Sun Apr 28, 2019 3:43 pm

[Solved] Syntax error with mx-snapshot

#8 Post by gosia »

Thanks. That was fast.
Adrian wrote: Wed Apr 29, 2020 4:49 pm if you have more than 2 users on the system.
Yeah, there's a difference between the two computers. One has three users, the other has only one.

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

Re: Syntax error with mx-snapshot

#9 Post by Adrian »

OK, it should be fixed, if you want to try
https://github.com/MX-Linux/mx-snapshot ... _amd64.deb

Otherwise whenever it hits the repos...

User avatar
gosia
Posts: 1151
Joined: Sun Apr 28, 2019 3:43 pm

Re: [Solved] Syntax error with mx-snapshot

#10 Post by gosia »

Adrian wrote: Wed Apr 29, 2020 5:11 pm if you want to try
Tomorrow :happy:

Post Reply

Return to “Bugs and Non-Package Requests Forum”