Skip to content
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

Support Arm/ Arm64 #162

Open
ispysoftware opened this issue Feb 6, 2021 · 15 comments · May be fixed by #547
Open

Support Arm/ Arm64 #162

ispysoftware opened this issue Feb 6, 2021 · 15 comments · May be fixed by #547
Labels
enhancement New feature or request

Comments

@ispysoftware
Copy link
Collaborator

Is there a way to detect and install the Arm/ Arm64 binaries and dependencies in Docker if it's Arm hardware?

@ispysoftware ispysoftware added the enhancement New feature or request label Feb 6, 2021
@doitandbedone
Copy link
Owner

doitandbedone commented Feb 6, 2021 via email

@KemyszPL
Copy link

I'm also facing this issue. I'm trying to install it on my Raspberry Pi, however I'm getting the exec user process caused: exec format error, which basically means the architecture is not supported. Please add instructions to the readme, as I'm confused on what I should do.

@ispysoftware
Copy link
Collaborator Author

There's an arm download and instructions on the download page on the website

@doitandbedone
Copy link
Owner

doitandbedone commented Mar 1, 2021

There's currently no support for ispy and ARM on docker, however you may install ispy directly, please follow instructions here:
https://www.ispyconnect.com/download.aspx

@nogueirasa
Copy link

Hello @doitandbedone ,
Very nice work, but tag "multi-arch" didn't work for rpi4 4GB with:

Raspberry Pi OS Lite
Release date: January 11th 2021
Kernel version: 5.4

with docker-compose:

  agentdvr:
    container_name: agentdvr
    image: doitandbedone/ispyagentdvr:multi-arch
    volumes:
      - /home/pi/agentdvr:/agent/Media/XML
      - /home/pi/agentdvr/media:/agent/Media/WebServerRoot/Media
      - /home/pi/agentdvr/commands:/agent/Commands
    restart: always
    network_mode: host

Getting error:
standard_init_linux.go:219: exec user process caused: exec format error

I'm also tryed with the digest code of multi-arch armv7:

doitandbedone/ispyagentdvr@sha256:1f2a3f30a0cd40e5624a2e52ede318d588b4b95c61b7d965c7ab374072ed15b2

@nogueirasa
Copy link

There's currently no support for ispy and ARM on docker, however you may install ispy directly, please follow instructions here:
https://www.ispyconnect.com/download.aspx

Sorry, read your comment after posting mine

@doitandbedone
Copy link
Owner

doitandbedone commented Mar 20, 2021 via email

@drlauridsen
Copy link

Tried building an arm docker image for RPI4, using your dockerfile, changing agent, bionic and dependencies to arm32, it builds, but I get an error and container stops running..

Unhandled exception. System.TypeInitializationException: The type initializer for 'Emgu.CV.MatInvoke' threw an exception., ---> System.TypeInitializationException: The type initializer for 'Emgu.CV.CvInvoke' threw an exception., ---> System.DllNotFoundException: Unable to load shared library 'cvextern' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libcvextern: cannot open shared object file: No such file or directory, at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata), at Emgu.CV.CvInvoke..cctor(), --- End of inner exception stack trace ---, at Emgu.CV.CvInvoke.CheckLibraryLoaded(), at Emgu.CV.MatInvoke..cctor(), --- End of inner exception stack trace ---, at Emgu.CV.MatInvoke.cveMatCreate(), at CoreLogic.Utilities.Imaging.LoadStaticImages(), at CoreLogic.Threads.StartUp(), at AgentCore.Code.Initialize.Go(), at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state), at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute(), at System.Threading.ThreadPoolWorkQueue.Dispatch(), at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(),

Any suggestions to why I get this error?

@doitandbedone
Copy link
Owner

doitandbedone commented May 4, 2021 via email

@drlauridsen
Copy link

Thanks
Already installed it directly, which works fine..
But it really annoys me that I cant get the docker install to work.. 🤔
I have found the dotnet bionic arm image, and dependencies for libjpegturbo etc, and still get the error. Just hoped you had a suggestion, since it seems you also tried working on an arm image.

@dp106
Copy link

dp106 commented Jun 25, 2021

I'm running Docker Ubuntu on a Pi4 and get the same issue. Confused as I thought the whole point of Docker was you could run it on whatever host OS you wanted?! I've installed a bunch of other images no issue so not sure what the problem is with this one?

@davidcampelo
Copy link

+1

@rocket357
Copy link

I've submitted #251 for arm32v7 and arm64v8. The big issue I see is that bionic doesn't have GLIBC 2.28 support in libc, which is required by libcvextern, so it fails to load. Bumping that to focal caused some repository issues, so I based it on Buster, which seems to work but needs testing.

Also, getting architecture detection/support in a single Dockerfile gave me fits, so I split them off into separate Dockerfiles.

@doitandbedone
Copy link
Owner

doitandbedone commented Jul 29, 2021

Thank you for your contribution @rocket357, a new branch with your changes has been created and will be reviewed. Anyone else that may be curious is welcomed to try it out, although, do remember it has not been fully tested and would instead recommend direct install instructed here:
https://www.ispyconnect.com/download.aspx

@grinco grinco mentioned this issue Jan 19, 2023
@grinco
Copy link

grinco commented Jan 19, 2023

Try using https://hub.docker.com/r/grinco/ispyagentdvr in the meantime. Tested on Radxa rock 5b. I'll adjust the docker file so it builds on multiple architectures and create a pull request to merge it.

@grinco grinco linked a pull request Jan 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants