Botspot / wor-flasher

Legal utility that runs on RPiOS to flash another SD card with Windows 10/11
625 stars 76 forks source link

file permissions issue preventing download #146

Closed dmurh closed 9 months ago

dmurh commented 9 months ago
DIRECTORY: /home/dmuth/wor-flasher
DL_DIR: /home/dmuth/wor-flasher-files
fatal: detected dubious ownership in repository at '/home/dmuth/wor-flasher'
To add an exception for this directory, call:

    git config --global --add safe.directory /home/dmuth/wor-flasher
mkdir: cannot create directory ‘/home/dmuth/wor-flasher/cache’: Permission denied
Checking for internet connection... Done

(yad:16702): Gdk-CRITICAL **: 07:08:38.872: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

(yad:16733): Gdk-CRITICAL **: 07:08:41.036: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
/home/dmuth/wor-flasher/install-wor.sh: line 223: /home/dmuth/wor-flasher/cache/getversions.php: No such file or directory
BID: 22631.2861
RPI_MODEL: 5

(yad:16792): Gdk-CRITICAL **: 07:08:41.414: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
WIN_LANG: en-us

(yad:16850): Gdk-CRITICAL **: 07:08:43.636: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
DEVICE: /dev/sda
CAN_INSTALL_ON_SAME_DRIVE: 1

(yad:16874): Gdk-CRITICAL **: 07:08:49.861: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

User chose to download everything to RAM.
For best results, please close all other programs. (especially web browsers and games)

(yad:16888): Gdk-CRITICAL **: 07:08:51.554: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
/home/dmuth/wor-flasher/install-wor-gui.sh: line 650: syntax error: unexpected end of file
Botspot commented 9 months ago

This is a file permission issue with your home folder. Could you run this and copy the output here?

ls -l wor-flasher
dmurh commented 9 months ago

after 👍

fatal: detected dubious ownership in repository at '/home/dmuth/wor-flasher'
To add an exception for this directory, call:

    git config --global --add safe.directory /home/dmuth/wor-flasher
mkdir: cannot create directory ‘/home/dmuth/wor-flasher/cache’: Permission denied
Checking for internet connection... Done

(yad:2708): Gdk-CRITICAL **: 07:49:41.905: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

(yad:2739): Gdk-CRITICAL **: 07:49:46.179: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
/home/dmuth/wor-flasher/install-wor.sh: line 223: /home/dmuth/wor-flasher/cache/getversions.php: No such file or directory
BID: 22631.2861
RPI_MODEL: 5

(yad:2798): Gdk-CRITICAL **: 07:49:46.474: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
WIN_LANG: en-us

(yad:2841): Gdk-CRITICAL **: 07:49:48.846: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
DEVICE: /dev/sda
CAN_INSTALL_ON_SAME_DRIVE: 1

(yad:2864): Gdk-CRITICAL **: 07:49:51.983: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
dmurh commented 9 months ago

also i did git config --global --add safe.directory /home/dmuth/wor-flasher same result

Botspot commented 9 months ago

No, @dmurh, you did not understand. I need you to show me the output from when you run ls -l wor-flasher. The output should look like this:

total 1072
drwxr-xr-x 2 pi pi   4096 Feb  9 23:53 cache
-rw-r--r-- 1 pi pi    992 Feb  9 23:08 config_txt_tips
-rwxr-xr-x 1 pi pi  28760 Feb 11 14:30 install-wor-gui.sh
-rwxr-xr-x 1 pi pi  49658 Feb 10 15:41 install-wor.sh
-rw-r--r-- 1 pi pi   8052 Feb  9 23:08 logo-full.png
-rw-r--r-- 1 pi pi   3117 Feb  9 23:08 logo.png
-rw-r--r-- 1 pi pi  66469 Feb  9 23:08 next-steps.png
-rw-r--r-- 1 pi pi 749931 Feb  9 23:08 next-steps.svg
-rw-r--r-- 1 pi pi      0 Feb 10 14:55 no-update
-rw-r--r-- 1 pi pi  11895 Feb  9 23:08 overview.png
-rw-r--r-- 1 pi pi 128113 Feb  9 23:08 overview.svg
-rw-r--r-- 1 pi pi   1692 Feb  9 23:08 ram.png
-rw-r--r-- 1 pi pi  13052 Feb  9 23:08 README.md
-rwxr-xr-x 1 pi pi   2378 Feb  9 23:08 terminal-run

That is what I need you to send here. Don't do anything else.

This command does not fix anything, but it might help me understand what sort of problem you are encountering.

dmurh commented 9 months ago

sorry ...

yad:3223): Gdk-CRITICAL **: 15:05:44.613: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

(yad:3254): Gdk-CRITICAL **: 15:05:49.071: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed BID: 22631.2861 RPI_MODEL: 5

(yad:3313): Gdk-CRITICAL **: 15:05:49.359: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed WIN_LANG: en-us

(yad:3355): Gdk-CRITICAL **: 15:05:52.653: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed DEVICE: /dev/sda CAN_INSTALL_ON_SAME_DRIVE: 1

(yad:3378): Gdk-CRITICAL **: 15:05:56.361: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed

/home/dmuth/wor-flasher/install-wor-gui.sh: line 650: syntax error: unexpected end of file dmuth@Raspi4:~ $ ls -l wor-flasher total 1072 drwxr-xr-x 2 dmuth dmuth 4096 Feb 12 15:05 cache -rw-r--r-- 1 dmuth dmuth 992 Feb 12 15:04 config_txt_tips -rwxr-xr-x 1 dmuth dmuth 28760 Feb 12 15:04 install-wor-gui.sh -rwxr-xr-x 1 dmuth dmuth 49658 Feb 12 15:04 install-wor.sh -rw-r--r-- 1 dmuth dmuth 8052 Feb 12 15:04 logo-full.png -rw-r--r-- 1 dmuth dmuth 3117 Feb 12 15:04 logo.png -rw-r--r-- 1 dmuth dmuth 66469 Feb 12 15:04 next-steps.png -rw-r--r-- 1 dmuth dmuth 749931 Feb 12 15:04 next-steps.svg -rw-r--r-- 1 dmuth dmuth 11895 Feb 12 15:04 overview.png -rw-r--r-- 1 dmuth dmuth 128113 Feb 12 15:04 overview.svg -rw-r--r-- 1 dmuth dmuth 1692 Feb 12 15:04 ram.png -rw-r--r-- 1 dmuth dmuth 12762 Feb 12 15:04 README.md -rwxr-xr-x 1 dmuth dmuth 2378 Feb 12 15:04 terminal-run

Botspot commented 9 months ago

OK try running this command to fix the permissions:

chown -R dmuth:dmuth ~/wor-flasher-files
chown -R dmuth:dmuth ~/wor-flasher

If either of those give you any errors, run them again with sudo. Then see if wor-flasher works.

dmurh commented 9 months ago

thanks

i see no folder /home/dmuth/wor-flasher-files -- create it and - now it starts to run

will come back tomorrow with result

Botspot commented 9 months ago

Your home folder has the wrong permissions then and it will keep causing issues for other apps. Please send me the output of these commands:

ls -l /home/dmuth
ls -l /home/
dmurh commented 9 months ago

dmuth@Raspi4:~ $ ls -l /home/dmuth total 48 drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 05:47 Bookshelf drwxr-xr-x 2 dmuth dmuth 4096 Feb 12 15:19 Desktop drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Documents drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Downloads drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Music drwxr-xr-x 10 dmuth dmuth 4096 Feb 12 15:21 pi-apps drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Pictures drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Public drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Templates drwxr-xr-x 2 dmuth dmuth 4096 Dec 5 06:05 Videos drwxr-xr-x 5 dmuth dmuth 4096 Feb 12 16:48 wor-flasher drwxr-xr-x 5 dmuth dmuth 4096 Feb 12 17:03 wor-flasher-files dmuth@Raspi4:~ $ ls -l /home/ total 4 drwx------ 18 dmuth dmuth 4096 Feb 12 16:47 dmuth

Botspot commented 9 months ago

OK I think I know what you did. When downloading wor-flasher, did you happen to use sudo?

sudo git clone https://github.com/Botspot/wor-flasher

If you used sudo, then that is your problem. You should not use sudo for this.

Botspot commented 9 months ago

Anyway, the chown commands you ran earlier fixed this so you should be good to go.

dmurh commented 9 months ago

i think it was the missing folder - nevertheless - i will test within the week again and come back