-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch failed under docker container arm64 #122
Comments
Seems that somebody else reproduced it: sissbruecker/linkding#761 My guess is that single-file-cli does not act the same on arm64. I'll try without docker to see |
Okay, it works properly with chromium installed natively on Debian Bookworm arm64 and running single-file-cli arm64. So it's somewhat related to Docker or the upstream image used, zenika/alpine-chrome:with-node |
I tried to use it with a Debian based image and I came accross the same problem: FROM timbru31/node-chrome:slim
WORKDIR /usr/src/app
RUN npm install --omit=dev single-file-cli
ENTRYPOINT [ \
"npx", \
"single-file", \
"--browser-executable-path", "/usr/bin/chromium", \
"--output-directory", "./out/", \
"--dump-content", \
"https://www.wikipedia.org" ]
Alas it seems that it's not possible to run single-file-cli under Docker on arm64 Tried the exact same thing on x86_64 and it works great! |
It's weird, I'm definitely not a Docker specialist but I managed to run on a MacBook Pro M2 and without any error, an image created with the I checked the “Architecture” field with the command |
Well, interesting, as the Macbook Pro M2 is infinitely more powerful than my Raspberry Pi 3. I have a Pi 4, I'll try with it! Are there any tips to diagnose some browser related issues ? Is single-file-cli able to handle browser crashes for instance? |
It works with my Pi 4, so it's not platform related, nor arch related, it's device related. I'll try with a vanilla install of Debian Bookworm on the Pi 3, my docker setup is a bit customized so maybe it's related. Thank you for your help! Feel free to close the issue if you want, I'll reopen it if the issue still occurs with a fresh install. PS: I'm still interested by some tips how to debug browser output. I tried the flag |
Thanks for the info, I'm even less of a Raspberry Pi specialist than Docker but I was wondering if you've tested “linux/arm/v7” instead of "linux/arm64" for the platform? |
Hello, thank you @gildas-lormeau for you help. Actually I tested on a freshly installed Debian Bookworm with Docker on Raspberry Pi 3B and it's working properly with jasongzy/singlefile's arm64 image. So on single-file-cli, everything is working as expected! (So my ultimate guess is that Chrome does not like my customized Docker setup!) |
Mhhh, I tested a Dockerfile with a X server included : FROM timbru31/node-chrome:iron-slim
WORKDIR /usr/src/app
RUN npm install --omit=dev single-file-cli
EXPOSE 5900
ENV HOME /root
ENV TZ Etc/UTC
ENV SHELL /bin/bash
ENV PS1='# '
ENV DEBIAN_FRONTEND=noninteractive
ENV PASSWORD="root"
RUN apt-get update -qq; \
apt-get upgrade -yqq; \
apt-get install -yqq tigervnc-standalone-server openbox tint2 pcmanfm xfce4-terminal supervisor procps curl telnet iproute2; \
apt-get clean
RUN mkdir /root/.vnc; \
echo $PASSWORD | vncpasswd -f > /root/.vnc/passwd; \
chmod 600 /root/.vnc/passwd
ADD etc/xdg/pcmanfm /root/.config/pcmanfm
ADD etc /etc
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"] I was able to use single-file installed via Chrome Web Store: It's kinda weird it doesn't work via the cli? I tried with |
Do you confirm you run |
Hello, |
Actually, I do not understand why the error is saying that |
The problem with this error is that it's very generic. I remember, however, that I've seen this kind of error in the past, when there's not enough space on the disk. I doubt it's the source of the problem though. Note that you can press F12 to open the debugger in Chrome (or use the menu). Finally, I'm surprised to see the browser in your screenshot, given that by default it's launched in headless mode. Normally, you'd have to pass |
Hello, thank you @gildas-lormeau Actually the browser window was only intended to prove that using the extension installed in the browser, it's working as intended. Whereas using the command supposed to achieve the same result, it does not work. So the browser in the screenshot is not triggered by the command. Interestingly, the browser does not appear when using |
Hello,
I have the error
fetch failed [2024-09-20T15:48:12.296Z] URL: https://www.wikipedia.org
on my docker run command output.Where as:
So I know it's not a network related issue.
Any idea how I can diagnose this trouble?
Thank you
The text was updated successfully, but these errors were encountered: