¿ªÔÆÌåÓý

Locked JMRI update on a raspberry pi


 

I originally set up my Raspberry Pi using the information from this gentlemen's site.



I am looking for some assistance in doing the following to the JMRI installation.
  1. I would like to update the JMRI that is on the system but I am a novice Linux admin
  2. How to back up at a minimum the roster that I have.? I use Realvnc to run the raspberry pi headless but I really do not have it "network" to my windows computers?
  3. How to download the latest JMRI onto the raspberry and perform the JMRI update.
  4. copy the roster back into the correct location.
    1. Clean up install files after I am done with the update.

Looking for other things I should do to the system (operating system update? or should I just leave it as is).

Note: I am happy to post better specification for my system, but I could use some help with commands that tell me what version of operating system I am running and system specs (I think it is a Raspberry pi 3 but am not positive).? i.e. pretty much up to this point I built it and have simply used it to do JMRI work.

Thank you?


 

To update your system you need a network connection, use your VNC connect to get to to the Pi.
On the task bar (at the top) you should see the icon for the terminal window. Open the terminal and type in the following at the prompt:
sudo apt update
? then press the enter key. Make sure it's all lower case. Linux is case sensitive!
After a few minutes, you will receive a response stating x packages can be upgraded.
or All packages are up to date.
If you get the first message, enter the following at the prompt:
sudo apt upgrade -y
?then press the enter key. Make sure it's all lower case.
You may want to reboot your Pi if it hasn't been upgraded in a while.
Do this by typing the following at the prompt:
sudo shutdown -r
? then press the enter key.
type in
exit
? then press the enter key.
That'll bring your Pi up to date after it re-boots. You may have noticed pi2B or pi3B at the prompt. That's your Pi model.
This link can help you if you haven't added JMRI to the main menu



Use this link for installation of JMRI



?To update JMRI, start Decoder Pro, go to Help, check for updates and you'll get information on the latest production and test releases.
On Tuesday, November 13, 2018, 1:04:47 PM EST, David Blackburn <davidblackburn1@...> wrote:


I originally set up my Raspberry Pi using the information from this gentlemen's site.



I am looking for some assistance in doing the following to the JMRI installation.
  1. I would like to update the JMRI that is on the system but I am a novice Linux admin
  2. How to back up at a minimum the roster that I have.? I use Realvnc to run the raspberry pi headless but I really do not have it "network" to my windows computers?
  3. How to download the latest JMRI onto the raspberry and perform the JMRI update.
  4. copy the roster back into the correct location.
    1. Clean up install files after I am done with the update.

Looking for other things I should do to the system (operating system update? or should I just leave it as is).

Note: I am happy to post better specification for my system, but I could use some help with commands that tell me what version of operating system I am running and system specs (I think it is a Raspberry pi 3 but am not positive).? i.e. pretty much up to this point I built it and have simply used it to do JMRI work.

Thank you?


 

For the "must be current" crowd... The base Java version included in Raspbian Stretch is 8_65 a bit lower than the JMRI Java baseline and much lower than the Java current release.

JMRI with 65 still works fine on the Pi and Java can be a bit of a pain to update... plenty of instructions on the web...

Jim Albanowski


 

David,
Regarding backing up your roster, one simple way is from a Windows computer on the same network as your rpi:
The roster files are stored in the folder /home/pi/JMRI_UserFiles/roster/
You can access that folder by entering "\\rpi-jmri\JMRI_UserFiles" into Windows Explorer
You can then copy that folder to a backup location on your pc.

Regarding updating JMRI:
Note that updating JMRI will not have any effect on your user files location or your roster.
If your rpi can reach the internet, you can update JMRI from the RPi's web browser.?
End PanelPro from the RPi desktop.
Browse to jmri.org and click on and download the JMRI.xxxx.tgz file to your RPi.
When the download completes, click on the filename at the bottom of the browser, which will open Xarchiver.
Click the "Extract files" icon in Xarchiver.
You will be prompted with an "Extract to:" location, which will default to "/home/pi/Downloads".
Remove the "Downloads" portion, so that the "Extract to:" location becomes "/home/pi".
Also check the "Overwrite existing files" box.
Press "Extract" and wait until the red/green icon stays green (it takes a while)
Double-click the PanelPro icon and verify it starts OK, and that the new version # shows as expected.

Let me know if these directions help.
? SteveT


 

Thank you for the replies.? I am hoping to be able to test these tonight.?

David


 

I updated the operating system
uname -a give Linux wprailroad 4.9.35-v7+ #1014 SMP Fri Jun 30 14.47:43 BST 2017 Armv7l GNU/Linux

Java -Version gave me 1.8.0_65
Java(TM) SE Runtime Environment (Build 1.8.0_65-b17)

I than followed the instructions to download and extract to /home/pi with the overwrite existing files checked.

when I go to relaunch decoderpro

This is what I get (I am typing this as I have no idea how to capture the text in the error message). I have an image captured of the error.
Unrecoverable Error encountered.
this application will quit?
java.lang.noSuchMethodError: org.eclipse.jetty,server.handler.resourceHandler.(Lorg/eclipse/jetty/server/ResourceService;)V
at jmri.web.servlet.directory.DirectoryHandler.(<init>(DirectoryHandler.java.30)
and a bunch more lines like this

when I hit ok on the error screen it closes decoder pro


At


 

Steve

Per your instructions
Regarding backing up your roster, one simple way is from a Windows computer on the same network as your rpi:
The roster files are stored in the folder?/home/pi/JMRI_UserFiles/roster/
You can access that folder by entering "\\rpi-jmri\JMRI_UserFiles" into Windows Explorer
You can then copy that folder to a backup location on your pc.

However don't I have to have something like Samba running on the raspberry pi in order for windows to access it?

I am guessing the \\rpi-jmri\ is the name you have used and I have to put my machine name in there.? I tired both and both tell me that windows cannot access "\\rpi-jmri\JMRI_UserFiles"

Note: I thought I used your image to set this pi up, but now I am not so sure.? It might be from a different individual.


 

Last the roster.xml is not in a folder /home/pi/JMRI_UserFiles/roster? that folder structure does not exist on my raspberrypi that I can see.

However even after the update the roster is still found in decoder pro.? I cannot determine the directory it is in from inside of decoder pro because of the fact that it crashes at the moment.

Thank you for the assistance so far.??


 

¿ªÔÆÌåÓý

The file "roster.xml" will not be within your "roster" folder (or if it is, it will be non-functional)

The file "roster.xml" will be at the same level as your "roster" folder. If it doesn't exist Actions->Recreate Roster Index will create a new one.

It's a pity you can't get to see Help->Locations. If JMRI is crashing too soon, it would be worth looking in the "session.log" file. Unless you have explicitly changed the Roster Location, it will be found at the path called "preference:" in "session.log". To help locate these files please take a look at this link, which explains the JMRI user directories and files locations:
<>

--?
Dave in Australia

The New England Convention 2018

On 15 Nov 2018, at 4:56 PM, David Blackburn <davidblackburn1@...> wrote:

Last the roster.xml is not in a folder /home/pi/JMRI_UserFiles/roster? that folder structure does not exist on my raspberrypi that I can see.

However even after the update the roster is still found in decoder pro.? I cannot determine the directory it is in from inside of decoder pro because of the fact that it crashes at the moment.


 

David, it does not appear that you used my image. My instructions assumed that you did. For example, my image does include setting up the samba shares.
Perhaps you can try my image on a new sd card.
--SteveT


 

On Wed, Nov 14, 2018 at 09:24 PM, David Blackburn wrote:
java.lang.noSuchMethodError:
David, that error is most likely due to an old .jar file. You need to remove or rename the JMRI program folder, then extract again. On my image, that folder is /home/pi/JMRI

Regards,
? SteveT


 

You can do a screen capture quite easily using the command scrot
Please see?Scrot: Linux command-line screen grabs made simple
?for instructions. It's included in the Pi's OS (Raspbian)


On Thursday, November 15, 2018, 8:03:00 AM EST, Steve Todd <mstevetodd@...> wrote:


On Wed, Nov 14, 2018 at 09:24 PM, David Blackburn wrote:
java.lang.noSuchMethodError:
David, that error is most likely due to an old .jar file. You need to remove or rename the JMRI program folder, then extract again. On my image, that folder is /home/pi/JMRI

Regards,
? SteveT


 

Thank you everyone for the help

I found my rosters under .jmri/My_JMRI_Railroad and made copies of the folders.
I than rename /home/pi/JMRI to oldJMRI
I than extracted the latest JMRI (4.12)
Everything starts without issue and the rosters etc all loaded correctly.

Steve I believe I will be setting up a new SD card with your image and give your access point and raspberry pi set up an actual try.

Again thank you for the help.

David


 

Thanks very much Dave for taking the time to explain this very clearly. It is greatly appreciated.
Richard


 

I followed the instructions but when I rebooted it still says 4.13.2 is the same version I had.
I am trying to entertain new loco, Auscision 442 class. I probably should start a new thread, but just quickly, it won't recognise the new v5"ESU decoder and I can't find this listed in the list of decoders.?

Manufacturer 151
Version 255


 

Richard,
I think you grabbed the wrong thread for your question.

But to answer it, there are as yet no v5 definitions in decoder pro. That decoder release came on suddenly. I know it is in Dave Heap's cue to get done. You will need to be patient for it. Another thread suggested you might use a v4 definition and change minimal things like address, but I would proceed cautiously.

Tom Wilson

Colorado Springs, CO


On Wed, Mar 6, 2019, 3:54 AM Richard_vanRaay via Groups.Io <richard_vanraay=[email protected]> wrote:
I followed the instructions but when I rebooted it still says 4.13.2 is the same version I had.
I am trying to entertain new loco, Auscision 442 class. I probably should start a new thread, but just quickly, it won't recognise the new v5"ESU decoder and I can't find this listed in the list of decoders.?

Manufacturer 151
Version 255


 

Thanks Steve. It worked fine.