pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
role "my_account" does not exist
4+ messages / 3 participants
[nested] [flat]

* role "my_account" does not exist
@ 2023-08-04 00:17 Amn Ojee Uw <amnojeeuw@gmail.com>
  2023-08-04 00:20 ` Re: role "my_account" does not exist David G. Johnston <david.g.johnston@gmail.com>
  2023-08-04 00:22 ` Re: role "my_account" does not exist Adrian Klaver <adrian.klaver@aklaver.com>
  2023-08-04 01:13 ` Re: role "my_account" does not exist Amn Ojee Uw <amnojeeuw@gmail.com>
  0 siblings, 3 replies; 4+ messages in thread

From: Amn Ojee Uw @ 2023-08-04 00:17 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Hello!

Following this web page 
<https://ubiq.co/database-blog/create-user-postgresql/;, I have tried to 
create a new role/user, but to no avail.

After typing the following command : /*createuser --interactive 
--pwprompt*/ I get the following questions:

Enter name of role to add: company_name
Enter password for new role: xxxxxxx
Enter it again: xxxxxxx
Shall the new role be a superuser? (y/n) y

Than this error is displayed :
*/createuser: error: connection to server on socket 
"/var/run/postgresql/.s.PGSQL.5432" /**/
/**/failed: FATAL:  role "my_debian_login_account_name" does not exist/*

How/ever, this issue is not really relevant/, per se, since I am able to 
create roles once I log in PostgreSQL-15. Nonetheless, if the service 
exist, why not usu it. If the services exist and is not working, could 
it be that there is a problem that will come apparent later on, when 
unlike now, it would be during a critical moment. Thus the question, 
what can I do to resolve this issue?
Is there something I am missing?


Thanks

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: role "my_account" does not exist
  2023-08-04 00:17 role "my_account" does not exist Amn Ojee Uw <amnojeeuw@gmail.com>
@ 2023-08-04 00:20 ` David G. Johnston <david.g.johnston@gmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: David G. Johnston @ 2023-08-04 00:20 UTC (permalink / raw)
  To: Amn Ojee Uw <amnojeeuw@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

On Thu, Aug 3, 2023 at 5:18 PM Amn Ojee Uw <amnojeeuw@gmail.com> wrote:

> Hello!
>
> Following this web page
> <https://ubiq.co/database-blog/create-user-postgresql/;, I have tried to
> create a new role/user, but to no avail.
>
> After typing the following command : *createuser --interactive --pwprompt*
> I get the following questions:
>
> Enter name of role to add: company_name
> Enter password for new role: xxxxxxx
> Enter it again: xxxxxxx
> Shall the new role be a superuser? (y/n) y
>
> Than this error is displayed :
> *createuser: error: connection to server on socket
> "/var/run/postgresql/.s.PGSQL.5432" *
> *failed: FATAL:  role "my_debian_login_account_name" does not exist*
>
> How*ever, this issue is not really relevant*, per se, since I am able to
> create roles once I log in PostgreSQL-15. Nonetheless, if the service
> exist, why not usu it. If the services exist and is not working, could it
> be that there is a problem that will come apparent later on, when unlike
> now, it would be during a critical moment. Thus the question, what can I do
> to resolve this issue?
> Is there something I am missing?
>

createuser has to login to the server to do its work.  Whatever credentials
or method you use to connect via psql (usually via sudo and the postgres
o/s user) you need to use here as well.

David J.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: role "my_account" does not exist
  2023-08-04 00:17 role "my_account" does not exist Amn Ojee Uw <amnojeeuw@gmail.com>
@ 2023-08-04 00:22 ` Adrian Klaver <adrian.klaver@aklaver.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2023-08-04 00:22 UTC (permalink / raw)
  To: Amn Ojee Uw <amnojeeuw@gmail.com>; pgsql-general@lists.postgresql.org

On 8/3/23 17:17, Amn Ojee Uw wrote:
> Hello!
> 
> Following this web page 
> <https://ubiq.co/database-blog/create-user-postgresql/;, I have tried to 
> create a new role/user, but to no avail.

Why use random Web tutorials, most of which are full of errors, instead 
of the Postgres documentation:

https://www.postgresql.org/docs/current/app-createuser.html

> 
> After typing the following command : /*createuser --interactive 
> --pwprompt*/ I get the following questions:
> 
> Enter name of role to add: company_name
> Enter password for new role: xxxxxxx
> Enter it again: xxxxxxx
> Shall the new role be a superuser? (y/n) y
> 
> Than this error is displayed :
> */createuser: error: connection to server on socket 
> "/var/run/postgresql/.s.PGSQL.5432" /**/
> /**/failed: FATAL:  role "my_debian_login_account_name" does not exist/*

Well in your example above the role name is 'company_name' not 
'my_debian_login_account_name', so the error message is correct.

> 
> How/ever, this issue is not really relevant/, per se, since I am able to 
> create roles once I log in PostgreSQL-15. Nonetheless, if the service 
> exist, why not usu it. If the services exist and is not working, could 

createuser works.

> it be that there is a problem that will come apparent later on, when 
> unlike now, it would be during a critical moment. Thus the question, 
> what can I do to resolve this issue?
> Is there something I am missing?


Yes reading the documentation and paying attention to what you are doing.

> 
> 
> Thanks
> 
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com






^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: role "my_account" does not exist
  2023-08-04 00:17 role "my_account" does not exist Amn Ojee Uw <amnojeeuw@gmail.com>
@ 2023-08-04 01:13 ` Amn Ojee Uw <amnojeeuw@gmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Amn Ojee Uw @ 2023-08-04 01:13 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

I came to understand PG a bit better and then understood where I had 
gone wrong. Thanks folks, but please ignore this email.

My most sincere apologies.

On 8/3/23 8:17 p.m., Amn Ojee Uw wrote:
>
> Hello!
>
> Following this web page 
> <https://ubiq.co/database-blog/create-user-postgresql/;, I have tried 
> to create a new role/user, but to no avail.
>
> After typing the following command : /*createuser --interactive 
> --pwprompt*/ I get the following questions:
>
> Enter name of role to add: company_name
> Enter password for new role: xxxxxxx
> Enter it again: xxxxxxx
> Shall the new role be a superuser? (y/n) y
>
> Than this error is displayed :
> */createuser: error: connection to server on socket 
> "/var/run/postgresql/.s.PGSQL.5432" /**/
> /**/failed: FATAL:  role "my_debian_login_account_name" does not exist/*
>
> How/ever, this issue is not really relevant/, per se, since I am able 
> to create roles once I log in PostgreSQL-15. Nonetheless, if the 
> service exist, why not usu it. If the services exist and is not 
> working, could it be that there is a problem that will come apparent 
> later on, when unlike now, it would be during a critical moment. Thus 
> the question, what can I do to resolve this issue?
> Is there something I am missing?
>
>
> Thanks
>
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2023-08-04 01:13 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-08-04 00:17 role "my_account" does not exist Amn Ojee Uw <amnojeeuw@gmail.com>
2023-08-04 00:20 ` David G. Johnston <david.g.johnston@gmail.com>
2023-08-04 00:22 ` Adrian Klaver <adrian.klaver@aklaver.com>
2023-08-04 01:13 ` Amn Ojee Uw <amnojeeuw@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox