Author Topic: Help Beta Test a script to mount the SD card on a Pi read-only  (Read 5995 times)

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #30 on: November 19, 2016, 10:39:41 AM »
Do you have automatic updates turned off?  Leaving it on will slow down boot.  The read-only script adds a "fastboot" kernel option which tells the regular Linux startup scripts to not bother checking the filesystem since it is read-only so boots should be faster than without the read-only script.

I am still thinking about the universes thing.  The php session files are now in a writable location so that should not be causing the issue.  When you say change, are you talking about saving or just adjusting the universe count?
-
Chris

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,835
  • Kudos: 81
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #31 on: November 19, 2016, 10:45:49 AM »
Auto Update was disabled. I almost always disable Auto update.

I was changing the Universe count (from 10 to 20).  When I click Set, they go blank. I did not click Save.

If I make a backup copy of the universes file in the media folder, I can restore my universes (Samba access via Win Explore)
If I make any change and Save, it just zeroes out the contents of the universes file.

I can manually add new universes in that ASCII file and it accepts it on a refresh.

attached is my log file, even though I have logging mostly off.
« Last Edit: November 19, 2016, 11:14:49 AM by JonB256 »

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #32 on: November 19, 2016, 11:11:48 AM »
And this universe issue is randomly occurring?

If you set the number and it shows blank, what happens if you just reload the page?  When I ran into the issue before fixing the php session directory, I thought that it would just not save changes and that the file was still good.

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,835
  • Kudos: 81
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #33 on: November 19, 2016, 11:18:45 AM »
Not random. Has been very consistent, even though now I can "fix" it from a backup or manually edit the universes file.
If I Set a number, without Save, it returns to the pre-set list on a Refresh.

Any change I make, when I click Set to change Universe number and Save, or Save after changing any existing Universe values, my list of universes is 100% gone. 

Then, when I Save, my media/universes file becomes 0kb.

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #34 on: November 19, 2016, 01:11:02 PM »
Can you check the Apache error log for messages after you change the universe count?  The php session error showed up in that file.

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,835
  • Kudos: 81
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #35 on: November 19, 2016, 01:51:32 PM »
These all had the same time stamp (after I changed and saved)

Code: [Select]
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:30 2016] [error] [client 192.168.0.82] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php5) in Unknown on line 0, referer: http://192.168.0.43/uploadfile.php
[Sat Nov 19 14:49:36 2016] [error] [client 192.168.0.82] PHP Warning:  session_start(): open(/var/lib/php5/sess_u9c2bdtcnrjup5ru63m5cfhcd6, O_RDWR) failed: Read-only file system (30) in /opt/fpp/www/fppxml.php on line 28, referer: http://192.168.0.43/uploadfile.php

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #36 on: November 20, 2016, 04:26:06 AM »
These all had the same time stamp (after I changed and saved)

OK, I think I have this fixed now.  The issue was that since the root filesystem is read-only, the startup script couldn't copy the updated php.ini file into place.  On my test system, I had already updated the script during testing, so the system worked even though the file copy failed.

Can you pull in the latest updates and try it again?  You will need to reboot after pulling in the update.

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,835
  • Kudos: 81
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #37 on: November 20, 2016, 05:04:09 AM »
I tried it but it still didn't work right. I'll try on a fresh install.

I also tried Channel Remap and it wouldn't accept any values. (because there are no Channel Outputs defined)
« Last Edit: November 20, 2016, 05:36:14 AM by JonB256 »

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,835
  • Kudos: 81
    • Granbury Christmas Lights
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #38 on: November 20, 2016, 06:21:21 AM »
Success (on a clean install)

It is now able to update and save Channel Outputs (which then does let Remap work if you stay within the defined channels)

Will test survivability of power outages later today. Thanks for doggedly tracking this down, Chris.

JonB

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #39 on: November 20, 2016, 11:02:16 AM »
Thanks for helping test, I know it will help a lot of people with stability.

Offline kmc123

  • Newbie
  • *
  • Join Date: Apr 2016
  • Location: Charlotte, NC
  • Posts: 39
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #40 on: November 20, 2016, 12:53:56 PM »
I'm always up for a test to help out  :) .

I have a very small setup this year that consists of 4 Pi3's Running the latest 1.9 builds.

They are set up as a master and 3 remotes (2 P10 Matrix Signs and 1 MegaTree)

The P10 Matrix Signs have the "Rons Holiday Lights" interfaces on them and the MegaTree has the new Falcon PiCap on it.

All 4 of them are using wireless only, and all 4 of them have SanDisk 64GB USB Sticks in them.

The Master also h
as a USB audio device.

I am about to install and run the script on the MegaTree, and if that works out then the P10 Matrix Signs, and if that all works, I'll finish up with the Master...
« Last Edit: November 20, 2016, 01:14:02 PM by kmc123 »

Offline kmc123

  • Newbie
  • *
  • Join Date: Apr 2016
  • Location: Charlotte, NC
  • Posts: 39
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #41 on: November 20, 2016, 01:02:51 PM »
Update:
MegaTree has script installed and run and has been rebooted.
No obvious errors and I kicked of my playlist on the Master and it seems to run fine.
No off to do the same to the signs.

Offline CaptainMurdoch

  • Administrator
  • *****
  • Join Date: Sep 2013
  • Location: Washington
  • Posts: 7,939
  • Kudos: 141
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #42 on: November 20, 2016, 01:06:09 PM »
You are running audio on the tree Pi instead of the master???  Are you using a MP4 on the tree Pi or firing events to play audio files?

Offline kmc123

  • Newbie
  • *
  • Join Date: Apr 2016
  • Location: Charlotte, NC
  • Posts: 39
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #43 on: November 20, 2016, 01:10:28 PM »
Hey Chris - No that was a typing mistake - I went back and fixed it.


I have the USB Audio hooked to the Master, not the MegaTree.

Offline kmc123

  • Newbie
  • *
  • Join Date: Apr 2016
  • Location: Charlotte, NC
  • Posts: 39
  • Kudos: 0
Re: Help Beta Test a script to mount the SD card on a Pi read-only
« Reply #44 on: November 20, 2016, 01:13:24 PM »
Update2:


Both P10 Signs now have the script installed, run and rebooted - Looks good so far.


They are also running just fine when I kick off the playlist on the Master.


Now off to do the Master...

 

Back to top