Page 1 of 1

Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 5:02 pm
by dmac
Everything was sort of working on my new RaspPi 2. Until I ran the cumulusmx.sh script to check installation. (-c) and it suggested a newer version on Mono and the link to https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13587. resulted in error messages and CumulusMX cannot be accessed on port 9999 despite restarts/reboots.

<<<<<<<<< Cumulus Status >>>>>>>>
Script Version: 2.2.4 (2015-08-21) - Available Version: 2.2.4 (2015-08-21)
CumulusMX Version: Cumulus MX v.3.0.0 build 3028
CumulusMX is running
CumulusMX is not listening on TCP Port: 9999 (http://192.168.1.121:9999)
Maybe Cumulus is running on a different TCP Port then 9999. Restart CumulusMX now to clearly start on TCP Port 9999 <sudo ./cumulusmx.sh -r>
ProcessID (PID) of CumulusMX is:
System Uptime of RasberryPi(raspberrypi) is: 42 min, 1 hours, user minutes.
CumulusMX is running since: 2015-09-03 16:46
Path to CumulusMX is: /home/pi/CumulusMX//
Path to CumulusMX Backup Folder is: /Backup_CumulusMX - Backups to keep: 5
Path to CumulusMX DD Backup Folder is: - Backups to keep: 5
Overall used diskspace of /home/pi/CumulusMX/ Folder is: 48M /home/pi/CumulusMX/
Free diskspace on this device: 3.0G

If I run sudo mono CumulusMX.exe in the CumulusMX directory I now do not get any feedback that it is running and on what IP and port.

I have tried to remove mono again and reinstall using
sudo apt-get update
sudo apt-get install mono-complete
But no joy. I have attached txt file from SSH session.

David

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 5:45 pm
by steve
Those dpkg errors mean nothing to me, but it does look like your mono installation is now broken as a result. I'm not sure why you would have wanted to risk installing that version of mono when you're presumably not wanting to use decimal commas. I'm afraid I have no idea what you need to do to get back to a working system, other than starting again with a fresh install of Raspbian - perhaps Jan can suggest something.

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 7:45 pm
by jank
Hello Steve, Dmac

@dmac: The script is written by myself and Steve has nothing to do with this script.
@Steve: sorry creating so much trouble

If I am not wrong, checking the version of Mono in my script is doing the following:
Here is the part of the Script checking the Mono Version and Model:

MODEL=$(uname -m |head -c-2)
if [ $MODEL == armv7 ]; then
RASP="Raspberry Pi 2 Model B"
else
RASP="Raspberry Pi A(+) or B(+)"
fi
MONOREV=$(mono -V |head -1|cut -c 27)
if [ $MONOREV == 4 ]; then
MONOSTAT=""$GREEN"Your installed Mono Version is the best for your $RASP"$RESTORE""
else
MONOSTAT=""$WARNCOLOR"You are running a $RASP so you should use the most Current Version of Mono which is Version 4.x.x - You are using Version 3.x.x"$RESTORE" --> https://cumulus.hosiene.co.uk/viewtopic$
fi


First I am checking Model: (uname -m |head -c-2) if armv6 it is the old Raspberry PI, if armv7 it is the new RaspberryPi2
Here, I a mchecking the mono verison which is installed: mono -V |head -1|cut -c 27
If this part is giving a "4" -> Mono Version 4 is installed, if giving a "3", the old Mono Verison is installed.
Finally, if you have a new RaspberryPi2 and Mono Verison 3.x, I am referring to one the Forum entry which is recommending a Mono Version 4. thats all.

@dmac: the Forum entry mentioned in the script is exactly explaining, how a Mono Version 3 can be uninstalled and Mono Verison 4 can be installed.
I have absolutely no Idea, whats wrong on your system that this failed. I did this more than once in the past, without having any trouble.
Have you followed Steve's instruction exactly?

Recommendation: Not sure if everything is damaged, but first of all, copy your home/pi/CumulusMX Folder to another destination in your network (WinSCP)
and do this mono uninstall again. It should not be a problem to again completely remove Mono again and install it again, of course, Verison 4, because I am sure that it will work.

sudo apt-get remove mono-complete
sudo apt-get autoremove

Then, install the latest version:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install mono-complete


In this uninstall/install instruction I only added "sudo apt-get autoremove". This was missing in Steves forum post, but I did this also not on my RaspberryPi...but maybe this helps

Jan

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 7:54 pm
by jank
Hi dmac

found the problem:
Look at line 17 in your TXT File: Segmentation fault

I am not a Linux expert, but this sounds not good: http://smallbusiness.chron.com/segmenta ... 27699.html

It looks like the old Mono was not completely uninstalled because of this error.
However, try to uninstall Mono again (referring to the instruciton one forum post above) and try to insatll mono again.
Let me know if this works for you.
Jan

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 7:55 pm
by steve
I suspect there is some kind of problem with the system, causing apt-get to segfault, but I don't know what that would be or how you would fix it.

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 8:15 pm
by jank
steve wrote:I suspect there is some kind of problem with the system, causing apt-get to segfault, but I don't know what that would be or how you would fix it.
David, was mono still running when you try to remove mono form the system? Or have you stopped CumulusMX before oyu proceed with the sudo apt-get remove mono-complete
Searching in the internet for similar problems, I can fiond several results:
http://mono.1490590.n4.nabble.com/Segme ... 65465.html

However, the Problem did not start when mono Version 4 was installed. For me it looks like the Segmentation fault startet when removing mono3 . This is really weired.

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 8:30 pm
by dmac
uname -m |head -c-2
Returns armv6 which is upsetting as it is supposed to be Raspberry Pi 2 B+. new from RS components ltd but it isn't. The instructions said not to install version 4 of mono on that equipment. My fault.

Will sort out with supplier and reinstall software on SD card. All this take me back to my Sinclair ZX and QL days.

Thanks Steve and Jank.

Re: Upgrading mono screwed up everything?

Posted: Thu 03 Sep 2015 9:07 pm
by jank
[quote="dmac"]uname -m |head -c-2
Returns armv6 which is upsetting as it is supposed to be Raspberry Pi 2 B+. new from RS components ltd but it isn't. The instructions said not to install version 4 of mono on that equipment. [T/quote]
This Strange. It should be possible to Identify a Pi 1 based on Images using Google.
As far as i Know:
Raspberry Pi 1 is having a SD Card
Raspberry Pi 2 is having a Micro SD Card

What is Yours having?

Re: Upgrading mono screwed up everything?

Posted: Fri 04 Sep 2015 4:04 am
by uncle_bob
Might need the new version "Stereo". Though it probably only works correctly only on Macs.
Just kidding folks, move along ;)

Re: Upgrading mono screwed up everything?

Posted: Fri 04 Sep 2015 6:10 am
by rogerthn
jank wrote:...
As far as i Know:
Raspberry Pi 1 is having a SD Card
Raspberry Pi 2 is having a Micro SD Card

What is Yours having?
PI B+ and PI 2 both have Micro SD Card
Try

Code: Select all

egrep "processor|model" /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
B+

Code: Select all

egrep "processor|model" /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
processor : 1
model name : ARMv7 Processor rev 5 (v7l)
processor : 2
model name : ARMv7 Processor rev 5 (v7l)
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
PI 2

Re: Upgrading mono screwed up everything?

Posted: Fri 04 Sep 2015 11:03 am
by jank
Modell A - SD-Card
Modell A+ - microSD
Modell B - SD-Card
Modell B+ - microSD-
Raspberry Pi 2 Model B - microSD

Mhhmm, so lets say, YES/NO

Re: Upgrading mono screwed up everything?

Posted: Sun 06 Sep 2015 8:48 am
by dmac
Thanks everyone.

I have been off this post as waiting for new raspberry pi 2 B+. The original was the old model and ordered/delivered in error. It arrived at PC world yesterday at 5pm and I formatted (and installed NOOBS with raspian) the SD card after copying the CumulusMX directory to windows and installed Mono 4.0.3.

CumulusMX now working well (excellent software Steve and donation will be on it's way). Jank's script also working . Thanks Jan

David

Re: Upgrading mono screwed up everything?

Posted: Sun 06 Sep 2015 9:08 am
by jank
:clap: