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

Mattermost module does not create postgres database anymore #22860

Closed
arianvp opened this issue Feb 16, 2017 · 1 comment · Fixed by #22899
Closed

Mattermost module does not create postgres database anymore #22860

arianvp opened this issue Feb 16, 2017 · 1 comment · Fixed by #22899
Assignees

Comments

@arianvp
Copy link
Member

arianvp commented Feb 16, 2017

Issue description

Something changed in the postgres module such that the mattermost module is now broken.
If you deploy mattermost for the first time, it should set up a postgres database through the ExecStartPre script. However, this script fails because psql cannot connect to the postgres UNIX Domain Socket. It seems postgres now listens on tcp instead of unix domain socket. So the script is not correct anymore

The Fix:

Force psql to connect to 127.0.0.1. It will then fallback to TCP connection. this is a hack though it seems...

Steps to reproduce

  services.mattermost = {
    enable = true;
  };

now run nixos-rebuild switch

Technical details

  • System:
[nixos@arianvp:/]$ nixos-version
16.09.1536.dc6a857 (Flounder)
  • Nix version: (run nix-env --version)
[nixos@arianvp:/]$ nix-env --version
nix-env (Nix) 1.11.6
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
[nixos@arianvp:/]$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"16.09.1229.f52eaf4"
@arianvp
Copy link
Member Author

arianvp commented Feb 16, 2017

I fixed this by changing PrivateTmp=true to PrivateTmp=false

I'll open a pull request

arianvp added a commit to arianvp/nixpkgs that referenced this issue Feb 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants