Advertisement
Guest User

Untitled

a guest
Jan 13th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.96 KB | None | 0 0
  1. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - conn = _connect(dsn, connection_factory=connection_factory, async=async)
  2. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - psycopg2.OperationalError: could not connect to server: Connection timed out
  3. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - Is the server running on host "<IP_ADDRESS>" and accepting
  4. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - TCP/IP connections on port 5432?
  5.  
  6. # IPv4 local connections:
  7. host all all 127.0.0.1/32 md5
  8. host all all 0.0.0.0/0 md5
  9. host all all 172.19.0.0/16 md5
  10. host all all 172.17.0.0/16 md5
  11.  
  12. # Database configuration
  13. database:
  14. # The database engine name
  15. name: "psycopg2"
  16. # Arguments to pass to the engine
  17. args:
  18. # Path to the database
  19. user: "synapse_user"
  20. password: "<PASSWORD>"
  21. database: "synapsetest"
  22. host: "<IP_ADDRESS>"
  23. cp_min: 5
  24. cp_max: 10
  25.  
  26. $ sudo netstat -tulpn | grep 5432
  27. tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 17657/postgres
  28. tcp6 0 0 :::5432 :::* LISTEN 17657/postgres
  29.  
  30. version: '2'
  31.  
  32. services:
  33.  
  34. matrix:
  35. build:
  36. context: .
  37. image: "avhost/docker-matrix"
  38. hostname: matrix
  39. command: start
  40.  
  41. labels:
  42. - "traefik.backend=matrix"
  43. - "traefik.docker.network=proxy"
  44. - "traefik.frontend.rule=Host:matrix.myserver.com"
  45. - "traefik.enable=true"
  46. - "traefik.port=8449"
  47. restart: always
  48. volumes:
  49. - /opt/matrix-synapse-docker:/data
  50. networks:
  51. - proxy
  52. expose:
  53. - "8449"
  54. ports:
  55. - "8009:8009"
  56.  
  57. networks:
  58. proxy:
  59. external: true
  60.  
  61. tls_certificate_path: "/data/matrix.myserver.com.tls.crt"
  62. tls_private_key_path: "/data/matrix.myserver.com.tls.key"
  63. tls_dh_params_path: "/data/matrix.myserver.com.tls.dh"
  64.  
  65. no_tls: False
  66.  
  67. server_name: "matrix.myserver.com"
  68.  
  69. pid_file: /data/homeserver.pid
  70.  
  71. web_client: True
  72.  
  73. soft_file_limit: 0
  74.  
  75. listeners:
  76. # Main HTTPS listener
  77. # For when matrix traffic is sent directly to synapse.
  78. -
  79. # The port to listen for HTTPS requests on.
  80. port: 8449
  81.  
  82. # This is a 'http' listener, allows us to specify 'resources'.
  83. type: http
  84.  
  85. tls: true
  86.  
  87. x_forwarded: false
  88.  
  89. # List of HTTP resources to serve on this listener.
  90. resources:
  91. -
  92. # List of resources to host on this listener.
  93. names:
  94. - client # The client-server APIs, both v1 and v2
  95. - webclient # The bundled webclient.
  96.  
  97. compress: true
  98.  
  99. - names: [federation] # Federation APIs
  100. compress: false
  101.  
  102. # Unsecure HTTP listener,
  103. # For when matrix traffic passes through loadbalancer that unwraps TLS.
  104. - port: 8009
  105. tls: false
  106. bind_address: ''
  107. type: http
  108.  
  109. x_forwarded: false
  110.  
  111. resources:
  112. - names: [client, webclient]
  113. compress: true
  114. - names: [federation]
  115. compress: false
  116.  
  117. # Database configuration
  118. database:
  119. # The database engine name
  120. name: "psycopg2"
  121. # Arguments to pass to the engine
  122. args:
  123. # Path to the database
  124. user: "synapse_user"
  125. password: "<PASSWORD>"
  126. database: "synapsetest"
  127. host: "<IP_ADDRESS>"
  128. cp_min: 5
  129. cp_max: 10
  130.  
  131. event_cache_size: "10K"
  132.  
  133. verbose: 0
  134.  
  135. log_file: "/data/homeserver.log"
  136.  
  137. log_config: "/data/matrix.myserver.com.log.config"
  138.  
  139. rc_messages_per_second: 0.2
  140.  
  141. # Number of message a client can send before being throttled
  142. rc_message_burst_count: 10.0
  143.  
  144. # The federation window size in milliseconds
  145. federation_rc_window_size: 1000
  146.  
  147. # The number of federation requests from a single server in a window
  148. # before the server will delay processing the request.
  149. federation_rc_sleep_limit: 10
  150.  
  151. # The duration in milliseconds to delay processing events from
  152. # remote servers by if they go over the sleep limit.
  153. federation_rc_sleep_delay: 500
  154.  
  155. # The maximum number of concurrent federation requests allowed
  156. # from a single server
  157. federation_rc_reject_limit: 50
  158.  
  159. # The number of federation requests to concurrently process from a
  160. # single server
  161. federation_rc_concurrent: 3
  162.  
  163. media_store_path: "/data/media_store"
  164.  
  165. uploads_path: "/uploads"
  166.  
  167. # The largest allowed upload size in bytes
  168. max_upload_size: "10M"
  169.  
  170. # Maximum number of pixels that will be thumbnailed
  171. max_image_pixels: "32M"
  172.  
  173. dynamic_thumbnails: false
  174.  
  175. # List of thumbnail to precalculate when an image is uploaded.
  176. thumbnail_sizes:
  177. - width: 32
  178. height: 32
  179. method: crop
  180. - width: 96
  181. height: 96
  182. method: crop
  183. - width: 320
  184. height: 240
  185. method: scale
  186. - width: 640
  187. height: 480
  188. method: scale
  189. - width: 800
  190. height: 600
  191. method: scale
  192.  
  193. url_preview_enabled: False
  194.  
  195. # The largest allowed URL preview spidering size in bytes
  196. max_spider_size: "10M"
  197.  
  198. recaptcha_public_key: "YOUR_PUBLIC_KEY"
  199.  
  200. recaptcha_private_key: "YOUR_PRIVATE_KEY"
  201.  
  202. enable_registration_captcha: False
  203.  
  204. recaptcha_siteverify_api: "https://www.google.com/recaptcha/api/siteverify"
  205.  
  206. # Enable registration for new users.
  207. enable_registration: True
  208.  
  209. registration_shared_secret: "<SECRET>"
  210.  
  211. user_creation_max_duration: 1209600000
  212.  
  213. bcrypt_rounds: 12
  214.  
  215. allow_guest_access: False
  216.  
  217. trusted_third_party_id_servers:
  218. - matrix.org
  219. - vector.im
  220. - riot.im
  221.  
  222. report_stats: False
  223.  
  224. # A list of event types that will be included in the room_invite_state
  225. room_invite_state_types:
  226. - "m.room.join_rules"
  227. - "m.room.canonical_alias"
  228. - "m.room.avatar"
  229. - "m.room.name"
  230.  
  231.  
  232. # A list of application service config file to use
  233. app_service_config_files: []
  234.  
  235. expire_access_token: False
  236.  
  237. signing_key_path: "/data/matrix.myserver.com.signing.key"
  238.  
  239. old_signing_keys: {}
  240.  
  241. key_refresh_interval: "1d" # 1 Day.
  242.  
  243. # The trusted servers to download signing keys from.
  244. perspectives:
  245. servers:
  246. "matrix.org":
  247. verify_keys:
  248. "ed25519:auto":
  249. key: "KEY"
  250.  
  251. # Whether to allow non server admins to create groups on this server
  252. enable_group_creation: false
  253.  
  254. -=> start turn
  255. -=> start riot.im client
  256. groupadd: group 'matrix' already exists
  257. -=> start matrix
  258. useradd: user 'matrix' already exists
  259. 2018-01-13 13:02:06,480 CRIT Supervisor running as root (no user in config file)
  260. 2018-01-13 13:02:06,481 INFO Included extra file "/conf/supervisord-matrix.conf" during parsing
  261. 2018-01-13 13:02:06,481 INFO Included extra file "/conf/supervisord-turnserver.conf" during parsing
  262. 2018-01-13 13:02:06,482 INFO supervisord started with pid 1
  263. 2018-01-13 13:02:07,484 INFO spawned: 'matrix' with pid 13
  264. 2018-01-13 13:02:07,486 INFO spawned: 'turnserver' with pid 14
  265. 2018-01-13 13:02:08,487 INFO success: matrix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  266. 2018-01-13 13:02:08,488 INFO success: turnserver entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
  267. 2018-01-13 13:04:15,572 - twisted - 131 - ERROR - - Traceback (most recent call last):
  268. 2018-01-13 13:04:15,572 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
  269. 2018-01-13 13:04:15,573 - twisted - 131 - ERROR - - "__main__", fname, loader, pkg_name)
  270. 2018-01-13 13:04:15,573 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
  271. 2018-01-13 13:04:15,573 - twisted - 131 - ERROR - - exec code in run_globals
  272. 2018-01-13 13:04:15,573 - twisted - 131 - ERROR - - File "/usr/local/lib/python2.7/dist-packages/synapse/app/homeserver.py", line 484, in <module>
  273. 2018-01-13 13:04:15,574 - twisted - 131 - ERROR - - main()
  274. 2018-01-13 13:04:15,574 - twisted - 131 - ERROR - - File "/usr/local/lib/python2.7/dist-packages/synapse/app/homeserver.py", line 479, in main
  275. 2018-01-13 13:04:15,574 - twisted - 131 - ERROR - - hs = setup(sys.argv[1:])
  276. 2018-01-13 13:04:15,574 - twisted - 131 - ERROR - - File "/usr/local/lib/python2.7/dist-packages/synapse/app/homeserver.py", line 339, in setup
  277. 2018-01-13 13:04:15,575 - twisted - 131 - ERROR - - db_conn = hs.get_db_conn(run_new_connection=False)
  278. 2018-01-13 13:04:15,575 - twisted - 131 - ERROR - - File "/usr/local/lib/python2.7/dist-packages/synapse/app/homeserver.py", line 280, in get_db_conn
  279. 2018-01-13 13:04:15,575 - twisted - 131 - ERROR - - db_conn = self.database_engine.module.connect(**db_params)
  280. 2018-01-13 13:04:15,575 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
  281. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - conn = _connect(dsn, connection_factory=connection_factory, async=async)
  282. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - psycopg2.OperationalError: could not connect to server: Connection timed out
  283. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - Is the server running on host "<IP_ADDRESS>" and accepting
  284. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - - TCP/IP connections on port 5432?
  285. 2018-01-13 13:04:15,576 - twisted - 131 - ERROR - -
  286. 2018-01-13 13:04:15,665 INFO exited: matrix (exit status 1; not expected)
  287. 2018-01-13 13:04:16,667 INFO spawned: 'matrix' with pid 34
  288. 2018-01-13 13:04:17,668 INFO success: matrix entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement