Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent directory /etc/postgresql/9.4/main does not exist - Ubuntu 14.04 LTS #261

Closed
rasheedamir opened this issue May 19, 2015 · 6 comments

Comments

@rasheedamir
Copy link

I have seen lots of people facing the same issue and I am facing it as well on Ubuntu 14.04 LTS!

template[/etc/postgresql/9.4/main/postgresql.conf] action create
    * Parent directory /etc/postgresql/9.4/main does not exist.
    ================================================================================
    Error executing action `create` on resource 'template[/etc/postgresql/9.4/main/postgresql.conf]'
    ================================================================================

    Chef::Exceptions::EnclosingDirectoryDoesNotExist
    ------------------------------------------------
    Parent directory /etc/postgresql/9.4/main does not exist.

I have tried all versions including 9.1, 9.2, 9.3 and 9.4 but luck.
Any idea how to fix it? Or get around it?

@chrisduong
Copy link

+1

@chrisduong
Copy link

Hi guys,

If we move this code execute 'Set locale and Create cluster' before the line - include_recipe 'postgresql::server_conf' in the 'postgresql::server_debian', it would create the folder and it won't fail.

It is a simple fix.

@slyness
Copy link

slyness commented Dec 31, 2015

There will be corrections for this issue released soon. #314

@slyness
Copy link

slyness commented Jan 4, 2016

Resolved as of release 4.0.0 - https://github.com/hw-cookbooks/postgresql/releases/tag/v4.0.0

@slyness slyness closed this as completed Jan 4, 2016
@fiedl
Copy link

fiedl commented Mar 26, 2016

This, apparently, is still an issue on postgresql 4.0.0. Strangely, everything worked fine on vagrant. But, trying it out with a real ubuntu 14.04 server, the directory /etc/postgresql is actually empty.

I'm not sure why the locales on the system should have any impact on that. But can anyone see if there is anything wrong with my locales?

➜  locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

➜  env
LANG=en_US.UTF-8
LC_CTYPE=en_US
...

What is the proper way to fix this?

@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants