Fix for UniFi Controller and version 5.1.1

Good news, Everyone! The problem

<db-server> ERROR system - [exec] error, rc=141
<db-server> INFO  db     - DbServer stopped

which affected many people is solved now.

By numerous samples, testing and compiling different versions of MongoDB, the good version was found, which stably works. Just build a package with a new version of the UniFi Controller 5.1.1. It is a separate package that you can’t upgrade the usual way. Transition to the following algorithm:

  1. From the old version of Web interface, UniFi Controller save backup all the settings in a separate file;
  2. From Synology Web interface stop service old version UniFi Controller;
  3. Install the package with a new version of the UniFi Controller 5;
  4. Launching a new version of the package Controller 5 UniFi;
  5. Open the Web interface of the new version of Controller 5 UniFi;
  6. Import the backup settings in the new version;
  7. After you verify that everything works normally – you can delete the package with an older version of UniFi Controller.

I want to say thanks to all who supported me and kicked me by email. Thanks a lot for people are donated me. If someone wants to support – you can always do it here.
PS. Always make backups! Just yesterday my Synology DS713+ for backups turn on it beeper very loudly and blinking yellow LED. Web interface showed terrible, the status of RAID-0 was Crashed. It happened half an hour before the match Iceland – France. Apparently disappointed in advance when presenting the result of the meeting. But Iceland is to be congratulated! Well done!
PPS. The data is of course not injured, soon I will write how the situation was resolved.

UniFi Controller News on Synology

Due to the changes in the latest beta versions of UniFi Controller and I want to give some guidance for customers:

  1. If you have updated the Synology DSM to version 6.0-nothing to worry about. And even good! You can install 64-bit Java, 7 or even 8-series. Let me remind you that the official JavaManager for DSM 5.0 only supports 32-bit Java.
  2.   (more…)

syslog-ng stopped writing logs after upgrading CentOS

An interesting incident happened on the server after a global update CentOS 7.1.1503 to version 7.2.1511. Usually when you upgrade CentOS anything happened with SELinux. Somewhere something changed contexts somewhere else something. But in this case, after you upgrade CentOS, daemon logging syslog-ng stopped writing logs. Not all logs, and most of that was getting through syslog.
As it turned out, the system logging ceased publishing send copies of logs to syslog. But the fix is quite easy, to do this, run the following commands:

$ nano -w /etc/systemd/journald.conf
[Journal]
ForwardToSyslog=yes
$ systemctl restart systemd-journald.service
$ systemctl restart syslog-ng.service

UniFi – 3.2.9-GA is Released for Soaking

UniFi – 3.2.9-GA will be the next official General Availability Release. We are going to put it in here to soak for a week to make sure no regressions are reported before moving to general release site.

Make sure you always do a backup before any updates, especially if you plan to upgrade your existing installation!

(more…)

UniFi – 3.2.8-GA is Released for Soaking

UniFi – 3.2.8-GA will be the next official General Availability Release. We are going to put it in here to soak for a week to make sure no regressions are reported before moving to general release site.

Make sure you always do a backup before any updates, especially if you plan to upgrade your existing installation!

(more…)

Automatically create routes in OS X using VPN

Very annoyed in OS X, that after the establishment of VPN-connections, you had to manually are forwarding some subnets inside VPN. After a while it got tired and was written a little script that is executed automatically immediately after the VPN-connection is established.

$ sudo nano -w /etc/ppp/ip-up
#!/bin/sh

# When the ppp link comes up, this script is called with the following parameters
#	$1	the interface name used by pppd (e.g. ppp0)
#	$2	the tty device name
#	$3	the tty device speed
#	$4	the local IP address for the interface
#	$5	the remote IP address
#	$6	the parameter specified by the 'ipparam' option to pppd

IFNAME="$1"
IPLOCAL="$4"
IPREMOTE="$5"

if [ "${IPREMOTE}" == "10.9.1.1" ]; then
    /sbin/route add -net 10.1 -interface ${IFNAME}
    /sbin/route add -net 10.2 -interface ${IFNAME}
    /sbin/route add -net 10.9 -interface ${IFNAME}
    /sbin/route add -host 10.20.30.40/32 -interface ${IFNAME}
fi

$ sudo chmod +x /etc/ppp/ip-up

How to Install UniFi Controller on Synology

  • The first thing you need to connect the repository «ACME Networks», to do this, open «Package Center» and click on the «Settings» button. In the «General» in the «Trust Level» select the item «Any publisher». Further, in the «Package Sources» push the button «Add» and enter the name of the repository – ACME Networks, and the location – http://synology.acmenet.ru/, after then click on the «OK» button. In the «Settings» window just click «OK». After that, click on the «Update» button. After the updating, in the “Community” should appear UniFi Controller Packages, where they can be installed.
  • (more…)