OPNsense Forum

Archive => 15.7 Legacy Series => Topic started by: Supermule on July 09, 2015, 09:46:29 am

Title: [SOLVED] Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 09:46:29 am
Finding Dashboard/Console stuck.

It upgraded fine during the webgui update.
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 09:47:09 am
One more since I cant put images in same post because of very limited upload sizes.
Title: Re: Dashboard/Console stuck??
Post by: franco on July 09, 2015, 10:05:44 am
Brian, is the GUI responsive? Is the console hanging there forever? If so, what happens on CTRL+C?
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 10:11:48 am
GUI is responsive. CTRL+C makes the console come alive and go to the default screen with options.
Title: Re: Dashboard/Console stuck??
Post by: franco on July 09, 2015, 10:18:05 am
Does the proxy log give any hints as to why it hangs? Are you using /tmp + /var MFS options?
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 10:33:53 am
System Log:

May 31 19:04:42    kernel: done.
May 31 19:04:24    kernel: done.
May 31 19:04:24    kernel: WARNING: /mnt was not properly dismounted
May 31 19:04:24    kernel: WARNING: /mnt: reload pending error: blocks 88 files 4
May 31 19:04:24    kernel: WARNING: /mnt: mount pending error: blocks 88 files 4
May 31 19:04:24    kernel: WARNING: /mnt was not properly dismounted
May 31 19:04:24    kernel: Trying to mount root from ufs:/dev/da0s1a [rw,noatime]...
May 31 19:04:24    kernel: SMP: AP CPU #3 Launched!
May 31 19:04:24    kernel: SMP: AP CPU #2 Launched!
May 31 19:04:24    kernel: SMP: AP CPU #1 Launched!
May 31 19:04:24    kernel: da0: 20480MB (41943040 512 byte sectors: 255H 63S/T 2610C)
May 31 19:04:24    kernel: da0: Command Queueing enabled
May 31 19:04:24    kernel: da0: 320.000MB/s transfers (160.000MHz, offset 127, 16bit)

Proxy Log:

2015/07/09 09:37:38 kid1| Set Current Directory to /var/squid/cache
2015/07/09 09:37:38 kid1| Starting Squid Cache version 3.5.3 for amd64-portbld-freebsd10.1...
2015/07/09 09:37:38 kid1| Service Name: squid
2015/07/09 09:37:38 kid1| Process ID 22264
2015/07/09 09:37:38 kid1| Process Roles: worker
2015/07/09 09:37:38 kid1| With 117000 file descriptors available
2015/07/09 09:37:38 kid1| Initializing IP Cache...
2015/07/09 09:37:38 kid1| DNS Socket created at [::], FD 6
2015/07/09 09:37:38 kid1| DNS Socket created at 0.0.0.0, FD 8
2015/07/09 09:37:38 kid1| Adding domain 22tv from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Adding nameserver 81.19.224.67 from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Adding nameserver 194.239.134.83 from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Adding nameserver 193.162.153.164 from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Adding nameserver 8.8.4.4 from /etc/resolv.conf
2015/07/09 09:37:38 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2015/07/09 09:37:38 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2015/07/09 09:37:38 kid1| Store logging disabled
2015/07/09 09:37:38 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects
2015/07/09 09:37:38 kid1| Target number of buckets: 1008
2015/07/09 09:37:38 kid1| Using 8192 Store buckets
2015/07/09 09:37:38 kid1| Max Mem  size: 262144 KB
2015/07/09 09:37:38 kid1| Max Swap size: 0 KB
2015/07/09 09:37:38 kid1| Using Least Load store dir selection
2015/07/09 09:37:38 kid1| Set Current Directory to /var/squid/cache
2015/07/09 09:37:38 kid1| Finished loading MIME types and icons.
2015/07/09 09:37:38 kid1| HTCP Disabled.
2015/07/09 09:37:38 kid1| sendto FD 12: (1) Operation not permitted
2015/07/09 09:37:38 kid1| ipcCreate: CHILD: hello write test failed
Title: Re: Dashboard/Console stuck??
Post by: jschellevis on July 09, 2015, 12:57:12 pm
I did make a post for this issue a bit ago..

https://forum.opnsense.org/index.php?topic=879.msg2567#msg2567

:-)
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 01:04:59 pm
But I didnt allow IPv6 but it still works. :) after hitting CTRL+C in the console.

Squid seems to be running.
Title: Re: Dashboard/Console stuck??
Post by: jschellevis on July 09, 2015, 01:21:19 pm
I think it only seems that way, squid will be running but not functioning properly.
Pretty certain that if you allow ipv6 the issue will be resolved, then you can block ipv6 traffic on the external interfaces if you want to.

Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 01:46:09 pm
how to check if squid works?
Title: Re: Dashboard/Console stuck??
Post by: jschellevis on July 09, 2015, 03:58:02 pm
If you run on the cli:

Code: [Select]
configctl proxy status
It should say squid is running as pid #####
Then at least the system knows it has been started, but to make sure it is actually working you need to try it out..

I have seen the IPv6 issue before and noticed that squid spawned two porcesses but did not pass traffic..
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 05:37:13 pm
It says Squid is not runnning.

Getting this error in dashboard when trying to restart it.

Quote
Fatal error: Uncaught exception 'Exception' with message 'Timeout (120) executing :proxy restart' in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php:100 Stack trace: #0 /usr/local/etc/inc/util.inc(148): OPNsense\Core\Backend->configdRun('proxy restart', false) #1 /usr/local/etc/inc/service-utils.inc(560): configd_run('proxy restart') #2 /usr/local/www/status_services.php(40): service_control_restart('squid', Array) #3 {main} thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Core/Backend.php on line 100
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 06:05:08 pm
No matter what I do, I cant restart it via the gui or anywhere else.

Enabled IPv6 on both interfaces. No change.

This is a bug.
Title: Re: Dashboard/Console stuck??
Post by: jschellevis on July 09, 2015, 06:20:55 pm
You need to set allow ipv6 as i said in my other post.. see link above.
Not on interface. And then reboot as the squid processes wont stop.

Or kill each squid process manually.

That is all. :)
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 07:14:00 pm
Will try. Get back to you soon.
Title: Re: Dashboard/Console stuck??
Post by: Supermule on July 09, 2015, 07:20:44 pm
Confirmed. Squid only runs with IPv6 enabled under system-> settings -> networking
Title: Re: Dashboard/Console stuck??
Post by: jschellevis on July 09, 2015, 09:47:28 pm
Thanks for testing and confirming.
Its an anoying issue, but I am not sure if it can work without ipv6.

Title: Re: Dashboard/Console stuck??
Post by: franco on July 10, 2015, 07:06:37 am
I will certainly take a look. I for one am not opposed to making IPv6 a hard default. There is no escape. ;)
Title: Re: [WORKAROUND] Dashboard/Console stuck??
Post by: Supermule on July 10, 2015, 09:42:52 am
I hate IPv6.

No logic involved.... why not make it extended IPv4 like 192.000.000.168.1.1 or something like that....

Title: Re: [WORKAROUND] Dashboard/Console stuck??
Post by: sfn on July 12, 2015, 05:03:04 pm
Hello,

First of all thank you everyone who is developing 15.7. I had same issue i am using 4 modem multiwan and when i just enabled 4 modem loadbalance console and gui is stucked. Freezing ...

Is any solution for that ?

Thank you,
SFN
Title: Re: [WORKAROUND] Dashboard/Console stuck??
Post by: franco on July 12, 2015, 05:58:33 pm
Not unless we get extra info, crash reports and the like. If all is stuck, pulling the plug is a last resort to get a running system back. The console being completely stuck is highly unlikely. Also, SSH might still be working, does ping work?
Title: Re: [WORKAROUND] Dashboard/Console stuck??
Post by: sfn on July 12, 2015, 07:43:00 pm
Hello,

Doesn't work anything at all. When 4th modem connecting as a loadbalance in 30 sec webgui and console is freezing you could not make anything than.

Thank you,

Sait Firat NEMIS
Title: Re: [WORKAROUND] Dashboard/Console stuck??
Post by: franco on July 13, 2015, 06:50:49 am
Again, I need more info. A screenshot of the console, ping statistics, an indication of what happens on reboot. Wether the GUI times out or only certain pages won't work, etc.

Note that the console is not equal to an ssh login, because the latter is a network connection based method and might be affected like the GUI.
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: franco on July 30, 2015, 09:37:51 am
Brian, 15.7.6 should fix this. Thanks for bearing with us. :)
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: Supermule on July 30, 2015, 09:58:36 am
Will test later today Franco!

Thx :)
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: franco on July 30, 2015, 11:16:32 am
Won't be out till tomorrow I'm afraid. :D
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: Supermule on July 30, 2015, 03:21:02 pm
Fook me :D

Sorry! Working my ass of before vacation time....

Won't be out till tomorrow I'm afraid. :D
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: franco on July 30, 2015, 04:14:51 pm
You're almost there now, aren't you. :D
Title: Re: [SOLVED] Dashboard/Console stuck??
Post by: Supermule on July 30, 2015, 06:37:51 pm
One more day............... Loooooooooong one :D