Fixing error “bash: browserify: command not found”

If you follow the steps on the browserify site, you may find that it does not work afterwards: npm install -g browserify When I tried to run browserify, I got this error: bash: browserify: command not found In the log output, you will see something like this, which indicates that NPM makes a symlink in […]

Fixing scaladoc error “Cannot load the doclet class”

When running scaladoc with a custom generator, you can get the following error message: error: Cannot load the doclet class com.garysieling.MicroformatScalaDoc (specified with -doc-generator): java.lang.ClassNotFoundException: com/garysieling/MicroformatScalaDoc. Leaving the default settings will generate the html version of scaladoc. Unfortunately there are seven or eight different classpath arguments to scaladoc, which makes it tricky to execute. The […]

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.