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 bundler that supports some-gem as a default gem.
You can solve this by setting PassengerPreloadBundler
/ passenger_preload_bundler
to on
.
We do not enable this by default due to this statement from the developers:
It won't be on by default because it can ironically cause a conflict with two bundlers being loaded (an old one and a new one, in that order, doesn't work well).
https://github.com/phusion/passenger/issues/2409#issuecomment-1029361123 Show archive.org snapshot
Related cards:
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 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 `/pat...
Replacing exported resources with puppetdb queries
Instead of using Puppet exported resources you can use the puppetdb_query feature.
This can result...
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...
Don't use puppet `exec` type without `cwd` and `user` parameter
-
Don't use
exec
withoutuser
parameterIf you use
exec
withoutuser
parameter, the command will get executed as root. You mostly don't want this. -
There is a difference in the env variables of the exec if you run puppet man...
Barman recovery fails with missing history file
When restoring a barman PITR backup you may encounter this error:
Copying required WAL segments.
EXCEPTION: {'ret': 2, 'err': '/bin/sh: 1: cannot open /var/lib/barman/foopostgres/wals/00000007.history: No such file\n', 'out': ''}
The rea...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
HowTo Generate Nagios Config with puppet fast
Creating Nagios Config with puppet
Let's have a look at the classic way of managing Nagios configuration with exported Puppet resources.
Here is [a good article about the topic](https://www.ericholzbach.net/blog/automating-nagios-with-puppet-a...
Restoring old Postgres dumps with pg_restore v11 and higher
There is an issue with when restoring a PostgreSQL dump created with pg_dump
< v11 with pg_restore
> v10:
pg_restore: [archiver (db)] could not execute query: ERROR: schema "public"
already exists
Command was: CREATE SCHEMA public;
`...
Mind your locales with glibc upgrades when using PostgreSQL
When changing the glibc version, it's possible that the upgrade also includes changes to how locales work.
This is especially relevant when using [PostgreSQL databases (of any version)](https://wiki.postgresql.org/wiki/Locale_data_changes#What_in...