ivan-hc / ArchImage

Build AppImage packages for all distributions but including Arch Linux packages. Powered by JuNest.
GNU General Public License v3.0
112 stars 1 forks source link

script error #23

Closed tazihad closed 3 months ago

tazihad commented 3 months ago

I get error everytime I run the script.

>>./firefox-junest.sh
Cloning into './.local/share/junest'...
remote: Enumerating objects: 2235, done.
remote: Counting objects: 100% (178/178), done.
remote: Compressing objects: 100% (44/44), done.
Receiving objects:  63% (1409/2235), 348.00 KiB | 617.00 KReceiving objects:  64% (1431/2235), 348.00 KiB | 617.00 KReceiving objects:  65% (1453/2235), 348.00 KiB | 617.00 KReceiving objects:  66% (1476/2235), 348.00 KiB | 617.00 KReceiving objects:  67% (1498/2235), 348.00 KiB | 617.00 KReceiving objects:  68% (1520/2235), 348.00 KiB | 617.00 KReceiving objects:  69% (1543/2235), 348.00 KiB | 617.00 KReceiving objects:  70% (1565/2235), 348.00 KiB | 617.00 KReceiving objects:  71% (1587/2235), 348.00 KiB | 617.00 KReceiving objects:  72% (1610/2235), 348.00 KiB | 617.00 KReceiving objects:  73% (1632/2235), 348.00 KiB | 617.00 KReceiving objects:  74% (1654/2235), 348.00 KiB | 617.00 KReceiving objects:  75% (1677/2235), 348.00 KiB | 617.00 KReceiving objects:  76% (1699/2235), 348.00 KiB | 617.00 KReceiving objects:  77% (1721/2235), 348.00 KiB | 617.00 KReceiving objects:  78% (1744/2235), 348.00 KiB | 617.00 KReceiving objects:  79% (1766/2235), 348.00 KiB | 617.00 KReceiving objects:  80% (1788/2235), 348.00 KiB | 617.00 KReceiving objects:  81% (1811/2235), 348.00 KiB | 617.00 KReceiving objects:  82% (1833/2235), 348.00 KiB | 617.00 KReceiving objects:  83% (1856/2235), 348.00 KiB | 617.00 KReceiving objects:  84% (1878/2235), 348.00 KiB | 617.00 KReceiving objects:  85% (1900/2235), 348.00 KiB | 617.00 KReceiving objects:  86% (1923/2235), 348.00 KiB | 617.00 KReceiving objects:  87% (1945/2235), 348.00 KiB | 617.00 KReceiving objects:  88% (1967/2235), 348.00 KiB | 617.00 KReceiving objects:  89% (1990/2235), 348.00 KiB | 617.00 KReceiving objects:  90% (2012/2235), 348.00 KiB | 617.00 KReceiving objects:  91% (2034/2235), 348.00 KiB | 617.00 KReceiving objects:  92% (2057/2235), 348.00 KiB | 617.00 KReceiving objects:  93% (2079/2235), 348.00 KiB | 617.00 KReceiving objects:  94% (2101/2235), 348.00 KiB | 617.00 KReceiving objects:  95% (2124/2235), 348.00 KiB | 617.00 KReceiving objects:  96% (2146/2235), 348.00 KiB | 617.00 KReceiving objects:  97% (2168/2235), 348.00 KiB | 617.00 KReceiving objects:  98% (2191/2235), 348.00 KiB | 617.00 Kremote: Total 2235 (delta 154), reused 138 (delta 133), pack-reused 2057
Receiving objects:  99% (2213/2235), 348.00 KiB | 617.00 KReceiving objects: 100% (2235/2235), 348.00 KiB | 617.00 KReceiving objects: 100% (2235/2235), 520.13 KiB | 711.00 KiB/s, done.
Resolving deltas: 100% (1205/1205), done.
Unknown option 'show-progress'
Error: The JuNest image file junest-x86_64.tar.gz does not exist
./firefox-junest.sh: line 31: ./.junest/etc/pacman.conf: No such file or directory
rm: cannot remove './.junest/etc/pacman.d/mirrorlist': No such file or directory
./firefox-junest.sh: line 52: ./.junest/etc/pacman.d/mirrorlist: No such file or directory
sed: can't read ./.junest/etc/pacman.conf: No such file or directory
sed: can't read ./.junest/etc/pacman.conf: No such file or directory
Error: The image is still not installed in /var/home/user1/Desktop/tmp/firefox.AppDir/.junest. Run this first: junest setup
Error: The image is still not installed in /var/home/user1/Desktop/tmp/firefox.AppDir/.junest. Run this first: junest setup
Error: The image is still not installed in /var/home/user1/Desktop/tmp/firefox.AppDir/.junest. Run this first: junest setup
Error: The image is still not installed in /var/home/user1/Desktop/tmp/firefox.AppDir/.junest. Run this first: junest setup
Error: The image is still not installed in /var/home/user1/Desktop/tmp/firefox.AppDir/.junest. Run this first: junest setup
sending incremental file list
rsync: [sender] change_dir "/var/home/user1/Desktop/tmp/./firefox.AppDir/.junest" failed: No such file or directory (2)

sent 19 bytes  received 12 bytes  62.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.3.0]
sending incremental file list
rsync: [sender] change_dir "/var/home/user1/Desktop/tmp/./firefox.AppDir/.cache" failed: No such file or directory (2)

sent 19 bytes  received 12 bytes  62.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.3.0]
sending incremental file list
share/
share/junest/
share/junest/.gitignore
share/junest/.travis.yml
share/junest/CONTRIBUTING.md
share/junest/LICENSE
share/junest/README.md
share/junest/VERSION
share/junest/.git/
share/junest/.git/HEAD
share/junest/.git/config
share/junest/.git/description
share/junest/.git/index
share/junest/.git/packed-refs
share/junest/.git/branches/
share/junest/.git/hooks/
share/junest/.git/hooks/applypatch-msg.sample
share/junest/.git/hooks/commit-msg.sample
share/junest/.git/hooks/post-update.sample
share/junest/.git/hooks/pre-applypatch.sample
share/junest/.git/hooks/pre-commit.sample
share/junest/.git/hooks/pre-merge-commit.sample
share/junest/.git/hooks/pre-push.sample
share/junest/.git/hooks/pre-receive.sample
share/junest/.git/hooks/push-to-checkout.sample
share/junest/.git/hooks/sendemail-validate.sample
share/junest/.git/hooks/update.sample
share/junest/.git/info/
share/junest/.git/info/exclude
share/junest/.git/logs/
share/junest/.git/logs/HEAD
share/junest/.git/logs/refs/
share/junest/.git/logs/refs/heads/
share/junest/.git/logs/refs/heads/master
share/junest/.git/logs/refs/remotes/
share/junest/.git/logs/refs/remotes/origin/
share/junest/.git/logs/refs/remotes/origin/HEAD
share/junest/.git/objects/
share/junest/.git/objects/info/
share/junest/.git/objects/pack/
share/junest/.git/objects/pack/pack-bc7c4e8b77042c233eba0b893d53528e9297223a.idx
share/junest/.git/objects/pack/pack-bc7c4e8b77042c233eba0b893d53528e9297223a.pack
share/junest/.git/objects/pack/pack-bc7c4e8b77042c233eba0b893d53528e9297223a.rev
share/junest/.git/refs/
share/junest/.git/refs/heads/
share/junest/.git/refs/heads/master
share/junest/.git/refs/remotes/
share/junest/.git/refs/remotes/origin/
share/junest/.git/refs/remotes/origin/HEAD
share/junest/.git/refs/tags/
share/junest/.github/
share/junest/.github/FUNDING.yml
share/junest/bin/
share/junest/bin/junest
share/junest/bin/sudoj
share/junest/ci/
share/junest/ci/build_image.sh
share/junest/ci/deploy.sh
share/junest/ci/install-bash.sh
share/junest/lib/
share/junest/lib/checks/
share/junest/lib/checks/check.sh
share/junest/lib/checks/check_all.sh
share/junest/lib/core/
share/junest/lib/core/build.sh
share/junest/lib/core/chroot.sh
share/junest/lib/core/common.sh
share/junest/lib/core/namespace.sh
share/junest/lib/core/proot.sh
share/junest/lib/core/setup.sh
share/junest/lib/core/wrappers.sh
share/junest/lib/utils/
share/junest/lib/utils/utils.sh
share/junest/tests/
share/junest/tests/checkstyle/
share/junest/tests/checkstyle/checkstyle.sh
share/junest/tests/unit-tests/
share/junest/tests/unit-tests/test-chroot.sh
share/junest/tests/unit-tests/test-common.sh
share/junest/tests/unit-tests/test-junest.sh
share/junest/tests/unit-tests/test-namespace.sh
share/junest/tests/unit-tests/test-proot.sh
share/junest/tests/unit-tests/test-setup.sh
share/junest/tests/unit-tests/test-utils.sh
share/junest/tests/unit-tests/test-wrappers.sh
share/junest/tests/unit-tests/unit-tests.sh
share/junest/tests/utils/
share/junest/tests/utils/shunit2
share/junest/tests/utils/utils.sh
share/wget/
share/wget/.wget-hsts
share/wget/.wget-ocsp
share/wget/.wget-ocsp_hosts

sent 846,212 bytes  received 1,346 bytes  1,695,116.00 bytes/sec
total size is 840,815  speedup is 0.99
rm: cannot remove './.junest/etc/locale.conf': No such file or directory
sed: can't read ./.junest/etc/profile.d/locale.sh: No such file or directory
grep: ./.junest/usr/share/applications/*: No such file or directory
cp: cannot stat '': No such file or directory
ivan-hc commented 3 months ago
Unknown option 'show-progress'
Error: The JuNest image file junest-x86_64.tar.gz does not exist

I suppose you use Fedora 40 and your wget is a symlink to wget2

tazihad commented 3 months ago

@ivan-hc yes, it's Fedora 40 kinoite

ivan-hc commented 3 months ago

remove "--show-progress" from the script, at line 26, and try again

ivan-hc commented 3 months ago

change

    wget -q --show-progress https://github.com/ivan-hc/junest/releases/download/continuous/junest-x86_64.tar.gz

to

    wget -q https://github.com/ivan-hc/junest/releases/download/continuous/junest-x86_64.tar.gz

to download silently, or to

    wget https://github.com/ivan-hc/junest/releases/download/continuous/junest-x86_64.tar.gz

to have the complete output.

Being wget a symlink to wget2, the output should look alike the wget -q --show-progress one.

This is a known issue, I've already reported it to the Fedora Reddit community

https://www.reddit.com/r/Fedora/comments/1cf5jpu/switching_from_wget_to_wget2_suddenly_in_fedora/

tazihad commented 3 months ago

@ivan-hc thanks. I have put --force-progress instead. Which works. But still get error.

share/wget/.wget-ocsp
share/wget/.wget-ocsp_hosts

sent 840,338 bytes  received 1,342 bytes  561,120.00 bytes/sec
total size is 834,970  speedup is 0.99
cp: cannot stat '': No such file or directory

But I have successfully build an appimage using your firest script which is [sample-junest.sh](https://github.com/ivan-hc/ArchImage/blob/main/sample-junest.sh)

ivan-hc commented 3 months ago

some cp/mv/tar errors are normal during the process, the script checks for the needed files, an to do this, it checks where they may be, not always they are in place.

For example, the cp error above is because the script checks for keywords through 4 levels in /usr/lib and /usr/share, if no keyword has been found at one or more of these 4 levels, then you get a error with cp. However, the needed kayword has been found into at least one of the 4 levels, the needed files are been copied... and the final appimage come out.

Thats all. I've not silenced the errors for debug reasons.

tazihad commented 3 months ago

@ivan-hc for me errors are stuck. waited 10 min. No appimage came out

ivan-hc commented 3 months ago

at what point the script stops creating the AppImage?

Note that some steps require many time to be finished, so you have to wait. Do not press CTRL+C.

ivan-hc commented 3 months ago

With the latest changes I've reduced the output, mainly busy with the "rsync" messages, so you can debug more.

Please, use the sample-next-junest.sh script.

Also, be sure you have "imagemagik" installed or appimagetool will not work

ivan-hc commented 3 months ago

https://github.com/ivan-hc/ArchImage/assets/88724353/d7ecb9e5-1db7-4d5c-ae6b-374b6c32e87c

tazihad commented 3 months ago

@ivan-hc I still get error. Here;s the log. error log

ivan-hc commented 3 months ago

Sorry, where is your .junest directory?

Is it in $HOME/.local/share/junest and $HOME/.junest ?

Is so, you must remove them.

I suggest to create a new directory and run the script into it, as I do in the video ( $HOME/Desktop/tmp), not to touch your $HOM directory.

ivan-hc commented 3 months ago

Also, I see that you run the whole path, I'm sure you drag/drop the script in the terminal. Its not so that the script works.

This is a know issue, see https://github.com/ivan-hc/ArchImage/issues/19#issuecomment-2002929214

You must run the script into the directory, like this

./firefox-junest.st

Do not drag/drop the script!

ivan-hc commented 3 months ago

@tazihad have you solved?

tazihad commented 3 months ago

@ivan-hc no. new script doesn't work. But your old script works perfectly.

ivan-hc commented 3 months ago

its really strange, have you used the new template?

also, have you followed the instructions I added here https://github.com/ivan-hc/ArchImage#usage ?

I've updated this the day you contacted me the last time https://github.com/ivan-hc/ArchImage/issues/23#issuecomment-2175183044

tazihad commented 3 months ago

@ivan-hc I have tried your new script. Perhaps it has something to do with our different distro. I am on Fedora Atomic.

ivan-hc commented 3 months ago

@tazihad in your video you drag/drop the script, while you should run it into the directory like this

./script-junest.sh

EDIT: this is why I've added this step to the guide https://github.com/ivan-hc/ArchImage#what-not-to-do

This is already happened into another issue https://github.com/ivan-hc/ArchImage/issues/19#issuecomment-2002929214

Do not run the script with the whole path.

The video I did above (now also on the README) is the correct way to run the script.

ivan-hc commented 3 months ago

The script should work on any distro, I use Debian.

If you are able to use the old and unsupported sample-junest.sh, you're also able to run the new one in Fedora or somewhere else.

Nothing has been changed, apart the use of the more flexiblwe Bubblewrap instead of the more restrictive PROOT.

ivan-hc commented 3 months ago

@tazihad You no longer responded to my question. Are you still dragging the script into the terminal instead of launching it from inside the directory (i.e. with the "dot")?

I ask because after seeing your video, I updated the readme, adding what to do and what NOT to do, and dragging the script exposing the entire path of the same from inside the working directory is wrong, and it is an already known error https://github.com/ivan-hc/ArchImage/issues/19 .

EDIT: also I can't see the video anywhere anymore. But at least we still have the log

@ivan-hc I still get error. Here;s the log. error log

and this is wrong

user1@fedora:/home/user1$ /home/user1/firefox-junest.sh

must be an empty directory

user1@fedora:/home/user1$ mkdir test
user1@fedora:/home/user1$ mv firefox-junest.sh ./test/
user1@fedora:/home/user1$ cd test

and then run the scrip

user1@fedora:/home/user1/test$ ./firefox-junest.sh

its a bit different.

tazihad commented 3 months ago

@ivan-hc I just tested it. It's working now. I put all the script in ~/tmp.