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

Build db base image symlink error #18672

Closed
YangJiao0817 opened this issue May 12, 2023 · 0 comments · Fixed by #18673
Closed

Build db base image symlink error #18672

YangJiao0817 opened this issue May 12, 2023 · 0 comments · Fixed by #18673

Comments

@YangJiao0817
Copy link
Member

Step 3/5 : RUN tdnf install -y shadow gzip postgresql13 postgresql findutils bc >> /dev/null     && groupadd -r postgres --gid=999     && useradd -m -r -g postgres --uid=999 postgres     && mkdir -p /docker-entrypoint-initdb.d     && mkdir -p /run/postgresql     && chown -R postgres:postgres /run/postgresql     && chmod 2777 /run/postgresql     && mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"     && sed -i "s|#listen_addresses = 'localhost'.*|listen_addresses = '*'|g" /usr/share/postgresql/postgresql.conf.sample     && sed -i "s|#unix_socket_directories = '/tmp'.*|unix_socket_directories = '/run/postgresql'|g" /usr/share/postgresql/postgresql.conf.sample     && tdnf clean all
 ---> Running in 7a99898b7039
using empty dict to provide pw_dict
failed to link /usr/bin/clusterdb -> /etc/alternatives/clusterdb: /usr/bin/clusterdb exists and it is not a symlink
failed to link /usr/bin/createdb -> /etc/alternatives/createdb: /usr/bin/createdb exists and it is not a symlink
failed to link /usr/bin/createuser -> /etc/alternatives/createuser: /usr/bin/createuser exists and it is not a symlink
failed to link /usr/bin/dropdb -> /etc/alternatives/dropdb: /usr/bin/dropdb exists and it is not a symlink
failed to link /usr/bin/dropuser -> /etc/alternatives/dropuser: /usr/bin/dropuser exists and it is not a symlink
failed to link /usr/bin/ecpg -> /etc/alternatives/ecpg: /usr/bin/ecpg exists and it is not a symlink
failed to link /usr/bin/pg_config -> /etc/alternatives/pg_config: /usr/bin/pg_config exists and it is not a symlink
failed to link /usr/bin/pg_dump -> /etc/alternatives/pg_dump: /usr/bin/pg_dump exists and it is not a symlink
failed to link /usr/bin/pg_dumpall -> /etc/alternatives/pg_dumpall: /usr/bin/pg_dumpall exists and it is not a symlink
failed to link /usr/bin/pg_isready -> /etc/alternatives/pg_isready: /usr/bin/pg_isready exists and it is not a symlink
failed to link /usr/bin/pg_restore -> /etc/alternatives/pg_restore: /usr/bin/pg_restore exists and it is not a symlink
failed to link /usr/bin/psql -> /etc/alternatives/psql: /usr/bin/psql exists and it is not a symlink
failed to link /usr/bin/reindexdb -> /etc/alternatives/reindexdb: /usr/bin/reindexdb exists and it is not a symlink
failed to link /usr/bin/vacuumdb -> /etc/alternatives/vacuumdb: /usr/bin/vacuumdb exists and it is not a symlink
failed to link /usr/bin/initdb -> /etc/alternatives/initdb: /usr/bin/initdb exists and it is not a symlink
failed to link /usr/bin/oid2name -> /etc/alternatives/oid2name: /usr/bin/oid2name exists and it is not a symlink
failed to link /usr/bin/pg_archivecleanup -> /etc/alternatives/pg_archivecleanup: /usr/bin/pg_archivecleanup exists and it is not a symlink
failed to link /usr/bin/pg_basebackup -> /etc/alternatives/pg_basebackup: /usr/bin/pg_basebackup exists and it is not a symlink
failed to link /usr/bin/pg_controldata -> /etc/alternatives/pg_controldata: /usr/bin/pg_controldata exists and it is not a symlink
failed to link /usr/bin/pg_ctl -> /etc/alternatives/pg_ctl: /usr/bin/pg_ctl exists and it is not a symlink
failed to link /usr/bin/pg_receivewal -> /etc/alternatives/pg_receivewal: /usr/bin/pg_receivewal exists and it is not a symlink
failed to link /usr/bin/pg_recvlogical -> /etc/alternatives/pg_recvlogical: /usr/bin/pg_recvlogical exists and it is not a symlink
failed to link /usr/bin/pg_resetwal -> /etc/alternatives/pg_resetwal: /usr/bin/pg_resetwal exists and it is not a symlink
failed to link /usr/bin/pg_rewind -> /etc/alternatives/pg_rewind: /usr/bin/pg_rewind exists and it is not a symlink
failed to link /usr/bin/pg_test_fsync -> /etc/alternatives/pg_test_fsync: /usr/bin/pg_test_fsync exists and it is not a symlink
failed to link /usr/bin/pg_test_timing -> /etc/alternatives/pg_test_timing: /usr/bin/pg_test_timing exists and it is not a symlink
failed to link /usr/bin/pg_upgrade -> /etc/alternatives/pg_upgrade: /usr/bin/pg_upgrade exists and it is not a symlink
failed to link /usr/bin/pg_waldump -> /etc/alternatives/pg_waldump: /usr/bin/pg_waldump exists and it is not a symlink
failed to link /usr/bin/pgbench -> /etc/alternatives/pgbench: /usr/bin/pgbench exists and it is not a symlink
failed to link /usr/bin/postgres -> /etc/alternatives/postgres: /usr/bin/postgres exists and it is not a symlink
failed to link /usr/bin/vacuumlo -> /etc/alternatives/vacuumlo: /usr/bin/vacuumlo exists and it is not a symlink
Cleaning repos: photon-extras photon-updates photon-release
Cleaning up everything
@YangJiao0817 YangJiao0817 self-assigned this May 12, 2023
YangJiao0817 pushed a commit to YangJiao0817/harbor that referenced this issue May 12, 2023
Fix goharbor#18672

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
YangJiao0817 added a commit that referenced this issue May 12, 2023
Fix #18672

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
WilfredAlmeida pushed a commit to WilfredAlmeida/harbor that referenced this issue Jul 8, 2023
Fix goharbor#18672

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
Signed-off-by: Wilfred Almeida <60785452+WilfredAlmeida@users.noreply.github.com>
WilfredAlmeida pushed a commit to WilfredAlmeida/harbor that referenced this issue Jul 8, 2023
Fix goharbor#18672

Signed-off-by: Yang Jiao <jiaoya@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant