{"action":"closed","issue":{"url":"https://api.github.com/repos/sorintlab/stolon/issues/468","repository_url":"https://api.github.com/repos/sorintlab/stolon","labels_url":"https://api.github.com/repos/sorintlab/stolon/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/sorintlab/stolon/issues/468/comments","events_url":"https://api.github.com/repos/sorintlab/stolon/issues/468/events","html_url":"https://github.com/sorintlab/stolon/issues/468","id":312990992,"number":468,"title":"pg_rewind is failed when postgresql.auto.conf is symlink","user":{"login":"deepdivenow","id":27303815,"avatar_url":"https://avatars2.githubusercontent.com/u/27303815?v=4","gravatar_id":"","url":"https://api.github.com/users/deepdivenow","html_url":"https://github.com/deepdivenow","followers_url":"https://api.github.com/users/deepdivenow/followers","following_url":"https://api.github.com/users/deepdivenow/following{/other_user}","gists_url":"https://api.github.com/users/deepdivenow/gists{/gist_id}","starred_url":"https://api.github.com/users/deepdivenow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepdivenow/subscriptions","organizations_url":"https://api.github.com/users/deepdivenow/orgs","repos_url":"https://api.github.com/users/deepdivenow/repos","events_url":"https://api.github.com/users/deepdivenow/events{/privacy}","received_events_url":"https://api.github.com/users/deepdivenow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-10T16:06:40Z","updated_at":"2018-04-12T07:30:42Z","closed_at":"2018-04-12T07:30:42Z","author_association":"NONE","body":"On stolon cluster after init IT create symlink postgresql.auto.conf -> /dev/null.\r\nThis symlink file does not allow normal execution of pg_rewind:\r\n\r\n$ pg_rewind -D . --source-server='host=192.168.2.11 port=5432 user=postgres password=***** '\r\nservers diverged at WAL position 0/D000060 on timeline 5\r\nrewinding from last common checkpoint at 0/C000098 on timeline 5\r\n\r\n\"./postgresql.auto.conf\" is not a regular file\r\nFailure, exiting\r\n\r\n$ rm postgresql.auto.conf \r\n$ pg_rewind -D . --source-server='host=192.168.2.11 port=5432 user=postgres password=***** '\r\nservers diverged at WAL position 0/D000060 on timeline 5\r\nrewinding from last common checkpoint at 0/C000098 on timeline 5\r\nDone!\r\n\r\nCan you delete this symlink (if it exists and set to /dev/null) before run pg_rewind and create it after pg_rewind is has done.\r\n\r\n$ stolonctl version\r\nstolonctl version v0.10.0\r\n\r\n$ /usr/pgsql-9.5/bin/pg_rewind --version\r\npg_rewind (PostgreSQL) 9.5.12"}}
{"actor":{"display_login":"sgotti"}}