Fixing the error “cannot create /dev/null: Permission denied”, “Operation not permitted” restarting Apache

If you try to restart apache without sudo, like this: sshuser@makingbeehives:~$ /etc/init.d/apache2 restart You may receive the following error message: /etc/init.d/apache2: 229: /etc/init.d/apache2: cannot create /dev/null: Permission denied /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted) [Mon Feb 08 21:49:45 2016] [error] VirtualHost 173.255.224.150:80 — mixing * ports and non-* ports with a NameVirtualHost […]

Logstash: fixing “Unable to fetch mapping. Do you have indices matching the pattern”

If you set up ELK (elastic search, logstash, kibana) using a guide, you may get the following error: “Unable to fetch mapping. Do you have indices matching the pattern” This indicates that Kibana can’t find log data in elastic search. When the logstash service starts correctly, it creates this database (one per day, apparently). Apparently […]

Logstash: fixing permission denied errors

If you set up logstash to monitor /var/log, you may get errors like this: {:timestamp=>”2015-12-21T17:21:42.809000+0000″, :message=>”failed to open /var/log/auth.log: Permission denied – /var/log/auth.log”, :level=>:warn} {:timestamp=>”2015-12-21T17:21:42.828000+0000″, :message=>”failed to open /var/log/kern.log: Permission denied – /var/log/kern.log”, :level=>:warn} Fortunately this is easy to fix – by default logstash creates it’s own user and group, and you can add it’s […]

Fixing SSL23_GET_SERVER_HELLO:tlsv1in python

I found that using urllib/urllib2/urllib3 to pull urls from my site & Anaconda Python, I get SSL errors: SSL23_GET_SERVER_HELLO:tlsv1 There are a lot of suggestions here: https://github.com/kennethreitz/requests/issues/1847. However going through these suggestions, only upgrading to Python3 Anaconda fixed this for me.

Fixing “error ASPCONFIG: Could not load file or assembly ‘ClearScriptV8-32.DLL’ or one of its dependencies. The specified module could not be found.”

This error can occur when adding the ReactJS.NET package to an ASP.Net project and deploying to AppHarbor: error ASPCONFIG: Could not load file or assembly ‘ClearScriptV8-32.DLL’ or one of its dependencies. The specified module could not be found. When you added this Nuget package, it adds the following four assemblies to your project: ClearScriptV8-32.dll ClearScriptV8-64.dll […]