get debug output for puppetmaster running with passenger
If you need the debug output of the puppetmaster running with passenger you have to uncomment this setting in the config.ru
:
#ARGV << "--debug"
If you don't know where your config.ru
is, check the Apache DocumentRoot
. It's in /path/to/DocumentRoot/../config.ru
. For example if your DocumentRoot is /etc/puppet/rack/public/
the config.ru
is in /etc/puppet/rack/config.ru
.
Related cards:
Get information about current running passenger processes
With passenger-status --show=requests
you can get a huge JSON showing current information about the running passenger processes.
This can be useful if you want to find out what a passenger process is doing at the moment (for e.g. if one worker...
HowTo: Curl applications that are usually behind reverse proxies with TLS termination without the application redirecting to https schema
A lot of web applications require being called over https
, which is a good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx
or apache
will just redirect every request on http
to https
. Som...
Get a more colorful output for man pages
You can add this function to your .bashrc
(or the configuration file of the shell your using instead):
man() {
LESS_TERMCAP_mb=$'\e'"[1;31m" \
LESS_TERMCAP_md=$'\e'"[1;31m" \
LESS_TERMCAP_me=$'\e'"[0m" \
LESS_TERMCAP_se...
Find unmaintained packages with apt-forktracer
If you use third party APT sources you might end up with unmaintained packages after removing the external source or performing a dist-upgrade. The reason for this is how external sources overwrite official package versions.
[apt-forktracer
](ht...
Installing throttled to fix Lenovo laptops with nvidia graphics running Ubuntu losing performance after a while
We have observed Lenovo laptops with nvidia graphics losing performance after they have been in use for a few minutes. While we have not been able to pinpoint exactly what triggered the performance loss, we have found it mostly correlated with hig...
SSH add/remove port forwarding to active session
It is possible to manipulate the forwarded ports of an established interactive SSH session.
This is done by opening the command line with the escape character ~C
. This will open a ssh>
prompt. If it doesn't, make sure it's the first character...
Debug Puppet "Error: Failed to apply catalog: undefined method [...] for nil:NilClass"
If you get e.g. this error message when you try to run puppet agent:
Error: Failed to apply catalog: undefined method `strip' for nil:NilClass
you could have a very bad time debugging it. Because there will be no messages in the logs wh...
Bundler dependency issues with Phusion Passenger
If you get an error message like this:
You have already activated some-gem 1.2.3, but your Gemfile requires some-gem 3.2.1. Since some-gem is a default gem, you can either remove your dependency on it or try updating to a newer version of bundl...
Terraform/Terragrunt: Hide Refreshing State..., Reading..., Read complete after... output
Terraform (and terragrunt) gives a lot of output when running plan
or apply
, outputting a lot of progress information when refreshing the state before creating the plan. [They have reasons for this but it doesn't look like there is going to be...
GitLab CI: debugging failed jobs
It happens from time to time that a job in a GitLab pipeline fails. Sometimes, however, the error message is too meaningless to be helpful.
Example:
Running with gitlab-runner 16.7.0 (102c81ba)
on <host>, system ID: <ID>
Resolving secr...