SRX

Expand all | Collapse all

Cannot upgrade JunOS

Jump to Best Answer
  • 1.  Cannot upgrade JunOS

    Posted 04-01-2019 13:52

    Hi!

     

    When i'm trying to upgrade JunOS on SRX300 from 15.1X49-D120.3 to 15.1X49-D170.4 I receive strange errors:

     

    > request system software add /var/tmp/junos-srxsme-15.1X49-D170.4-domestic.tgz no-copy unlink
    NOTICE: Validating configuration against junos-srxsme-15.1X49-D170.4-domestic.tgz.
    NOTICE: Use the 'no-validate' option to skip this if desired.
    Formatting alternate root (/dev/da1s2a)...
    /dev/da1s2a: 596.2MB (1220920 sectors) block size 16384, fragment size 2048
    using 4 cylinder groups of 149.05MB, 9539 blks, 19200 inodes.
    super-block backups (for fsck -b #) at:
    32, 305280, 610528, 915776
    Checking compatibility with configuration
    Initializing...
    Using junos-15.1X49-D170.4-domestic from /altroot/cf/packages/install-tmp/junos-15.1X49-D170.4-domestic
    Copying package ...
    mkdir: /cf/var/validate/c/tmp: No such file or directory
    mount_nullfs: /cf/var/validate/c/tmp: No such file or directory
    cd: can't cd to /cf/var/validate/c/tmp/junos
    /usr/libexec/ui/validate-config: cannot create /cf/var/validate/c/tmp/junos/+INSTALL.x: No such file or directory
    chroot: /bin/sh: No such file or directory
    ERROR: validate-config: /cf/var/validate/c/tmp/junos/+INSTALL fails
    ERROR: Configuration validation failed with /altroot/cf/packages/install-tmp/junos-15.1X49-D170.4-domestic

     

    I tried to upgrade to several other versions, but received the same error.

     

    It doesn't look like problem with free space:

     

    > show system storage
    node0:
    --------------------------------------------------------------------------
    Filesystem Size Used Avail Capacity Mounted on
    /dev/da1s1a 579M 251M 282M 47% /
    devfs 1.0K 1.0K 0B 100% /dev
    /dev/md0 20M 11M 6.7M 63% /junos
    /cf/packages 579M 251M 282M 47% /junos/cf/packages
    devfs 1.0K 1.0K 0B 100% /junos/cf/dev
    /dev/md1 807M 807M 0B 100% /junos
    /cf 20M 11M 6.7M 63% /junos/cf
    devfs 1.0K 1.0K 0B 100% /junos/dev/
    /cf/packages 579M 251M 282M 47% /junos/cf/packages1
    procfs 4.0K 4.0K 0B 100% /proc
    /dev/bo0s3e 185M 806K 170M 0% /config
    /dev/bo0s3f 4.9G 1.5G 3.0G 33% /cf/var
    /dev/md2 672M 44M 574M 7% /mfs
    /cf/var/jail 4.9G 1.5G 3.0G 33% /jail/var
    /cf/var/jails/rest-api 4.9G 1.5G 3.0G 33% /web-api/var
    /cf/var/log 4.9G 1.5G 3.0G 33% /jail/var/log
    devfs 1.0K 1.0K 0B 100% /jail/dev
    /dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
    devfs 1.0K 1.0K 0B 100% /cf/var/validate/c/cf/dev
    procfs 4.0K 4.0K 0B 100% /cf/var/validate/c/proc

     

    Any advices?



  • 2.  RE: Cannot upgrade JunOS
    Best Answer

     
    Posted 04-01-2019 14:02

    The error is pretty clear:

     

    NOTICE: Validating configuration against junos-srxsme-15.1X49-D170.4-domestic.tgz.
    NOTICE: Use the 'no-validate' option to skip this if desired.
    Checking compatibility with configuration
    ERROR: Configuration validation failed with /altroot/cf/packages/install-tmp/junos-15.1X49-D170.4-domestic

     

    Config validation is rarely helpful and I don't know what wouldn't be compatible between two minor updates. I would update with the no-validate option:

     

    request system software add /var/tmp/junos-srxsme-15.1X49-D170.4-domestic.tgz no-copy no-validate unlink



  • 3.  RE: Cannot upgrade JunOS

    Posted 04-02-2019 09:37

    Thank you a lot, looks like no-validate helped.

    I know this option, but I thought that the problem in some missing files...



  • 4.  RE: Cannot upgrade JunOS

    Posted 04-01-2019 20:58

    Hi RuslanP,

     

    Is your box booted up with backup partition when you are trying the upgrade?

    You can confirm from command:

    show system storage partitions | match "Currently booted"

     

    This expected the validation option failed if you are booting up from backup partition.

    The validation option should work properly if your box is booted up from primary partition.

     

    Hope this help.

     

    Tim.



  • 5.  RE: Cannot upgrade JunOS

    Posted 04-02-2019 09:32

    Hi Tim,

     

    No, I booted from active partions:

     

    > show system storage partitions | match "Currently booted"
    Currently booted from: active (da1s1a)
    Currently booted from: active (da0s1a)