Comments (13)
Someone else has been getting this error, but it's not related to pandoc because we removed that dependency. I'll look into it :)
from archivy-docker.
Raspberry Pi has arm
architecture. Ans in this case, Rpiv4 has aarch64
. amd64
builds of docker containers cannot run on aarch64
. Ideally, arm buillds should be pushed to hub.docker.com instead and users should be able to pull the docker containers for the respective architecture like archivy-armhf
or archivy-aarch64
depending on the architecture. So, currently, there is no way to use archivy's docker image on an arm arch device like Rpi4 or on Android. The only solution is to build from source.
from archivy-docker.
Wow quick response! :)
I could find the error message around the web, but a bit unclear to me how it relates to this project
Congrats on v1.0 :)
from archivy-docker.
@conrad82 Can you post your full docker logs archivy
?
More information to debug with can't hurt.
from archivy-docker.
@Jafner , the log is not very exciting I'm afraid:
(I assume multiple lines is caused by restart: unless-stopped )
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
standard_init_linux.go:211: exec user process caused "exec format error"
...
Tested with FLASK_DEBUG=1 also, just in case. No difference.
from archivy-docker.
I tried building it myself (I forked archivy-docker repo to https://github.com/conrad82/archivy-docker )
First it fails at step 3
Step 3/18 : RUN pip3.9 install --prefix=/install archivy==$VERSION
---> Running in 6cd98dfb29af
ERROR: Could not find a version that satisfies the requirement archivy==
ERROR: No matching distribution found for archivy==
ERROR: Service 'archivy' failed to build: The command '/bin/sh -c pip3.9 install --prefix=/install archivy==$VERSION' returned a non-zero code: 1
I simplified the install command to pip3 install archivy
It then fails at brotli installation, from the error messages I suspect due to missing gcc
Added steps for installing gcc and g++ - brotli succeeds!
After some more tweaking, I got it to start with the following changes to the code! :
https://github.com/archivy/archivy-docker/compare/main...conrad82:main?diff=unified
The code is a bit hacky, so I wasn't planning a pull request. Also, the modifications are quite small.
Now the logs look like this:
$ sudo docker logs archivy
Setting environment variables.
The following environment variables were set:
FLASK_DEBUG=1
ELASTICSEARCH_ENABLED=1
ELASTICSEARCH_URL=http://elasticsearch:9200/
ARCHIVY_PORT=5000
Checking if Elasticsearch is up and running
Elasticsearch is running @ http://elasticsearch:9200/.
Starting Archivy
Running archivy...
[2021-02-05 12:06:52,148] INFO in __init__: OUTPUT_FOLDER: /tmp/click-web
* Serving Flask app "archivy" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
Running archivy...
[2021-02-05 12:06:56,087] INFO in __init__: OUTPUT_FOLDER: /tmp/click-web
* Debugger is active!
* Debugger PIN: 326-819-398
I don't get the web page up through my reverse proxy though,... I'll have to take a look another time..
from archivy-docker.
And also, I took a look at https://github.com/archivy/archivy-docker/compare/main...conrad82:main?diff=unified. At one end, the base image should be arm32v7/python
or arm32v6/python
and not python:3.9-alpine
for optimal performance.
from archivy-docker.
Ping - It's been a couple months since this issue was last discussed. Any chance it can get some attention?
from archivy-docker.
Ping - It's been a couple months since this issue was last discussed. Any chance it can get some attention?
Thanks for the reminder. I'm gonna do some testing and dev this weekend. I'll keep this thread up to date on my efforts.
It's a simple conversion on paper, but I don't have an arm64 device to test with.
from archivy-docker.
@callingshotgun Have you tried building a copy from the dockerfile in the archivy-docker repository?
It's based on the python:3.9-alpine
tag, which is a multi-architecture tag. I believe our current workflow builds a single amd64 image from the dockerfile before sending it to dockerhub. If you build the image yourself from the dockerfile it should automatically switch to the arm64
version of python:3.9-alpine
during the build process.
Let me know if this works for you. If it does, we can probably add an arm64 build to the workflow.
from archivy-docker.
Thanks @Jafner ! Alas, did not work.
Attached log. Command I tried was
docker build https://github.com/archivy/archivy-docker.git#main --build-arg VERSION=1.1.4
Was that the right version number to use? It seemed to go south trying to add Brotli to the image.
Collecting brotli
Downloading Brotli-1.0.9.zip (510 kB)
WARNING: The candidate selected for download or install is a yanked version: 'validators' candidate (version 0.15.0 at https://files.pythonhosted.org/packages/c4/4a/4f9c892f9a9f08ee5f99c32bbd4297499099c2c5f7eff8c617a57d31a7d8/validators-0.15.0.tar.gz#sha256=31e8bb01b48b48940a021b8a9576b840f98fa06b91762ef921d02cb96d38727a (from https://pypi.org/simple/validators/))
Reason for being yanked: Missing python_requires in setup.py
archivy-docker-build-output.txt
from archivy-docker.
I want to fix this. Could someone with a raspberry pi join the discord server and ping me so we can troubleshoot it? I'm not sure why but it seems gcc has problems installing on an arm device - either way doing multi-architecture images would be good.
from archivy-docker.
We can probably do something like what's outlined here: https://www.docker.com/blog/multi-arch-images/
from archivy-docker.
Related Issues (12)
- when deployed (docker compose) - nothing happens HOT 4
- Archivy Redirect behind Traefik with HTTPS redirecting to HTTP HOT 1
- lite Docker image using ripgrep instead of ES HOT 1
- How can I extend editor configuration when using archivy-docker? HOT 1
- flask error HOT 1
- ElasticSearch enabled in light image
- Production example not provided
- Volume for plugins HOT 2
- Can't create user / auto-created admin password does not work HOT 6
- is uzayg/archivy the result of following the steps in this repo? HOT 32
- Get plugins working with a docker install HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from archivy-docker.