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

freebsd: User 'pgsql' is not available #290

Open
noelmcloughlin opened this issue Sep 10, 2019 · 0 comments
Open

freebsd: User 'pgsql' is not available #290

noelmcloughlin opened this issue Sep 10, 2019 · 0 comments

Comments

@noelmcloughlin
Copy link
Member

Seeing this error on FreeBSD even with ./defaults.yaml: version: '10'

          ID: postgres_schema-db2-public
    Function: postgres_schema.present
        Name: public
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/local/lib/python2.7/site-packages/salt/state.py", line 1933, in call
                  **cdata['kwargs'])
                File "/usr/local/lib/python2.7/site-packages/salt/loader.py", line 1939, in wrapper
                  return f(*args, **kwargs)
                File "/usr/local/lib/python2.7/site-packages/salt/states/postgres_schema.py", line 75, in present
                  schema_attr = __salt__['postgres.schema_get'](dbname, name, **db_args)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/postgres.py", line 2107, in schema_get
                  db_password=db_password)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/postgres.py", line 2162, in schema_list
                  password=db_password)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/postgres.py", line 438, in psql_query
                  password=password)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/postgres.py", line 377, in _psql_prepare_and_run
                  rcmd, runas=runas, password=password, host=host, port=port, user=user)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/postgres.py", line 186, in _run_psql
                  ret = __salt__['cmd.run_all'](cmd, python_shell=False, **kwargs)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/cmdmod.py", line 2069, in run_all
                  **kwargs)
                File "/usr/local/lib/python2.7/site-packages/salt/modules/cmdmod.py", line 428, in _run
                  'User \'{0}\' is not available'.format(runas)
              CommandExecutionError: User 'pgsql' is not available
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

No branches or pull requests

1 participant