Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Junior Member
    Join Date
    Jan 2022
    Posts
    5

    Unable to insitu upgrade from 6.1.0 to 7.0.0

    Hi everyone,

    Obviously running an older version of piCoreplayer (6.1.0) and thought I would start the process of upgrading incrementally from 6.1.0 to 7.0.0 to 8.0.0 to 8.1.0.

    When I try to do the upgrade it starts off fine:

    /cgi-bin/insitu_update_stage1.cgi?ACTION=initial

    "[ INFO ] Internet accessible.
    [ INFO ] Checking <main repo> pCP repository accessible.
    [ INFO ] You are currently using piCorePlayer v6.1.0
    [ INFO ] Step 1. - Downloading insitu.cfg...
    [ OK ] Successfully downloaded insitu.cfg
    "

    I choose the piCorePlayer 7.0.0 and the status says OK and then I hit the Next > button. It proceeds to:

    /cgi-bin/insitu_update_stage1.cgi?CORE=pcpCore&VERSION=piCo rePlayer7.0.0&ACTION=download

    "[ INFO ] You are downloading the update script.
    [ INFO ] Step 2A. - Removing the old update script...
    [ INFO ] Step 2B. - Downloading the new update script for piCorePlayer7.0.0...
    [ OK ] Successfully downloaded the new update script.
    "
    and once again the status is ok.

    Now when I click on the piCorePlayer insitu update Next > button it proceeds to
    /cgi-bin/insitu_update_stage2.cgi?ACTION=download&CORE=pcpC ore&VERSION=piCorePlayer7.0.0

    but nothing happens. The webpage is empty with the exception of the banner for the main menu (e.g. piCorePlayer SQUEEZE AUDIO DEVICE). Logging into the pi 3B+ it doesn't appear any processes are running for any updates. Looking in the /tmp folder shows this:

    tc@piCorePlayer:/tmp$ ls -alg
    total 32
    drwxrwxrwt 7 root 280 Jan 2 10:29 ./
    drwxrwxr-x 17 root 360 Dec 31 1969 ../
    -rw-r--r-- 1 staff 131 Dec 31 1969 bootlog.txt
    -rw-r--r-- 1 root 1897 Dec 31 20:49 dropdown.cfg
    -rw-r--r-- 1 root 371 Dec 31 14:17 footer.html
    -rw-r--r-- 1 root 0 Dec 31 1969 k5_skip
    -rw------- 1 staff 0 Dec 31 18:48 newdep.lst
    drwxr-xr-x 2 root 60 Jan 2 10:29 pcp_insitu_update/
    -rw-r--r-- 1 staff 15418 Dec 31 18:48 pcp_sizelist
    drwxr-xr-x 2 staff 40 Dec 31 14:17 slimupdate/
    drwxrwxr-x 3 staff 60 Dec 31 1969 tce/
    drwxrwxr-x 81 staff 1620 Dec 31 1969 tcloop/
    -rw------- 1 root 363 Dec 31 18:53 tmp.VpZeAM
    drwxr-xr-x 2 staff 60 Dec 31 18:48 upgrade_ext/

    Not quite sure what is going wrong. Any ideas greatly appreciated.

    Thanks.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,819
    I don't know the answer but ... assuming things are not now broken ... is there a patch or minor update to 6.1.0 to apply first?
    I have a recollection of a patch being needed for one of the updates,
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

  3. #3
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,547
    It might be better in the long run, if you have another SD card, to start from scratch and go straight to pCP 8.1.0

  4. #4
    Junior Member
    Join Date
    Jan 2022
    Posts
    5
    Quote Originally Posted by Paul Webster View Post
    I don't know the answer but ... assuming things are not now broken ... is there a patch or minor update to 6.1.0 to apply first?
    I have a recollection of a patch being needed for one of the updates,
    Thanks for the reply.

    Everything there is up to date. The script is there in the right place for the 7.0.0 upgrade but I am hesitant to run it from the command line as I am not sure if I will see any errors that might occur.

  5. #5
    Junior Member
    Join Date
    Jan 2022
    Posts
    5
    Quote Originally Posted by Greg Erskine View Post
    It might be better in the long run, if you have another SD card, to start from scratch and go straight to pCP 8.1.0
    Thanks. Am trying to exhaust this option first before embarking on that. Need to borrow an SD card reader/writer from a friend to burn anything.

    Cheers.

  6. #6
    Junior Member
    Join Date
    Jan 2022
    Posts
    5
    walking through the install script and have identified at least one spot where things don't happen:

    # As all the insitu update is done in one file, it may be better to define this here
    UPD_PCP="/tmp/pcp_insitu_update"

    #================================================= =======================================
    # Prepare download directories - Do we really need boot and tce directory???
    #----------------------------------------------------------------------------------------
    pcp_create_download_directory() {
    if [ -d $UPD_PCP ]; then
    sudo rm -rf $UPD_PCP
    [ $? -ne 0 ] && FAIL_MSG="Can not remove directory $UPD_PCP"
    fi
    sudo mkdir -m 755 $UPD_PCP
    [ $? -ne 0 ] && FAIL_MSG="Can not make directory $UPD_PCP"
    sudo mkdir ${UPD_PCP}/boot
    [ $? -ne 0 ] && FAIL_MSG="Can not make directory ${UPD_PCP}/boot"
    sudo mkdir ${UPD_PCP}/tce
    [ $? -ne 0 ] && FAIL_MSG="Can not make directory ${UPD_PCP}/tce"
    sudo mkdir ${UPD_PCP}/mydata
    [ $? -ne 0 ] && FAIL_MSG="Can not make directory ${UPD_PCP}/mydata"
    }


    so the script that gets downloaded:

    tc@piCorePlayer:/var/www/cgi-bin$ more insitu_update_stage2.cgi
    #!/bin/sh

    # Version: 7.0.0

    successfully makes the main directory:


    tc@piCorePlayer:/tmp/pcp_insitu_update$ ls -alg
    total 4
    drwxr-xr-x 2 root 60 Jan 4 10:00 ./
    drwxrwxrwt 7 root 260 Jan 4 10:00 ../
    -rw-r--r-- 1 root 90 Jan 4 10:00 insitu.cfg

    but it fails to create any of the subdirectories for the install (boot, tce, mydata) nor does it give any notice/message that it fails :-(

  7. #7
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,875
    If it wont run, it likely means something is missing from your system. Too much has changed in pCP since 6.1, I just don't remember. I would just set it up from scratch using the latest installation.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  8. #8
    Junior Member
    Join Date
    Jan 2022
    Posts
    5
    Quote Originally Posted by paul- View Post
    If it wont run, it likely means something is missing from your system. Too much has changed in pCP since 6.1, I just don't remember. I would just set it up from scratch using the latest installation.
    Ok, thanks.

  9. #9
    Junior Member
    Join Date
    Jun 2022
    Posts
    3

    Solution

    I ran into this today as well and found the issue.

    I ran the script manually from the cli (/var/www/cgi-bin/ins...2.cgi) and saw a BASH error relating to an unexpected "(" on line 316. I looked at that line and it's properly formed but there is a double quote right before the parenthesis so I figured there was a missing double quote earlier in the script. Indeed if you search backwards from 316 for a double-quote you'll see a line that defaults the repo env var that is missing the trailing double quote.

    I added the missing double quote and then re-attempted the upgrade via the Web UI and it worked without issue.

    I did have a problem that after rebooting the WiFi settings weren't being used but a quick replacement of wpa_supplicant.conf and a second reboot fixed that.

  10. #10
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,547
    Are you referring to pCP 6.1.0 to 7.0.0?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •