edgetpu icon indicating copy to clipboard operation
edgetpu copied to clipboard

Mongo DB can't be installed

Open slbejaranom opened this issue 4 years ago • 5 comments

Hello everyone, I have a server using nodejs mongo and dlib for tracking and counting cars, sending some info to mongo, however I have this running in docker, although I can get it out of docker it seems impossible to install mongo, i've tried some tricks from raspberry but still can't manage to do it, any help would be appreciated.

slbejaranom avatar Mar 02 '21 04:03 slbejaranom

Hello,

Can you provide information about how you attempted to install mongo and the errors that it produced?

Thanks!

mbrooksx avatar Mar 02 '21 17:03 mbrooksx

Well at first I tried like sudo apt-get install mongodb and it showed that there was no distribution for the armv8 processor, something like that if I remember well, after that, I tried building my docker-compose file and this is the one I'm talking about

version: "3"

services: 
  interfaz-web:
    build: ./webPage
    volumes:
      - ./webPage:/usr/src/app      
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"

    ports:
      - 3000:3000
    depends_on: 
      - scriptfinal
      - mongo

  scriptfinal:
    build: ./scriptService
    volumes:
      - ./scriptService:/usr/src/scriptService      
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
    devices:
      - /dev/video0:/dev/video0
      - /dev/bus/usb:/dev/bus/usb
      - /tmp/.X11-unix:/tmp/.X11-unix      
    ports:
      - 3500:3500
    privileged: true
    depends_on: 
      - mongo

  mongo: 
    container_name: mongo
    image: mongo
    ports:
      - "6000:27017"
    logging: 
      driver: none

It didn't install mongo as there's no distribution available for the processor

slbejaranom avatar Mar 02 '21 17:03 slbejaranom

@slbejaranom that is because mongo doesn't release debian packages for armv8 any more. See here (this was last year, but you get the point): https://developer.mongodb.com/community/forums/t/add-mongodb-4-2-arm64-builds-for-raspberry-pi-os-64-bit-debian-buster/5046/2

Looks like they do include some instructions to cross build the package your self though: https://developer.mongodb.com/community/forums/t/add-mongodb-4-2-arm64-builds-for-raspberry-pi-os-64-bit-debian-buster/5046/5

Namburger avatar Mar 02 '21 21:03 Namburger

Thanks Nam, I've seen you in some previous posts, I'll try to compile, with the 1GB coral would you recommend me to add more swap before doing it?

slbejaranom avatar Mar 02 '21 21:03 slbejaranom

@slbejaranom I haven't tried it yet, but it seems to be a crossbuild thing, where you compile on your x86 machine and then copy the artifacts over to the dev board, so it's not a build on the dev board at all!

Namburger avatar Mar 02 '21 21:03 Namburger