[BUG] On clone fail, `ml4w-dotfiles` installer hangs without any progress.
Describe the bug
On entering the URL for these dotfiles and clicking Download Dotfiles, the clone starts. However, at some point, the clone fails on what appears to be a large file. After that, the script assumes that the clone was successful but finds corrupted files and fails. However, the dotfiles installer does not fail and instead simply causes the dotfiles installer UI to show that it's still downloading although nothing is happening as the script simply does not work. This can be understood by running the installer from the terminal via flatpak run com.ml4w.dotfilesinstaller and seeing the output in the terminal, provided below under Expected behaviour.
Steps to reproduce
- Run
flatpak run com.ml4w.dotfilesinstallerin the terminal (it should be installed first). - Input
https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinstfor the path to the files and continue - Click
Download Dotfileson the next screen. - Just wait. If no error occurs, please reply here. I have a feeling it might be my internet. However, browsing is completely fine. Also, I've had varying amounts of missing bytes since yesterday.
Expected behavior
~
❯ flatpak run com.ml4w.dotfilesinstaller
(process:2): Gtk-WARNING **: 14:34:37.456: Locale not supported by C library.
Using the fallback 'C' locale.
INFO:root:Welcome to the ML4W Dotfiles Installer 0.11.0
INFO:root:/home/keyboard1000n17/.mydotfiles/ exists
INFO:root:Checking for updates...
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
INFO:root:Load remote configuration from https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
INFO:root:Attempting to load JSON from URL: https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
INFO:root:Load remote configuration from https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
INFO:root:Attempting to load JSON from URL: https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
:: Parse json
INFO:root:Show dotfiles information
INFO:root:Clone source repository
INFO:root:Executing command: git clone --depth 1 --branch 2.9.9.4 https://github.com/mylinuxforwork/dotfiles.git /home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable
Cloning into '/home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable'...
remote: Enumerating objects: 647, done.
remote: Counting objects: 100% (647/647), done.
remote: Compressing objects: 100% (461/461), done.
^[[57361uReceiving objects: 30% (200/647), 9.85 MiB | 70.00 K
^[[57361;9uReceiving objects: 30% (200/647), 10.18 MiB | 94.0
error: RPC failed; curl 56 OpenSSL SSL_read: OpenSSL/3.3.5: error:0A000126:SSL routines::unexpected eof while reading, errno 0
error: 3263 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Traceback (most recent call last):
File "/app/share/dotfiles-installer/dotfiles_installer/classes/information.py", line 167, in on_clone_source_sepository_completed
self.on_get_source_completed()
File "/app/share/dotfiles-installer/dotfiles_installer/classes/information.py", line 185, in on_get_source_completed
shutil.copytree(self.props.download_folder + "/" + self.props.config_json["subfolder"], self.props.original_folder, dirs_exist_ok=True)
File "/usr/lib/python3.12/shutil.py", line 598, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable/dotfiles'
At this point, the script no longer proceeds and gets stuck.
Just a note, ^[[57361u is (or at least seems to be, I'm unsure of the correct term) the escape sequence for the PRT SC or the Print Screen key. ^[[57361;9u is the escape sequence for Super + Prt Sc.
Screenshots
I can't get screenshots due to not having configure a screenshot utility in Hyprland. Hyprland is still usable with the auto-generated configuration.
Distribution
Arch Linux
If Other, specify
No response
Additional context
I don't have exceptional internet and multiple people are sharing it, so it might just be bad internet. However, if it does not fail, please try two more times.
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Following up here, I tried to install again. However, it hung around 30%, went to 31% and after a few seconds, it crashed like this:
❯ flatpak run com.ml4w.dotfilesinstaller
(process:2): Gtk-WARNING **: 15:32:22.736: Locale not supported by C library.
Using the fallback 'C' locale.
INFO:root:Welcome to the ML4W Dotfiles Installer 0.11.0
INFO:root:/home/keyboard1000n17/.mydotfiles/ exists
INFO:root:Checking for updates...
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support more multi-planar formats with DRM modifiers
INFO:root:Load remote configuration from https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
INFO:root:Attempting to load JSON from URL: https://raw.githubusercontent.com/mylinuxforwork/dotfiles/main/hyprland-dotfiles-stable.dotinst
:: Parse json
INFO:root:Show dotfiles information
INFO:root:Clone source repository
INFO:root:Executing command: git clone --depth 1 --branch 2.9.9.4 https://github.com/mylinuxforwork/dotfiles.git /home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable
Cloning into '/home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable'...
remote: Enumerating objects: 647, done.
remote: Counting objects: 100% (647/647), done.
remote: Compressing objects: 100% (461/461), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 6737 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Traceback (most recent call last):
File "/app/share/dotfiles-installer/dotfiles_installer/classes/information.py", line 167, in on_clone_source_sepository_completed
self.on_get_source_completed()
File "/app/share/dotfiles-installer/dotfiles_installer/classes/information.py", line 185, in on_get_source_completed
shutil.copytree(self.props.download_folder + "/" + self.props.config_json["subfolder"], self.props.original_folder, dirs_exist_ok=True)
File "/usr/lib/python3.12/shutil.py", line 598, in copytree
with os.scandir(src) as itr:
^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/keyboard1000n17/.var/app/com.ml4w.dotfilesinstaller/data/downloads/com.ml4w.dotfiles.stable/dotfiles'```
Another followup, I just tried again and it worked. No one else was using the internet so the internet was in fact the problem. However, the app could still be improved to catch these errors. Also, the Apps menu is not working? Please help. This is the reinstallation.
Final followup, problem was not setting locales properly during install. This Liquid Glass/macOS Tahoe style is so good!