Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

This is 'Stretching' me.... :(
Thank you for your donation

Pages (3): 1 2 3 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
This is 'Stretching' me.... :(
31st Dec, 2017, 07:01 AM
Post: #1
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
This is 'Stretching' me.... :(
Ok,

So today I decided it was time to upgrade from jessie to stretch as the end of the year support was about to hit!

First pi2 - success
Second pi2 - success
Third pi2 - Fail.

I don't know why - I tried.....
Terminal

xbian@lounge2 ~ $ sudo dpkg --configure -a
[sudo] password for xbian:
sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system
dpkg: error: unable to access dpkg status area: Read-only file system
I tried rebooting - Initially it seemed to be in a boot-loop. But now is stable and saying it has about 160sih upgrades, but I can't get it any further.

Also......
Terminal

xbian@lounge2 ~ $ sudo apt-get autoremove
[sudo] password for xbian:
sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
xbian@lounge2 ~ $ sudo reboot
sudo: unable to execute /sbin/reboot: Input/output error
xbian@lounge2 ~ $ sudo poweroff
[sudo] password for xbian:
Sorry, try again.
[sudo] password for xbian:
sudo: unable to open /var/lib/sudo/ts/xbian: Read-only file system
sudo: unable to execute /sbin/poweroff: Input/output error


So...what to try next please? - I am stuck! ConfusedAngel
Find all posts by this user
Quote this message in a reply
31st Dec, 2017, 08:01 AM
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
Hmmm, I suppose your sd-card is broken

You could try starting rescue system and run rum && btrfs check /dev/mmdblk0p2 and see what happens ...
Find all posts by this user
Quote this message in a reply
31st Dec, 2017, 08:17 AM
Post: #3
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
Sd card is only used only for booting - system loads from usb drive (Sandisk). I guess that makes it a bit more complicated? ..... Or maybe not.

Funnily enough, this as an exact copy of the system on the first pi upgraded with only changes to name, ip address,LCD screen and has been fine for months.

Maybe I will revert back to latest image and try again.

The first 2 upgrades exited 'gracefully' while this one went to a 'blank screen' and needed a hard reset (pulling the power)...

Cheers
Find all posts by this user
Quote this message in a reply
31st Dec, 2017, 10:28 AM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
(31st Dec, 2017 08:17 AM)Skywatch Wrote:  Sd card is only used only for booting - system loads from usb drive (Sandisk). I guess that makes it a bit more complicated? ..... Or maybe not.

Funnily enough, this as an exact copy of the system on the first pi upgraded with only changes to name, ip address,LCD screen and has been fine for months.

Maybe I will revert back to latest image and try again.

The first 2 upgrades exited 'gracefully' while this one went to a 'blank screen' and needed a hard reset (pulling the power)...

Cheers

Ahhhh, ok

Agree, if you have backup, it is much faster to restore system and try again. That's why we have backups Big Grin
Find all posts by this user
Quote this message in a reply
1st Jan, 2018, 02:42 AM
Post: #5
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
Removed SD card. Removed partitions and re-formated. Then tested with H2Wtest and all OK.

Have yet to test USB stick, will do that next.Rolleyes

Flashed image and working again. Big Grin

Will try upgrade again in next few days. Wink

Thanks.
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 02:57 AM
Post: #6
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
Hmm..... This did not go smoothly and I am stuck again.

Xbian seems to work. Can ssh and http in. LCD display is fine and sound from server and internet plays fine with dac.

But....when I try to VNC in and upgrade to stretch I keep getting a socket error not long after selecting the upgrade 'yes' option.

So I connected a monitor to the pi and tried again. Now I see it reboot whenever I ask it to upgrade to stretch. It starts 'looking for' the upgradeable packages, then bang..... it reboots itself.....

I am confused to say the least.
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 03:04 AM
Post: #7
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
Indeed, its confusing

Already checked power supply?
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 03:16 AM
Post: #8
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
PSU not changed and no other problems.

I noticed that this one was on 'staging' release and have now selected 'stable' instead - it has not rebooted this time and is still looking as I type this but mouse is still responsive too...so hoping. Activity LED solid green...

Thank you for the fast reply! I feel a little less stressed now! Wink
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 03:20 AM
Post: #9
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
Ehm, that's weird

I have staging enabled @alll of my XBian's, never had issues when running a distribution upgrade Dodgy
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 03:50 AM
Post: #10
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
So I wiped the sd card. D/l fresh backup from server. flashed card. Still the same problem. So will try dirty option as soon as I can. IT worked before in last emergency.

And I was hoping things would be better in 2018 - but early days I suppose! Wink
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 04:01 AM
Post: #11
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
Hmm, so your issue already has been backed up Confused

What's your 'dirty option' Smile
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 04:06 AM
Post: #12
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
Dirty option is to flash with already upgraded image from another pi and just change the ip/name/mail/ etc to match this one... Oddly it works with sudo apt-get upadte, no trouble.

Just for info is there a way to go to stretch from ssh?

It is really confusing!
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 04:19 AM (This post was last modified: 3rd Jan, 2018 04:23 AM by Nachteule.)
Post: #13
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
(3rd Jan, 2018 04:06 AM)Skywatch Wrote:  Dirty option is to flash with already upgraded image from another pi and just change the ip/name/mail/ etc to match this one... Oddly it works with sudo apt-get upadte, no trouble.

Ah, ok Smile

Quote:Just for info is there a way to go to stretch from ssh?

Sure, change everything from jessie -> stretch in file /etc/apt/sources.list and /etc/apt/sources.list.d/xbian.list

and run

sudo apt-get update; sudo apt-get dist-upgrade

That's what xbian-config is running in background Smile
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 04:28 AM
Post: #14
Skywatch Offline
Registered
Posts: 1,018
Joined: Mar 2013
Reputation: 28
RE: This is 'Stretching' me.... :(
(3rd Jan, 2018 04:19 AM)Nachteule Wrote:  Sure, change everything from jessie -> stretch in file /etc/apt/sources.list and /etc/apt/sources.list.d/xbian.list

and run

sudo apt-get update; sudo apt-get dist-upgrade

That's what xbian-config is running in background Smile

I wish I knew that a week ago! - Maybe it would work now? I just flashed an image from Nov24th to see if it is the same, but now I could just do that instead.

Could I make a request for dist-upgrade option to be added to the ssh version of xbian-config? Would make it all a whole lot simpler! Angel

I did the edits and update-dist-upgrade and it's working! - Explain that one! Tongue
Find all posts by this user
Quote this message in a reply
3rd Jan, 2018, 04:43 AM
Post: #15
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: This is 'Stretching' me.... :(
(3rd Jan, 2018 04:28 AM)Skywatch Wrote:  Could I make a request for dist-upgrade option to be added to xbian-config? Would make it all a whole lot simpler! Angel

You could, but I don't believe that I'm putting this into xbian-config CLI

Ah, btw, you can run

sudo xbian-config updates distupgrade prepare
sudo xbian-config updates distupgrade execute
sudo xbian-config updates progress

(the first command modifies sources.list files, the second command runs dist-upgrade in background and the third command checks if upgrade process still running)
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 17th May, 2025, 09:30 AM Powered By MyBB, © 2002-2025 MyBB Group.