-
Notifications
You must be signed in to change notification settings - Fork 207
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
Which is the recommended distro for RPi3 #42
Comments
Hi, Most likely you have a old node version (you can check it with Detailed instructions:I'm using the official Raspbian Stretch Lite (https://www.raspberrypi.org/downloads/raspbian/) on my RP3. Then install node: curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs You might need this one too, (but I had a reinstall a few weeks ago and it worked without it) apt-get install build-essential libkrb5-dev gcc g++ install cd ~
wget https://github.com/bpatrik/pigallery2/releases/download/1.5.6/pigallery2.zip
unzip pigallery2.zip -d pigallery2
cd pigallery2
npm install Note: if Optionally I can recommend using nginx as load balancer for nodejs and certbot to have https. Let me know if this helps. |
Thanks for your quick answer. node -v = 10.15.0.0 Now i got a (successfull) installation and was able to start the service. I don't know why it worked. I used "sudo su" instead of sudo "command". Sorry for the question, but what is the diffence between: 1.1.1-a Install from release Here are my errors: node-pre-gyp WARN Using request for node-pre-gyp https download Further i got ffmpeg errors. |
Hi,
The messages you get is fine. Those are warnings. node downloads the required packeges and installs them. The app also tries to download ffmpeg with node, but thats not supported on a RP3. You will get a warning. You have to install |
Still having problems. pi@raspberrypi:~/pigallery2 $ npm start
internal/modules/cjs/loader.js:583 Error: Cannot find module '/home/pi/pigallery2/backend/index.js' npm ERR! A complete log of this run can be found in: sudo npm start -> no problems First it worked, then: Not possible to repair with: npm install sqlite3 --save Error: Meta file support error, switching off.. |
Hi, It looks to me that you have issues with file permissions. the SQL error might also be because of the permissions, if not then the installation process might have had been terminated in the middle. You can remove the Your last error means that MAP is switched off in the settings. Once you make the app run, you can switch that back. In general:If you have the correct node installed and execute the After that you might still miss something (like ffmpeg for video support), but the app should tell you how to fix that or how to switch off that part of the app if you don't need that module (like video playback) Also I happen to notice that you are trying to install v1.5.5, there is also v1.5.6 that contains some improvements, see them here: https://github.com/bpatrik/pigallery2/releases |
Now i was able to install without errors. Before "npm install" i used "chmod -R 777 pigallery2". (i know, quick and dirty) To start the service i use "sudo npm start". Without "sudo" it won't start and i get the following error: 1/28/2019, 9:45:40 PM[SILLY] Creating thread pool with 1 workers npm ERR! A complete log of this run can be found in: BIG THANKS for your excelent support!!!! |
Hi, Its not super straightforward to open 80 ass non root, you can read about that here: What I'm doing is, i have nginx (its the recommended way to run a node app): apt-get install nginx then edit
Read more here: https://eladnava.com/binding-nodejs-port-80-using-nginx/ For running pigallery as a service i recommend to create a system service:
(maybe the Then you start pigallery2 with: systemctl enable pigallery2.service
systemctl start pigallery2.service If you want to have https, use certbot. after you installed certbot, you just call: |
I'm closing it due to inactivity |
I was using this method with older version of pigallery2 I have updated to actual version and I get this error at daemon.log:
I tried to remove the "node_modules/sharp" directory, run "npm install" but problem persist |
I'm not sure about this issue. Also installing directly from source is "at your own risk", try using it with docker where everything is preinstalled. |
Which (minimal) distro should i use?
I tried Raspbian Stretch Lite (November 2018), but i am not able to get it working. Are there any missing packages?
After installation i used "apt-get update" and "apt-get upgrade" and then i followed your manual, but i got many errors (to many to post here).
Wich distro was succesfully tested?
Big Thanks.
The text was updated successfully, but these errors were encountered: