Error: Could not connect: [111 ] Connection refused

Hi, I’m currently getting this issue after logging in via the WebUI. I pick-up on the issue because when I check on the camera’s in mobile app - it fails to connect and get camera feeds.

System information below:

PRETTY_NAME=“Debian GNU/Linux 11 (bullseye)”
NAME=“Debian GNU/Linux”
VERSION_ID=“11”
VERSION=“11 (bullseye)”
VERSION_CODENAME=bullseye
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“Debian -- User Support
BUG_REPORT_URL=“https://bugs.debian.org/
16G RAM / i5-3470 CPU @ 3.20GHz
9 Camera Setup with On Camera ONVIF Detection triggering recordings - Hence CPU Usage on the i5 system is kept to a minimum.

It’s been happening for about the last 2-3 weeks - Currently running - Version: 3.1.0-rc6.

When I checked the BlueCherry log there was nothing listed “sudo cat /var/log/bluecherry.log”

To fix the issue, I need to either manually reboot or I find the following works:

  • sudo service bluecherry stop
  • sudo service mariadb restart
  • sudo service bluecherry start

Any possible causes or further areas I can check? System has been working well for the last month before that.

I’ve checked MariaDB logging but appears that hasn’t been on - Have enabled it now and will post back next time it locks up should it reveal anything there.

Should I be looking anywhere else to find out what’s going on?

Just locked up again today - Will check the logs later today and report back.

RC7 should fix this, please download this file

http://lizard.bluecherry.net/~curt/releases/bullseye/bluecherry_3.1.0-rc7_amd64.deb

Thanks for that release, I’ve applied it and will let you know if it resolves it.

I can’t install this rc7,
“package have unmet dependencies
libopencv-…”
and 3 files listed (core, imgcodecs, imgproc)
“…but it is not installable”

Are you using bullseye?

I previously installed the rc6 version from the link on your website:

sudo bash -c "$(curl -s https://dl.bluecherrydvr.com/scripts/install-unstable)"

It does not start itself after system start for unknown reason. I have to run “service bluecherry restart” every time ubuntu has booted and then everything is fine. I’m not a big ubuntu expert and couldn’t figure out the reason for this. But that’s not the main thing.

As I described above, I couldn’t make the upgrade to rc7.
Unfortunately I don’t have permanent access to the system (even remotely - there’s no fixed ip, ports are closed and I couldn’t get ssh), it’s 100km away.
If you can give me some recommendations on what to try, I’ll apply it the next time I go there.
I tried uninstalling rc6 to do a “clean” installation of rc7 using your link above, but it doesn’t seem to uninstall completely and gives an error message too.

So, I seem to run into this error from time-to-time and I’ve finally found it in the logs today - With where it’s causing the blueberry service to fail and not restart.

Feb 12 18:59:32 sanvr3 bc-server[514]: E(6/Shed-External): Last message repeated 2 times!
Feb 12 18:59:32 sanvr3 bc-server[514]: E(6/Shed-External): Read error from stream: End of file
Feb 12 18:59:32 sanvr3 bc-server[514]: BUG: Segment violation at 0x0000000000000010
Feb 12 18:59:32 sanvr3 bc-server[514]: Call trace:
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00005641cfcd17f7] @ /usr/sbin/bc-server
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b3004d60] @ /lib/x86_64-linux-gnu/libc.so.6
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b4a5a993] @ /usr/lib/bluecherry/libavformat.so.58
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b4a5b99d] @ /usr/lib/bluecherry/libavformat.so.58
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b4a5d57b] av_write_frame+0x00000000 @ /usr/lib/bluecherry/libavformat.so.58
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00005641cfcc4a4c] @ /usr/sbin/bc-server
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00005641cfcdbd0b] @ /usr/sbin/bc-server
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b33cfed0] @ /lib/x86_64-linux-gnu/libstdc++.so.6
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b2fb1ea7] @ /lib/x86_64-linux-gnu/libpthread.so.0
Feb 12 18:59:32 sanvr3 bc-server[514]: [0x00007f02b30c8a2f] clone+0x00000000 @ /lib/x86_64-linux-gnu/libc.so.6

Thanks. How often does this occur? Can you provide detail specifications about the ‘Shed-External’ camera (network connectivity, make / model / firmware, video stream format)?

Thanks

Hey, hasn’t happened since last update - But actually that’s a point it’s a cheap IP Camera from eBay (3 years old) - With some weird IE ActiveX Control - No brand - Just called IP Camera - But was in a hard metal enclosure - I’ll switch it out with a different camera as I’ve got a spare HiLook Camera.

All camera’s except the shed external (1920x1080) are hard wired / res - HiLook IPC-T240H: 2560x1440 / Bit Rate: Variable, Video Q - Medium, Frames (20), Max Bit 2662, H.265, H.265+ off, iFrame Interval 50,

I’ll switch it out and report back if I have further problems or not - But, it usually takes between 5-7 days for an error if one does occur.

Switched out the camera notes and no more crashes and it’s been 6 days now. May have fixed it with replacing the camera causing the bluecherry service to crash.

Thanks for the advice.

What did you replace?

The next time the web UI freezes can you run this command:

The next time this happen can you attach the output of these:

The next time this happens can you run:

​cat /proc/meminfo
free
vmstat

and a screenshot or output of ‘htop’ (preferred method below):

sudo apt install htop aha html2text
echo q | htop -C | aha --line-fix | html2text -width 999 | grep -v “F1Help” | grep -v “xml version=” > file.txt

We have a new package available for testing, tt has some changes to fix socket descriptors leak.

http://lizard.bluecherry.net/~curt/releases/dev/focal/PR570/bluecherry_3.1.0-rc7_amd64.deb