You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/07/27 09:57:31 UTC

[GitHub] [trafficcontrol] thang86 opened a new issue, #6986: Can not running postinstall

thang86 opened a new issue, #6986:
URL: https://github.com/apache/trafficcontrol/issues/6986

   When I follow install traffic OPs
   [root@localhost ~]# /opt/traffic_ops/install/bin/postinstall
   postinstall requires the postgres user to have superuser access to postgresql. Aborting.
   
   but when i bypass check 
   root@localhost ~]# su - postgres psql -w -c 'show is_superuser'
   su: invalid option -- 'w'
   Try 'su --help' for more information.
   
   and i test 
   [postgres@localhost ~]$  psql -w -c 'show is_superuser'
   psql: error: fe_sendauth: no password supplied
   
   What problem 
   
   OS Rocky Linux
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 closed issue #6986: Can not running postinstall

Posted by GitBox <gi...@apache.org>.
ocket8888 closed issue #6986: Can not running postinstall
URL: https://github.com/apache/trafficcontrol/issues/6986


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] thang86 commented on issue #6986: Can not running postinstall

Posted by GitBox <gi...@apache.org>.
thang86 commented on issue #6986:
URL: https://github.com/apache/trafficcontrol/issues/6986#issuecomment-1197671988

   This command inculde postintall script 
   # make sure installed with proper permissions
   umask 022
   
   if [[ ! $(su - postgres psql -w -c 'show is_superuser' </dev/null 2>/dev/null) =~ 'on' ]]; then
           echo >&2 "postinstall requires the postgres user to have superuser access to postgresql. Aborting."
           exit 1
   fi
   
   and document ats for traffic ops have command : 
   su - postgres -c '/usr/pgsql-13/bin/initdb -A md5 -W' #-W forces the user to provide a superuser (postgres) password
   
   This conflict command and script included /opt/traffic_ops/install/bin/postinstall
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 commented on issue #6986: Can not running postinstall

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #6986:
URL: https://github.com/apache/trafficcontrol/issues/6986#issuecomment-1197690265

   For troubleshooting help, please [join our Slack channel(s) on the ASF Slack workspace](https://s.apache.org/tc-slack-request).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 commented on issue #6986: Can not running postinstall

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #6986:
URL: https://github.com/apache/trafficcontrol/issues/6986#issuecomment-1196895543

   You are using `su` improperly, consult [`man su`](https://man7.org/linux/man-pages/man1/su.1.html).
   
   Your PostgreSQL setup does not allow for the postgres user to authenticate without a password, consult [the PostgreSQL documentation](postgresql.org/docs/).
   
   For troubleshooting help, please [join our Slack channel(s) on the ASF Slack workspace](https://s.apache.org/tc-slack-request) instead of opening issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org