Switching

Expand all | Collapse all

4300 J-web logon immediate session expire

  • 1.  4300 J-web logon immediate session expire

    Posted 06-23-2015 06:55

    I am having an issue with J-Web where the second I log in it expires my session immediately.

     

    "Your Session has expired. Click OK to redirect to login page"

     

    I am using firefox, and it is set to accept all cookies. I have also tried a seperate computer with explorer, and chrome to no better luck.  I have also run a "request system storage clean up" but it seems like slim pickings. This pretty much has been happening out of the box. I even upgraded to the latest code, but nothing.

     

    I tried both a management interface and regular 0/0/0 interface (both worked, and let me log in but the second I'm in it boots me out)

     

    config snippet

    -------------------

    services {
    web-management {
    http;
    }
    }

     

    interfaces {
    ge-0/0/0 {
    description TEST_PORT;
    enable;
    unit 0 {
    family inet {
    address 192.168.100.1/16;
    }
    }
    }

     

    I can web to 192.168.100.1 no problem, but that's as far as I can get aside from logging in.

     

    Also, there still appears to be space, but maybe I am missing something?

    -----------------------------------------------------------------------------------------------------------

    root@:RE:0% df
    Filesystem 512-blocks Used Avail Capacity Mounted on
    /dev/da0s2a 663556 324692 285780 53% /
    devfs 2 2 0 100% /dev
    /dev/md0 449672 449672 0 100% /packages/mnt/junos
    /dev/md1 13096 3488 8564 29% /packages/mfs-fips-mode-powerpc
    /dev/md2 9060 9060 0 100% /packages/mnt/fips-mode-powerpc-13.2X51-D35.3
    /dev/md3 16752 7264 8148 47% /packages/mfs-jdocs-ex
    /dev/md4 12928 12928 0 100% /packages/mnt/jdocs-ex-13.2X51-D35.3
    /dev/md5 158720 140640 5384 96% /packages/mfs-junos-ex-4300
    /dev/md6 344668 344668 0 100% /packages/mnt/junos-ex-4300-13.2X51-D35.3
    /dev/md7 29520 20160 7000 74% /packages/mfs-jweb-ex
    /dev/md8 53976 53976 0 100% /packages/mnt/jweb-ex-13.2X51-D35.3
    /dev/md9 18368 8896 8004 53% /packages/mfs-py-base-powerpc
    /dev/md10 26528 26528 0 100% /packages/mnt/py-base-powerpc-13.2X51-D35.3
    /dev/da0s3e 347504 6504 313200 2% /var
    /dev/md11 515800 36 474500 0% /tmp
    /dev/da0s3d 1817420 120 1671908 0% /var/tmp
    /dev/da0s4d 236584 156 217504 0% /config
    /dev/md12 241624 50236 172060 23% /var/rundb
    procfs 8 8 0 100% /proc
    /var/jail/etc 347504 6504 313200 2% /packages/mnt/jweb-ex-13.2X51-D35.3/jail/var/etc
    /var/jail/run 347504 6504 313200 2% /packages/mnt/jweb-ex-13.2X51-D35.3/jail/var/run
    /var/jail/tmp 347504 6504 313200 2% /packages/mnt/jweb-ex-13.2X51-D35.3/jail/var/tmp
    /var/tmp 1817420 120 1671908 0% /packages/mnt/jweb-ex-13.2X51-D35.3/jail/var/tmp/uploads
    devfs 2 2 0 100% /packages/mnt/jweb-ex-13.2X51-D35.3/jail/dev

    -----------------------------------------------------------------------------------------------------------

     

    I'm at a loss, as cookies and space was the solutions for others that have had this. Thanks for any help!

     

     



  • 2.  RE: 4300 J-web logon immediate session expire

    Posted 06-29-2015 09:12

    If you run 'show system users' from the CLI are any shown and if so do they match up with the user you are trying to use on the web UI?

     

    Have you tried disabling/removing the web UI interface, commit, and adding it back in?

     

    Any log messages on the device?



  • 3.  RE: 4300 J-web logon immediate session expire

    Posted 05-09-2016 07:30

    Have you ever solved your problem? If so - how?

     

    Regards,

    Pawel



  • 4.  RE: 4300 J-web logon immediate session expire

    Posted 05-09-2016 11:15

    crap I should have done a followup when it was fixed, I would have a better memory of this.

     

    I believe a firmware upgrade did the trick, but also (just in case if that's not enough), be sure that web-management services are enabled on the config. Not sure if its on by default or not.

     

    (what I have on my same 4300)

     

    version 13.2X51-D36.1;
    system {
        host-name THE-STACK-1;
        auto-snapshot;
        root-authentication {
            encrypted-password "blahblahblah"; ## SECRET-DATA
        }
        login {
            message "blah blah blah";
        }
        services {
            ssh;
            telnet;
            web-management {
                http;
            }
        }
    

    I hope that helps. I remember being super frustrated at the time because it came up for a few seconds but then popped me back out!

     

    * I found an old email to where I was communicating with support (here's the important part)

    I’m not sure if this is helpful, but this is what I did. I have a feeling this will be impossible to replicate in your lab without knowing what firmware we started on.
    
    1)	Out of the box I stacked 4 Ex3400’s and right away I was unable to get JWEB to work (original firmware unknown). I then upgraded to 13.2x51-D35.3
    2)	After upgrading this did not seem to change things. After a lot of debugging and working with you I did a “rollback” to 13.2x51-D26.2 which then JWEB Started working
    3)	Curious, I upgraded back to 13.2x51-D25.3 and now it’s working, which is very curious!! 
    

    So I got it working but I'm still not 100% sure what happened. curiously enough I have an SRX with a web issue also, to all I do to get it back (until they fix it in firmware) is the command "restart web-management"

     

    I wish you luck! I hope I helped!!

     



  • 5.  RE: 4300 J-web logon immediate session expire

    Posted 05-17-2017 13:51

    I know this is a long dead thread, but just in case anyone stumbles across it like I just did here's the fix that worked for me.

     

    I found KB30618 which outlines updating file permissions that may have broken after a zeroize. As soon as I updated the /jail/var/tmp file with the correct permissions I was able to login.

     

    And just in case the KB disappears:

     

    Change the file access permissions for /jail/var/tmp as follows:

    root@host:RE:0% cd /jail/var
    root@host:RE:0% ls -lrt
    total 12
    drwxrwxrwx 2 root wheel 512 Oct 6 21:04 run
    drwxrwxrwx 2 root wheel 512 Oct 8 01:42 etc
    drwxrwxrwt 3 root wheel 512 Oct 8 20:17 tmp
    root@host:RE:0% chmod 777 tmp
    root@host:RE:0% ls -lrt
    total 12
    drwxrwxrwx 2 root wheel 512 Oct 6 21:04 run
    drwxrwxrwx 2 root wheel 512 Oct 8 01:42 etc
    drwxrwxrwx 3 root wheel 512 Oct 8 20:17 tmp


  • 6.  RE: 4300 J-web logon immediate session expire

    Posted 03-30-2019 15:27

    Hi,

    we still facing it! 

    tried to open permissions for var folder,

    tried to upgrade didn't work.

    tried to change the settings for a limit session, and sessions idle 

    create new user 

    nothing helped 

    please help!

     

     



  • 7.  RE: 4300 J-web logon immediate session expire

     
    Posted 03-30-2019 18:01

    Hi m.man,

     

    Please try to set the correct date/time on the switch if it's not already accurate.  See if it helps:

    user@root% cli
    user@root> set date <YYYYMMDDhhmm.ss>

     

    Hope this helps.

    Regards,
    -r.

    --------------------------------------------------

    If this solves your problem, please mark this post as "Accepted Solution."
    Kudos are always appreciated :).