crawl4ai icon indicating copy to clipboard operation
crawl4ai copied to clipboard

exec /usr/local/bin/uvicorn: exec format error

Open wwwrookie opened this issue 1 year ago • 13 comments

image Have you not adapted to AMD64 yet???

wwwrookie avatar Nov 18 '24 10:11 wwwrookie

@wwwrookie Please try docker run --platform linux/arm64/v8 --shm-size=2gb -p 11235:11235 unclecode/crawl4ai:basic and let me know if that works?

unclecode avatar Nov 20 '24 11:11 unclecode

这是来自QQ邮箱的假期自动回复邮件。   您好,您发的邮件我已收到。谢谢

wwwrookie avatar Nov 20 '24 11:11 wwwrookie

image image Still can't do it

wwwrookie avatar Nov 21 '24 05:11 wwwrookie

@wwwrookie I see, give me a few days. I'm working on it. Actually, I'm trying to rebuild the Docker from the AMD and Windows machine directly and then test it and make sure everything works. I will update here soon.

unclecode avatar Nov 23 '24 10:11 unclecode

ok thanks

@wwwrookie I see, give me a few days. I'm working on it. Actually, I'm trying to rebuild the Docker from the AMD and Windows machine directly and then test it and make sure everything works. I will update here soon.

wwwrookie avatar Nov 26 '24 04:11 wwwrookie

@wwwrookie please try the new Docker and let me know if you have any issues with that; for this scenario, it should work hopefully, but if not, let me know.

unclecode avatar Nov 27 '24 11:11 unclecode

@wwwrookie please try the new Docker and let me know if you have any issues with that; for this scenario, it should work hopefully, but if not, let me know.

Still unable to run on the AMD platform

CleanShot 2024-11-28 at 14 08 22@2x

socekin avatar Nov 28 '24 06:11 socekin

@socekin Can you please share with me your operating system specs, so I can build a virtual machine exactly the same as yours on the same platform, and I can test it to replicate the error for myself? I appreciate you sharing this with me; I really need it.

unclecode avatar Nov 28 '24 11:11 unclecode

@socekin Can you please share with me your operating system specs, so I can build a virtual machine exactly the same as yours on the same platform, and I can test it to replicate the error for myself? I appreciate you sharing this with me; I really need it.

image

socekin avatar Nov 28 '24 12:11 socekin

@socekin Can you please share with me your operating system specs, so I can build a virtual machine exactly the same as yours on the same platform, and I can test it to replicate the error for myself? I appreciate you sharing this with me; I really need it.

I checked on Docker Hub and found that the OS/ARCH of the image is still linux/arm64/v8. I think we need to compile a linux/amd64 version. Has the image you compiled not been updated yet?

socekin avatar Nov 28 '24 12:11 socekin

I installed QEMU on my VPS, then ran docker run --platform linux/arm64/v8 --shm-size=2gb -p 11235:11235 unclecode/crawl4ai:basic. It's now usable, and I hope it helps everyone.

install QEMU

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes Enable buildx docker buildx create --use

socekin avatar Nov 29 '24 03:11 socekin

@socekin Very helpful, right now I am rebuilding all images to be multi-platform and I will cover this too.

unclecode avatar Nov 29 '24 11:11 unclecode

@socekin I think I'm done with fixing the issue with the Docker. I created two sets of images for ARM and AMD platforms. Please look at the comments I posted in another similar issue. I tried; I think it works now, hopefully. https://github.com/unclecode/crawl4ai/issues/240#issuecomment-2507773599

unclecode avatar Nov 29 '24 13:11 unclecode

Closing this issue due to inactivity. Reopen a new issue if the problem still exists.

aravindkarnam avatar Jan 21 '25 09:01 aravindkarnam