Error al instalar Thinger en rpi3


#1

Buenas, estoy tratando de instalar mi propio servidor hace ya varios dias, he intentado con ubuntu-core para rpi3 sin tener exito ya que si bien lo instalaba me aparecia “Error Desconocido” supongo a que se debe a que con ubuntu-core para rpi3 no se puede instalar mongodb, decidi entonces intentar instalarlo en Raspbian Strech, logro instalar mongodb, lo mismo con snapd, pero al instalar el snap del servidor obtengo el siguiente resultado:

Good, I’m trying to install my own server several days ago, I tried ubuntu-core for rpi3 without success because although I installed it, it appeared “Unknown Error” I guess that is because with ubuntu-core for rpi3 can not install mongodb, I decided then to try to install it in Raspbian Strech, I manage to install mongodb, the same with snapd, but when installing the server snap I get the following result:

root@raspberrypi:~# uname -a
Linux raspberrypi 4.14.50-v7+ #1122 SMP Tue Jun 19 12:26:26 BST 2018 armv7l GNU/Linux
root@raspberrypi:~# sudo systemctl status mongodb
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-07-31 15:25:40 UTC; 7h ago
Docs: man:mongod(1)
Main PID: 26460 (mongod)
CGroup: /system.slice/mongodb.service
└─26460 /usr/bin/mongod --config /etc/mongodb.conf

Jul 31 15:25:40 raspberrypi systemd[1]: Started An object/document-oriented database.
Jul 31 15:25:40 raspberrypi mongod[26460]: all output going to: /var/log/mongodb/mongodb.log
root@raspberrypi:~# sudo snap install thinger-maker-server
error: cannot perform the following tasks:

  • Mount snap “core” (4916) ([start snap-core-4916.mount] failed with exit status 1: Job for snap-core-4916.mount failed.
    See “systemctl status snap-core-4916.mount” and “journalctl -xe” for details.
    )
    root@raspberrypi:~# systemctl status snap-core-4916.mount
    ● snap-core-4916.mount - Mount unit for core
    Loaded: loaded (/etc/systemd/system/snap-core-4916.mount; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Tue 2018-07-31 22:47:36 UTC; 9min ago
    Where: /snap/core/4916
    What: /var/lib/snapd/snaps/core_4916.snap
    Process: 27908 ExecMount=/bin/mount /var/lib/snapd/snaps/core_4916.snap /snap/core/4916 -t squashfs (code=exited, status=32)

Jul 31 22:47:36 raspberrypi systemd[1]: Mounting Mount unit for core…
Jul 31 22:47:36 raspberrypi systemd[1]: snap-core-4916.mount: Mount process exited, code=exited status=32
Jul 31 22:47:36 raspberrypi systemd[1]: Failed to mount Mount unit for core.
Jul 31 22:47:36 raspberrypi systemd[1]: snap-core-4916.mount: Unit entered failed state.

Si alguno me puede tirar un salvavidas, se lo voy a agradecer!
Comments are appreciated!!


#2

No sé si la versión que está publicada es compatible con raspberry, pero sé que en la tienda está publicada la imagen para rasbperry pi y tarjetas SD con la imagen instalada.


#3

Hi,

just to be sure. You are installing Thinger.io server in you own RPI3, is it? The OS you commented is all for RPI? What version of Thinger.io is being installed?


#4

Yes, im installing Thinger.io server on my RPI3, I’ve donwload ubuntu-core RPI3 image following this steps https://www.ubuntu.com/download/iot/raspberry-pi-2-3 once i’ve started the RPI3 running ubuntu core i tried install Thinger via snap. the install was OK but the server never work.


#5

What version of Thinger.io is being installed?


#6

pablorosario@localhost:~$ sudo snap install thinger-maker-server
thinger-maker-server 1.3.0 from ‘thinger’ installed
pablorosario@localhost:~$ sudo service snap.thinger-maker-server.thingerd status
● snap.thinger-maker-server.thingerd.service - Service for snap application thinger-maker-server.thingerd
Loaded: loaded (/etc/systemd/system/snap.thinger-maker-server.thingerd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2018-08-09 01:32:40 UTC; 16s ago
Process: 1465 ExecStart=/usr/bin/snap run thinger-maker-server.thingerd (code=exited, status=0/SUCCESS)
Main PID: 1482 (thingerd)
CGroup: /system.slice/snap.thinger-maker-server.thingerd.service
└─1482 thingerd --fork --runpath=/var/snap/thinger-maker-server/common

Aug 09 01:32:25 localhost.localdomain systemd[1]: Starting Service for snap application thinger-maker-server.thingerd…
Aug 09 01:32:40 localhost.localdomain systemd[1]: Started Service for snap application thinger-maker-server.thingerd.

Installed on a RaspberryPi3 running Ubuntu-Core


#7

Do you have MongoDB running also in Ubuntu Core? You can enable the logs in the snap and try to see what is happening.


#8

I didn’t found any snap package to install mongodb in ubuntu-core.


#9

Hi Pablo, Mongodb is required for running Thinger.io. Thats the problem.

Best.