View Post

Remove apple quarantine error from file

Today when uploading my files to my web server as usual i face some error. Checking the server and i’m sure that there’s no problem with it, soon i suspect there’s must be something error with the tar.gz file produce by my mac. Turns out after checking the file attribute i see an extra attribute attached to the file. Let’s …

View Post

Ubiquity Unifi cannot locate Java Home

After installing ubiquity unifi, you may face error saying that the UniFi fail to start because it fail to locate java home; the solution is simple which just required to edit the JAVA_HOME on the init script : $ vim /etc/init.d/unifi Find the JAVA_HOME=/usr/lib/jvm//usr/lib/jvm/java-7-openjdk-amd64 and add your instance architecture type after that string. For example : JAVA 8 : JAVA_HOME=/usr/lib/jvm/java-8-oracle JAVA 7 …

View Post

Repair UniFi mongodb database

Suddenly got an error today, the UniFi portal can’t be accessed even though i check at the server the service is running. Have tried to restart both the service and the server itself but still nothing, checking the error log on server show nothing suspicious. Checking the netstat also show java indeed is running on port 8443 Before you tried …

Jailkit Problem with the SSL CA cert

Today one of my client got problem with their git, The solution is rather simple, using root account create folder ssl certs in chroot directory and copy the ca-certificates.crt into it : Another super-easy but bad solution! is to disable SSL verification but i dont recommend this:

Jailkit failed to find user

Yesterday when i configure one of our server for SSH jailkit, i ran into some problem The solution is to check /var/www/example.com/etc/passwd for the specified user, is home directory already specified ?

SSHD error: buffer_get_ret: trying to get more bytes 257 than in buffer 76

If you have run similar error in your /var/log/auth : Jun 28 08:01:06 server sshd[2484]: error: buffer_get_ret: trying to get more bytes 257 than in buffer 76 Jun 28 08:01:06 server sshd[2484]: error: buffer_get_string_ret: buffer_get failed Jun 28 08:01:06 server sshd[2484]: error: buffer_get_bignum2_ret: invalid bignum Check your .ssh/authorized_keys file and make sure your key is in one line only, start …

View Post

SEPM taking spaces

Today i got a lot of email warning from one of our server that says Database is down! After checking the problematic server i see the C drive is in red state and the drive is full (100 GB), very strange as i don’t install quite a lot software on this server as it only serve as SEPM server, finally …

Fixing nginx random segfaults – safari can’t access

Recently one of our client complaining about their web can’t be accessed from safari, logs on server show : If you have more than one virtual host and you are using SSL on all of them, you may have incurred in this bug. A workaround is to specify the SSL session cache inside the http block instead than in each …