<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/1093" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2021-03-31T06:27:00+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/1093</id>

		<entry>
		<author><name><![CDATA[stereomaton]]></name></author>
		<updated>2021-03-31T06:27:00+00:00</updated>

		<published>2021-03-31T06:27:00+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2587#p2587</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2587#p2587"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2587#p2587"><![CDATA[
You can probably use the command chmod to override the rights, but it is probably better to understand how the rights are set in the first place.<br><br>But again, the difference between 755 and 644 are execution rights, and then it is strange that you need them on a configuration (thus not executable) file.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=101">stereomaton</a> — Wed Mar 31, 2021 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-22T06:10:16+00:00</updated>

		<published>2021-03-22T06:10:16+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2547#p2547</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2547#p2547"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2547#p2547"><![CDATA[
My SLP updated image works well exept config.conf which needs 755 or 777 rights.<br>I`m trying to find how to change rights on boot or what change it back to 644. All other files in the same dir have 755.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Mon Mar 22, 2021 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomaton]]></name></author>
		<updated>2021-03-21T09:52:49+00:00</updated>

		<published>2021-03-21T09:52:49+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2542#p2542</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2542#p2542"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2542#p2542"><![CDATA[
You are working against the way SLP works (which is not a reproach, you do what you want with your board) so you have to find which mechanism you did not brake that is doing that. The mode is classically changed by a chmod or a copy, or sometimes if a file is removed and rewritten. I let you investigate.<br><br>By the way, using 777 mode is usually a good alert signal that something is done wrong.<br>For example here, one could wonder why you need execution rights on a configuration file.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=101">stereomaton</a> — Sun Mar 21, 2021 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-18T12:34:00+00:00</updated>

		<published>2021-03-18T12:34:00+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2537#p2537</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2537#p2537"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2537#p2537"><![CDATA[
But after reboot /opt/Stereopi/config.conf again with 644 rights (<br>How to fix that to 777 to make it automatic ?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Thu Mar 18, 2021 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-17T17:46:55+00:00</updated>

		<published>2021-03-17T17:46:55+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2534#p2534</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2534#p2534"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2534#p2534"><![CDATA[
<blockquote class="uncited"><div>##### FM ADDED #####<br>sudo mount -o rw,remount /<br>sudo mount -o rw,remount /boot<br><br>#Bad Gateway PREVENTING<br>systemctl daemon-reload<br>systemctl restart php7.0-fpm</div></blockquote>do not know how those could fix everything as it just restart php7.0-fpm...nevermind.<br>Not for me as i updated to php7.3-fm and adding that do not help me.<br><br>Ok. After all i found the last solution which doesnt let to take photo and change settings in web-admin panel.<br>1. For making photo as was mentioned above responsible make_photo.php. So to start it working again i`ve change 1 string in it adding sudo:<div class="codebox"><p>Code: </p><pre><code>sudo killall -q raspivid</code></pre></div>As i investigate it just coundnt kill raspivid to start raspistill...<br>2.The second thing that didnt work - i cannot make changes from web-page as all settings keep the same. <br>A start, i thought js is responsible for crash but later land to php.<br>To sum up 2 scripts should be changed:<br>in <strong class="text-strong">getconfig.php</strong>:<br>from <div class="codebox"><p>Code: </p><pre><code> $content = file('/boot/stereopi.conf');</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>$content = file('/opt/StereoPi/config.conf');</code></pre></div>in  <strong class="text-strong">saveconfig.php</strong><br>from<div class="codebox"><p>Code: </p><pre><code>$CONFIG_FILE = '/boot/stereopi.conf';</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>$CONFIG_FILE = '/opt/StereoPi/config.conf';</code></pre></div>and from<div class="codebox"><p>Code: </p><pre><code>system("sudo mount -o rw,remount /boot");</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>system("sudo mount -o rw,remount /");</code></pre></div>And the last step here - change rights to config.conf:<div class="codebox"><p>Code: </p><pre><code>sudo chmod 777 config.conf</code></pre></div> (or 755 if u scared)<br><br>That`s it.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Wed Mar 17, 2021 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-03-16T12:13:25+00:00</updated>

		<published>2021-03-16T12:13:25+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2529#p2529</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2529#p2529"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2529#p2529"><![CDATA[
Francesco, thank you for sharing your solution! <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":-)" title="Smile"><br><br>Zoldaten, our "shot" button has a special logic controlled by our scripts. No need to manually stop/start them. When you take a photo, scripts automatically stops raspivid, takes a photo, and run all live streams again.<br>Here is the way we are taking the photo: <br>/var/www/html/make_photo.php<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Tue Mar 16, 2021 12:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fmassa80]]></name></author>
		<updated>2021-03-16T11:41:35+00:00</updated>

		<published>2021-03-16T11:41:35+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2528#p2528</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2528#p2528"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2528#p2528"><![CDATA[
EUREKA!!!<br><br><br>Now all things seem to work fine again... I try to summarize a solution (it's work for me and it's my best work but surely I accept other tips to improve it!)<br><br>The last issue is that the initial start logo didn't start... I donn't know why...<br><br>This is my rc.local file: I added four rows to restart the php7.0-fpm service to prevent Bad Gateway issue. Maybe could I add them otherwhere to make this solution a bit more elegant?<br><br>----- rc.local -----<br>#!/bin/sh -e<br>#<br># rc.local<br>#<br># This script is executed at the end of each multiuser runlevel.<br># Make sure that the script will "exit 0" on success or any other<br># value on error.<br>#<br># In order to enable or disable this script just change the execution<br># bits.<br>#<br># By default this script does nothing.<br><br>##### FM ADDED #####<br><br>sudo mount -o rw,remount /<br>sudo mount -o rw,remount /boot<br><br>#Bad Gateway PREVENTING<br>systemctl daemon-reload<br>systemctl restart php7.0-fpm<br><br>##### ######## ######<br><br># clear HDMI console<br>setterm -clear all -foreground black -background black &gt; /dev/tty0<br>setterm -clear all -foreground black -background black &gt; /dev/tty3<br><br><br># Print the IP address<br>_IP=$(hostname -I) || true<br>if [ "$_IP" ]; then<br>  printf "My IP address is %s\n" "$_IP"<br>fi<br><br><br>echo "\n\n"<br>printf "\033[1;34mRaspberry Pi serial number\n"<br>printf "\033[1;37m"<br>cat /proc/cpuinfo | tail -n 1<br>printf "\033[0m\n"<br>echo "\n\n"<br><br><br><br>cd /opt/StereoPi<br>./run.sh &gt; /dev/null 2&gt;&amp;1 &amp;<br><br>exit 0<br><br><br>---------------<br><br>I added in run.sh the row below at the top of the script (as it suggested by you)<br>----- run.sh -----<br><br>sudo vcdbg set awb_mode 0 # added by FM<br><br><br><br><br><br>My2Cents<br><br>Francesco<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=744">fmassa80</a> — Tue Mar 16, 2021 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-15T19:45:37+00:00</updated>

		<published>2021-03-15T19:45:37+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2526#p2526</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2526#p2526"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2526#p2526"><![CDATA[
<blockquote class="uncited"><div>Hey Zoldaten,<br>A few comments on your investigations:<br><br>1. When our scripts are running (run.sh), they are using raspivid. So when you try to run "raspistill", it shows you an error. For the manual console run of "raspistill" or "raspivid" please stop our scripts first by stop.sh. Note: if you try to kill the raspivid process, but not run "stop.sh", our scripts will run it again. We have a self-check logic to run this again if something goes wrong.</div></blockquote>So, as i understand, it`s impossible to make a photo (from the web page) while scripts are running? So each time to make a photo i should go SSH to stop them. <br><blockquote class="uncited"><div>3. As for the shot and record buttons in the admin panel after the update - could you please try to catch JS errors in your browser console after clicking those buttons? This will help a lot.</div></blockquote>Nothing special there.<br>Admin panel looks well, i see cameras restart after push button "save", but it doesnt change options:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=171" class="postimage" alt="2021-03-15_22h14_09.jpg" onclick="viewableArea(this);" /></dt></dl></div>Cant catch why client try to get 8080 port after saveconfig.php...<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Mon Mar 15, 2021 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-03-15T09:40:49+00:00</updated>

		<published>2021-03-15T09:40:49+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2515#p2515</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2515#p2515"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2515#p2515"><![CDATA[
Hey Zoldaten,<br>A few comments on your investigations:<br><br>1. When our scripts are running (run.sh), they are using raspivid. So when you try to run "raspistill", it shows you an error. For the manual console run of "raspistill" or "raspivid" please stop our scripts first by stop.sh. Note: if you try to kill the raspivid process, but not run "stop.sh", our scripts will run it again. We have a self-check logic to run this again if something goes wrong.<br><br>2. /opt/Stereopi/config.conf is a local, system-used configuration. While booting, our system copies /boot/sterepi.conf to /opt/Stereopi/config.conf and work with it. So if you change anything in /opt/Stereopi/config.conf, your changes will be overwritten by the next boot. So please use /boot/sterepi.conf to change settings<br><br>3. As for the shot and record buttons in the admin panel after the update - could you please try to catch JS errors in your browser console after clicking those buttons? This will help a lot.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Mon Mar 15, 2021 9:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-13T16:44:23+00:00</updated>

		<published>2021-03-13T16:44:23+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2510#p2510</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2510#p2510"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2510#p2510"><![CDATA[
Ok. Got it worked! (but web-interface buttons still dont((  )<br><br>Firstly, i think just to <div class="codebox"><p>Code: </p><pre><code>rpi-update</code></pre></div>, but remembered my wi-fi dongle was build in current configuration.<br>So. I put <div class="codebox"><p>Code: </p><pre><code>sudo vcdbg set awb_mode 0</code></pre></div> to /opt/Stereopi/run.sh as 2d string.<br>After that <div class="codebox"><p>Code: </p><pre><code>raspistill -3d sbs -o 1.jpg</code></pre></div> become possible.<br>But still werent no video streams.<br><br>So i found out if use /opt/Stereopi/stop.sh - makung photo on browser is possible also u can move on directory to see them. But it comes <br>imposible again if manually start again run.sh.<br>Secondly, searching around i learned that if just correct manually /boot/sterepi.conf (not /opt/Stereopi/config.conf) everything works like <br>a charm! (exept making photo on page).<br>At last i just correct /boot/sterepi.conf (previosly remounted boot - <div class="codebox"><p>Code: </p><pre><code>sudo mount -o remount,rw /boot</code></pre></div>):<div class="codebox"><p>Code: </p><pre><code>udp_clients=192.168.1.108:3000 #my pc address i stream udp to udp_enabled=1ws_enabled=1 #to start up browser video</code></pre></div>So. The last steps are - find out how to start working buttons of photo and change options as that still not working. I think the reason of rights.<br>Could you share what rights dirs have, mine:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=170" class="postimage" alt="2021-03-13_19h41_35.jpg" onclick="viewableArea(this);" /></dt></dl></div><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Sat Mar 13, 2021 4:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-03-12T22:13:19+00:00</updated>

		<published>2021-03-12T22:13:19+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2509#p2509</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2509#p2509"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2509#p2509"><![CDATA[
Wow. I never faced the stuck of 'vcgencmd get_camera'.<br>More than a year ago, there was a bug in Raspbian. They updated AWB algo, and this broken stereoscopic support (our <a href="https://www.crowdsupply.com/virt2real/stereopi/updates/raspbian-buster-with-opencv-for-your-stereopi-and-kicad-schematic" class="postlink">post about this</a>, and the <a href="https://github.com/raspberrypi/firmware/issues/1253" class="postlink">GitHub discussion</a> with the Raspberry engineer). Right now, this bug is fixed in the latest kernels, but on your screenshot, I see 4.19.66 - it is the affected version.<br>Please try to run "sudo vcdbg set awb_mode 0" BEFORE accessing the camera. For SLP, it is better to add this row to autostart (or to our run.sh).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Fri Mar 12, 2021 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-12T21:50:57+00:00</updated>

		<published>2021-03-12T21:50:57+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2507#p2507</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2507#p2507"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2507#p2507"><![CDATA[
1.<div class="codebox"><p>Code: </p><pre><code>vcgencmd get_camera</code></pre></div>gives nothing with two cameras connected:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=169" class="postimage" alt="2021-03-13_00h29_42.jpg" onclick="viewableArea(this);" /></dt></dl></div>And freezes SSH-session.<br>2. <div class="codebox"><p>Code: </p><pre><code>raspistill -cs 0 -o test.jpg</code></pre></div> gives the same result.<br>*Ofcause, i remember of rw protection on partition.<br><br>But!<br>If i disconnect one of cameras and reboot. Everything works - i mean commands above gives something like supported=2 detected=1 and raspistill <br>makes photo when call it.<br><br>So. I suppose the problem is in the scripts started on boot that linked somehow with cameras.<br>I tried also with no result:<br>1.<br>- put more GPU memory on boot - sudo nano boot/config.txt: <br>GPU_MEM_512=448<br>- put less GPU memory on boot - sudo nano boot/config.txt: <br>GPU_MEM=128<br>2.<br>manually stop scripts in /opt/Stereopi:<br>./stop.sh<br>But camera led was still light.<br>3.<br>change camera(cameras) and cable(cables).<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Fri Mar 12, 2021 9:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-03-12T13:11:30+00:00</updated>

		<published>2021-03-12T13:11:30+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2502#p2502</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2502#p2502"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2502#p2502"><![CDATA[
Hi guys,<br>As I mentioned a few times, SLP update is not a good idea. We are having a lot of stuff onboard, and did a lot of configuration to fit each part with the other. The update usually breaks all dependencies (and overwrite settings).<br>But I see you are well ahead, so let me try to help you with other setting.<br><br>Zoldaten, could you please test, if your system sees any cameras?<br>1. What is the output of this command:<div class="codebox"><p>Code: </p><pre><code>vcgencmd get_camera</code></pre></div>2. I see you're not set the camera to use in your raspistill command. Please add -cs 0 or cs-1, like this:<br><br>raspistill -cs 0 -o test.jpg<br><br>3. Are you sure your fs is not read-only? The mentioned command try to record a file 'test.jpg'. to the Linux partition<br><br>Let's figure out this part first, and then go to PHP and the admin panel.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Fri Mar 12, 2021 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-11T17:35:02+00:00</updated>

		<published>2021-03-11T17:35:02+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2498#p2498</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2498#p2498"/>
		<title type="html"><![CDATA[Re: Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2498#p2498"><![CDATA[
hi!<br>i`d the same problem after update to php 7.3.<br><br>I coudn`t start up cameras, but i started up the server. I work on Raspbian Stretch.<br>Here are my steps:<br>1.<div class="codebox"><p>Code: </p><pre><code>sudo mount -o remount,rw /</code></pre></div>2.Then i followed the tutorial- <a href="https://onedev.net/post/942" class="postlink">https://onedev.net/post/942</a><div class="codebox"><p>Code: </p><pre><code>sudo nano /etc/apt/sources.list.d/10-buster.listdeb http://mirrordirector.raspbian.org/raspbian/ buster main contrib non-free rpisudo apt updatesudo apt install -y -t buster php7.3 php-apcu php7.3-curl php7.3-gd php7.3-fpm php7.3-cli php7.3-opcache php7.3-mbstring php7.3-xml php7.3-zip php7.3-intl php7.3-mysql php7.3-sqlite3 php7.3-xmlrpcsudo  systemctl stop apache2sudo apt-get remove -y apache2sudo apt install -t buster nginx-fullsudo systemctl start nginx.service</code></pre></div>3.Then we need to set up server configs. I followed this way with some changes - <a href="https://sprut.ai/client/article/1064" class="postlink">https://sprut.ai/client/article/1064</a><div class="codebox"><p>Code: </p><pre><code>sudo chown -R www-data:www-data /var/www/htmlsudo chmod -R 777 /var/www/html</code></pre></div><div class="codebox"><p>Code: </p><pre><code>sudo nano /etc/nginx/sites-available/default</code></pre></div>Dont change <blockquote class="uncited"><div>root /var/www/html;</div></blockquote>Only need to change to:<div class="codebox"><p>Code: </p><pre><code>        location ~ \.php$ {                include snippets/fastcgi-php.conf;                # With php-fpm (or other unix sockets):                fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;        }        </code></pre></div>Save changes.<br>4.Restart ngnix:<div class="codebox"><p>Code: </p><pre><code>sudo systemctl reload nginx</code></pre></div>and check it working:<div class="codebox"><p>Code: </p><pre><code>sudo systemctl check nginx</code></pre></div>5.Give rights to www-data:<div class="codebox"><p>Code: </p><pre><code>sudo chown -R www-data:www-data /var/www/htmlsudo chown -R www-data:www-data /media/DCIMsudo chown -R www-data:www-data /opt/StereoPisudo chmod 777 /dev/vchiqsudo chmod 777 /media/DCIMusermod -a -G video www-data</code></pre></div>After steps completed error "Bad gateway" will pass, but still no video from cameras and hold on with photo making.<br>Perhaps, .php scripts should be corrected or something else should be done cause of <div class="codebox"><p>Code: </p><pre><code>raspistill -v -o test.jpg</code></pre></div>doesnt work either.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Thu Mar 11, 2021 5:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fmassa80]]></name></author>
		<updated>2021-03-10T13:06:00+00:00</updated>

		<published>2021-03-10T13:06:00+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2493#p2493</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2493#p2493"/>
		<title type="html"><![CDATA[Bad gateway and no browser stream incoming after upgrading]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2493#p2493"><![CDATA[
Dear all<br><br>I upgraded via sudo apt-get update &amp;&amp; sudo apt-get upgrade the stereopi (v0.23) img but I have some issues. Probably I shouldn't have done this... <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_sad.gif" width="15" height="17" alt=":(" title="Sad"> <br> <br>After the upgrading process I had some issues with the package php7.0-fpm: via browser stereopi.local  aswered Bad gateway. So I solved with sudo apt-get purge  php7.0-fpm &amp;&amp; sudo apt-get install php7.0-fpm.<br>Now stereopi.local page work fine again: I can see the StereoPi logo and click the different bottons but no stream video incoming as if browser stream option had disabled (instead it is enable); connectng the StereoPi via HDMI both camera images are freezed to the first image arrived to the system.<br><br>I post below some Debug test made I don't know if there are correlation between the php7.0-fpm issue and this: <br><br><strong class="text-strong">via browse (web developer console F12)</strong><br><br>WebSocket connection to 'ws://stereopi.local:8080/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED<br><br><br><br><strong class="text-strong">via console</strong><br><br>/usr/bin/nodejs ./wsstream/index.js 1280 720 30<br><br><br>module.js:549<br>    throw err;<br>    ^<br><br>Error: Cannot find module '/wsstream/index.js'<br>    at Function.Module._resolveFilename (module.js:547:15)<br>    at Function.Module._load (module.js:474:25)<br>    at Function.Module.runMain (module.js:693:10)<br>    at startup (bootstrap_node.js:188:16)<br>    at bootstrap_node.js:609:3<br><br><br>So does anyone have any idea or suggestions about it? <br><br>Thanks in advance<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=744">fmassa80</a> — Wed Mar 10, 2021 1:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
