Getting blank json during heavy workload - mongodb

We are facing this issue since last month. here in our case, we have used nodejs version 6.11 and monogdb npm version 1.4.28.
Error Screenshot
In the above screenshot, logs are displayed as blank json. Socket server is getting crashed due to this error.
For the resolution, we have handled the error with below code:
Code with handled error:
temporary fix
Code while error came and server got crashed:
Before Crash
We can not handle this error as this have been used at n number of places.
Can anyone help me resolving this issue?
Thanks in advance.
-

Related

When exporting an Adhoc Report it gives an internal server error

When trying to export an report from the adhoc editor to any format it loads for a while, and then gives an "Internal Server Error".
The report has approx. 15.000 rows. But some are filled with large chunks of text.
Any ideas on how to solve this ?
I also looked at the logs but they aren't showing anything. The only thing i get in the browser is
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root#localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
The jasperserver.log and the catalina.out do not show any error stacktraces.
It looks like i'm getting a timeout ?

Unable to connect to update server when installing

I downloaded the installer and run it, but I get a message telling me to check my internet connection. My connection works fine, but I suspect there might be a proxy problem. Does anybody know how to remedy this?
I had this issue, but today when I started the installer (the same installer I downloaded two days ago) and there was no error message. I think the problem was caused by the smarface.io server(s).
Thus, when you get this error message while installing smartface:
"Unable to connect to update server. Please check you internet connection and try again. #1"
Just wait for a day or two and start the installer again. The error message will disappear!
I have a code improvement suggestion for smartface.io:
I hope the error message never occurs in the future, but if it does you should correct the spelling: the word "you" in the error message is incorrect. It should be "your".

ConnectionPool::PoolShuttingDownError thrown once in a while by application_controller rails using Mongodb replicaSet

I have a RoR application running on two different server. They run the same version of the app and are similar in configuration. I have a Mongodb replica set running on both the server with a third server as an arbitrary server.
Everything runs fine. The data is syncing perfectly. But after 2 weeks of running, one of the server started giving ConnectionPool::PoolShuttingDownError. I checked the log and I can see the error was raised application controller. I didn't change any code on any of the server.
The server raising the error is fine till it gets 6-7 simultaneous request. Or when you refresh the page 6-7 times together. It gives this error once and then again you refresh the page and its back to normal. This is weird and I can't understand why one server has this problem while the other one don't and that too sometime.
I am using Mongoid with Moped, Rails 4.1.0 and Ruby 2.1.5. I also checked available connections using db.serverStatus().connections which is around 51158 and ulimit of max process is 257185.
I searched a lot but I am still unsure of the cause of this problem. It will be great if someone can put some light on this issue. Any help will be appreciated. Thanks in advance.

mysqldump: Got error: 0: when retrieving data from server

The back up system I am running gives me this error
mysqldump: Got error: 0: when retrieving data from server
I have been looking around and I failed to find another output with error code 0. I do not know if that even matters or not but I thought it would otherwise it would be same number as others. Thats why I made this topic.
Server is CentOs
MySQL version 5.5.33-31.1
What throws me off is that I have another box with same OS and MySQL version and it works fine.
I have been looking at this site for reference but there is no code 0...
Any other information you need, please tell and I will put it here.

nagios Error: Could not read object configuration data

I have a brand new install of nagios3 on ubuntu 12.04. After I log in to the web interface and click any link I get the error:
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
I ran it with the -v option and it reported no errors:
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
The nagios log and apache error log and debug log all have nothing regarding this. Does anyone know how to turn on logging that will give me some kind of useful error? Or if anyone knows how to fix this specific problem without additional logging, I guess that's okay too.
Thanks!
Possibly an issue with permissions.
/var/cache/nagios3 probably has wrong user/group or permissions set.