GithubHelp home page GithubHelp logo

brianbroderick / chef_postgres Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 402 KB

Recipes for installing PG on Ubuntu. Design choices based on needs of chef solo and standard AWS Opsworks

Ruby 69.20% HTML 29.88% Shell 0.92%
chef chef-cookbook chef-repo postgres postgresql postgresql-database

chef_postgres's People

Contributors

brianbroderick avatar sqlasylum avatar

Stargazers

 avatar

Watchers

 avatar

chef_postgres's Issues

Postgresql Error: Invalid data directory

We're moving the data directory to a separately mounted AWS EBS drive.
The chef scripts were fine with this until 2 days ago, but then when trying to run psql -U postgres -d postgres with the default ubuntu user (using "trust" in pg_hba") (Ubuntu 16.04), it would display "Error: invalid data directory". It was fine when using a tcp host (-h), or if running it as sudo.

The issue boiled down to the postgresql.conf file had 640 permissions (rw-r-----) so the "everyone" didn't have read. However, this was fine prior to 2 days ago. Changing the permissions to 644 fixed it, but I'm not sure what else on the server caused this to break in the first place.

Ensure extensions are available

At least these ones:

address_standardizer,address_standardizer_data_us,btree_gin,btree_gist,chkpass,citext,cube,dblink,dict_int,dict_xsyn,earthdistance,fuzzystrmatch,hstore,hstore_plperl,intagg,intarray,ip4r,isn,ltree,pgaudit,pgcrypto,pgrowlocks,pgstattuple,pg_buffercache,pg_freespacemap,pg_hint_plan,pg_prewarm,pg_stat_statements,pg_trgm,plcoffee,plls,plperl,plpgsql,pltcl,plv8,postgis,postgis_tiger_geocoder,postgis_topology,postgres_fdw,sslinfo,tablefunc,test_parser,tsearch2,tsm_system_rows,tsm_system_time,unaccent,uuid-ossp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.