Internal Server Error 500

Status
Not open for further replies.

LuFoX

Bronze Partner
Intermediate Cert.
Joined
Jul 6, 2018
Messages
4
Reaction score
0
Hello everyone,

we struggle with the 3CX
Everytime when i click on phones in the 3CX Webinterface the Internal Server Error 500 apperaed

We dont use any custom Templates. We use the default Template for the yealink T48S phone
We also reinstall the 3CX but two days later the same error appeared

thx for any help

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at ConfigurationManagementModel.CfgNetworkDevice.GetHashCode()
   at System.Collections.Generic.ObjectEqualityComparer`1.GetHashCode(T obj)
   at System.Linq.Lookup`2.InternalGetHashCode(TKey key)
   at System.Linq.Lookup`2.GetGrouping(TKey key, Boolean create)
   at System.Linq.Lookup`2.Create(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
   at System.Linq.GroupedEnumerable`2.GetEnumerator()
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at ConfigurationManagementModel.CfgNetworkDevicesProvider.get_DetectedDevices()
   at ManagementConsoleJS.Services.PhoneDeviceService.GetPhoneDeviceDescriptions()
   at ManagementConsoleJS.Controllers.PhoneListController.Get()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ManagementConsoleJS.Middleware.ExceptionWrapperMiddleware.d__3.MoveNext()
 
If I am reading the exception correctly, it is like the Expected Network Adapter is not found. What is this 3CX installed on? Is possible that a network adapter that was there is now not present? Wifi Adapter maybe?
 
thx for the fast answer.
The 3CX is installed at a Debian machine. I dont think so but i didn't install the 3cx on my self on the Debian machine
 
What Network Adapters do you have? What does the ifconfig command return?
 
Hyper-v 2016 network adapters (gen1 vm)

Code:
 Ifconfig output

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.248.9.5  netmask 255.255.255.0  broadcast 10.248.9.255
        inet6 fe80::215:5dff:fe02:a23  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:02:0a:23  txqueuelen 1000  (Ethernet)
        RX packets 32032  bytes 4825724 (4.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 25068  bytes 5634748 (5.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Lokale Schleife)
        RX packets 262779  bytes 53372858 (50.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 262779  bytes 53372858 (50.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

for us everything looks ok with this.
 
Everytime when i click on phones in the 3CX Webinterface
When you say "phones", do you mean the "Phones" node in the Management Console on the left, or do you mean the "Phone Provisioning" tab when you edit an extension?

Also apart from this error, does the Management Console work OK and can the extensions make/receive calls normally?
 
When you say "phones", do you mean the "Phones" node in the Management Console on the left, or do you mean the "Phone Provisioning" tab when you edit an extension?

I mean the "Phones" node in the Management Console on the left

Everything else in the Console work fine. Also it's possible to create new extensions and provide a phone to them (double click on the Extension ->Phone Provisioning)
But you didnt't see any Phones if you go to the Phones node. You only get the error Message.
At the moment i dont know if its possible to make calls or to receive calls. I didn't test this.

Thx for your help :)
 
This may be a case where I will have to suggest you contact the 3CX Support Team as this will probably require some in-depth investigation.

One thing you could try, although a bit advanced is to install Chrome and open the Management Console through it. Once logged in open the Chrome Settings --> More Tools --> Developer Tools, then go to the "Phones" node.
This will show a "PhoneList" entry in the Dev Tools. Click on it and you will see the results. Now I don't know what you would look for there, but that would be the first place I would check to give me a clue what may be causing this.
upload_2018-7-9_16-5-1.png
 
Status
Not open for further replies.

Forum statistics

Threads
111,887
Messages
589,562
Members
164,753
Latest member
GemmaC