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

heartbeat_interval template var is missing #2

Open
scorpp opened this issue Nov 26, 2015 · 0 comments · May be fixed by #3
Open

heartbeat_interval template var is missing #2

scorpp opened this issue Nov 26, 2015 · 0 comments · May be fixed by #3

Comments

@scorpp
Copy link

scorpp commented Nov 26, 2015

Master instance starts fine.
When running a slave using command form readme it fails after executing heartbeat command:

# docker run --rm --name postgresql-slave -e PG_DEPLOYMENT_TYPE=replicated -e PG_ROLE=slave -e PG_WAL_LEVEL=hot_standby -e PG_MAER_HOST=192.168.122.55 -p 5432:5432/tcp bettervoice/postgresql-container:9.3 
Creating new cluster 9.3/main ...
  config /etc/postgresql/9.3/main
  data   /var/lib/postgresql/9.3/main
  locale C
  port   5432
transaction log start point: 0/4000028 on timeline 1
transaction log end point: 0/40000F0
pg_basebackup: base backup completed
 * Starting PostgreSQL 9.3 database server
   ...done.
PING 192.168.122.55 (192.168.122.55) 56(84) bytes of data.
64 bytes from 192.168.122.55: icmp_seq=1 ttl=63 time=0.227 ms
64 bytes from 192.168.122.55: icmp_seq=2 ttl=63 time=0.206 ms
64 bytes from 192.168.122.55: icmp_seq=3 ttl=63 time=0.208 ms

--- 192.168.122.55 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 0.206/0.213/0.227/0.019 ms
Traceback (most recent call last):
  File "/usr/bin/heartbeat", line 19, in <module>
    monitor()
  File "/usr/bin/heartbeat", line 16, in monitor
    time.sleep()
TypeError: sleep() takes exactly 1 argument (0 given)
Traceback (most recent call last):
  File "/usr/bin/start-postgres", line 198, in <module>
    run('heartbeat')
  File "/usr/bin/start-postgres", line 130, in run
    check_call([app] + list(args))
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['heartbeat']' returned non-zero exit status 1

Issue caused by last commit where HEARTBEAT_INTERVAL env var was removed and corresponding heartbeat_interval template var as well.

@scorpp scorpp linked a pull request Nov 26, 2015 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant