Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCould not load 'active_record/connection_adapters/postgresql_adapter when using docker image fluent/fluentd:v1.3-debian-onbuild #65
Comments
|
How about install latest pg, not |
|
Hi,
Ruby version is 2.5.2 And I get the exact same error as OP, it probably has to do with version mismatch I guess. |
|
@oranmoshai seems you removed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dockerfile:
`FROM fluent/fluentd:v1.3-debian-onbuild
RUN buildDeps="sudo make gcc g++ libc-dev ruby-dev libpq-dev"
&& apt-get update
&& apt-get install -y --no-install-recommends $buildDeps
&& sudo gem install
fluent-plugin-sql --no-document
&& sudo gem install
pg -v 0.21.0 --no-document
&& sudo gem install
fluent-plugin-remote_syslog --no-document \
&& sudo gem sources --clear-all
&& SUDO_FORCE_REMOVE=yes
apt-get purge -y --auto-remove
-o APT::AutoRemove::RecommendsImportant=false
$buildDeps
&& rm -rf /var/lib/apt/lists/*
/home/fluent/.gem/ruby/2.3.0/cache/*.gem`
Error:
2018-12-05 09:20:11 +0000 [error]: #0 Could not load 'active_record/connection_adapters/postgresql_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. path=nil error_class=LoadError error="Could not load 'active_record/connection_adapters/postgresql_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile."