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

Raspberry: not able to run 1.3 #612

Closed
Nojbi2000 opened this issue Apr 15, 2019 · 10 comments
Closed

Raspberry: not able to run 1.3 #612

Nojbi2000 opened this issue Apr 15, 2019 · 10 comments

Comments

@Nojbi2000
Copy link

I did the installation on clear Raspberry as per your instruction.
After build i'm not able to run Companion and instead I got this error (please see attached)

Steps to reproduce the behavior:

  1. Install Raspbian on Raspberry 3B+
  2. Install Companion (as per your manual)
  3. Start raspi desktop
  4. Run Companion
  5. After click on icon you get this error

Does anyone of you had success by installing on Raspi 3B+?
If yes, could you share build?
Thank you
Jan

IMG_8467

@theColourSpace
Copy link

theColourSpace commented Apr 18, 2019

The headless version will work, but it seems to have issues with the streamdeck disconnecting.

#313

@JeffreyDavidsz
Copy link
Member

I've heard that power consumption is high sometimes, you could try a powered USB hub for the disconnecting part.

@JeffreyDavidsz
Copy link
Member

Run 'node headless.js' it will display the available network interfaces for you. Then you can try for example 'node headless.js eth0'

@Nojbi2000
Copy link
Author

Hello, no success :(
power is not the issue. Version 1.2 works. Companion does not work even without Streamdeck

So I tried:

pi@raspberrypi:~/companion $ ./headless.js
Usage: ./headless.js [port]

Available Interfaces:
lo 127.0.0.1
eth0 192.168.2.100

then:

pi@raspberrypi:~/companion $ ./headless.js eth0
app configuration directory /home/pi +0ms
app mkdirp /home/pi/companion/ null +19ms
config config construct(): catch err SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at new config (/home/pi/companion/bitfocus-libs/config.js:53:21)
at new exports (/home/pi/companion/bitfocus-libs/config.js:5:9)
at /home/pi/companion/app.js:47:13
at /home/pi/companion/node_modules/mkdirp/index.js:48:26
at FSReqWrap.oncomplete (fs.js:153:5) +0ms
config ERRCODE: undefined +6ms
/home/pi/companion/bitfocus-libs/config.js:69
if (err) throw err;
^

SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at new config (/home/pi/companion/bitfocus-libs/config.js:53:21)
at new exports (/home/pi/companion/bitfocus-libs/config.js:5:9)
at /home/pi/companion/app.js:47:13
at /home/pi/companion/node_modules/mkdirp/index.js:48:26
at FSReqWrap.oncomplete (fs.js:153:5)
pi@raspberrypi:~/companion $

any suggestions?

@haakonnessjoen
Copy link
Member

Try rm /home/pi/companion/config and then try again

@jarodwsams
Copy link
Collaborator

I got Companion running using headless.js by mashing together a couple different sets of instructions (documentation/raspberrypi.md and developer.md, along with steps from the Installation wiki page). See below. It runs, but I now have the issue with Companion losing its connection to the Deck periodically (different issue, so not going into detail about that here).

sudo apt update && sudo apt-get upgrade
sudo apt install libgusb-dev npm
sudo nano /etc/udev/rules.d/50-companion.rules
	SUBSYSTEM=="input", GROUP="input", MODE="0666"
	SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
	KERNEL=="hidraw", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
	SUBSYSTEM=="usb", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f40", MODE:="666", GROUP="plugdev"
	KERNEL=="hidraw", ATTRS{idVendor}=="ffff", ATTRS{idProduct}=="1f40", MODE:="666", GROUP="plugdev"
sudo reboot now
apt-get install nodejs git build-essential libudev-dev libusb-1.0-0-dev
sudo npm install n -g
sudo npm install yarn -g
sudo n 8.12.0
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
git clone https://github.com/bitfocus/companion.git
cd companion
./tools/update.sh
npm run rpidist
cp ~/.config/companion/db ~/companion/
sudo nano /etc/rc.local
Add this to the bottom of the flie, before the current last line
	/home/pi/companion/headless.js eth0
sudo reboot now

@jarodwsams
Copy link
Collaborator

@Nojbi2000 Were you able to get Companion running? Can we close this issue or are you still having problems getting 1.3 to run on your Pi?

@Nojbi2000
Copy link
Author

Nojbi2000 commented Aug 15, 2019 via email

@jarodwsams
Copy link
Collaborator

I've upgraded to a Pi 4, 2GB variant. It's working pretty well. I have to make sure I reboot the Pi about once a week, but past that it's pretty solid, all things considered.

Since it's functional for you at this point, would you mind clicking the "Close" button so we know the issue has been resolved? You should see it right next to the green "Comment" button below the reply box.

@Nojbi2000
Copy link
Author

Thanks for help, works now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants