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

ERROR: role "user1ca2ol5m" does not exist #123

Open
nickschuetz opened this issue Apr 22, 2019 · 2 comments
Open

ERROR: role "user1ca2ol5m" does not exist #123

nickschuetz opened this issue Apr 22, 2019 · 2 comments

Comments

@nickschuetz
Copy link

nickschuetz commented Apr 22, 2019

On OCP v3.11.88

$ oc get pods
NAME                        READY     STATUS             RESTARTS   AGE
che-2-w5b7w                 1/1       Running            0          7m
cicd-demo-installer-qxbff   0/1       Completed          0          2m
gogs-1-678jk                1/1       Running            5          8m
gogs-postgresql-1-knlgv     1/1       Running            0          8m
jenkins-2-pxfx6             1/1       Running            0          8m
nexus-2-wtvtz               1/1       Running            0          7m
sonardb-1-deploy            1/1       Running            0          8m
sonardb-1-wt4ml             0/1       CrashLoopBackOff   6          8m
sonarqube-1-2d97x           0/1       CrashLoopBackOff   5          7m
sonarqube-1-deploy          1/1       Running            0          8m
$ oc logs sonardb-1-wt4ml
pg_ctl: another server might be running; trying to start server anyway
waiting for server to start....LOG:  redirecting log output to logging collector process
HINT:  Future log output will appear in directory "pg_log".
........... done
server started
=> sourcing /usr/share/container-scripts/postgresql/start/set_passwords.sh ...
ERROR:  role "user1ca2ol5m" does not exist
@rbo
Copy link

rbo commented May 2, 2019

This work-a-round solved the problem on my env.:

$ oc debug sonardb-2-n9dw8
Defaulting container name to postgresql.
Use 'oc describe pod/sonardb-2-n9dw8-debug -n cicd-rbohne' to see all of the containers in this pod.

Debugging with pod/sonardb-2-n9dw8-debug, original command: container-entrypoint run-postgresql
Waiting for pod to start ...
If you don't see a command prompt, try pressing enter.
sh-4.2$ rm -rf /var/lib/pgsql/data/userdata/^C
sh-4.2$ exit
exit

Removing debug pod ...
$ oc delete pod sonardb-2-n9dw8
pod "sonardb-2-n9dw8" deleted

@jairojunior
Copy link

jairojunior commented May 20, 2019

Also had this issue with 3.11.98, but was able to deploy with the workaround above.

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

3 participants