Closed stemy2 closed 5 years ago
Hello,
You could check that your synapse server work if you go with your browser at the url : https://domain.tld/_matrix
.
If you have a message "No Such Resource" it work good.
The only message i have at this url is «502 bad gateway».
Hello,
OK, so could you try to type : "service matrix-synapse status" and if it this service ils not working "service matrix-synapse start".
Le 10 juillet 2018 12:56:34 GMT+02:00, stemy2 notifications@github.com a écrit :
The only message i have at this url is «502 bad gateway».
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/YunoHost-Apps/synapse_ynh/issues/61#issuecomment-403783058
-- Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.
This is what i get with a «status» command.
● matrix-synapse.service - Synapse Matrix homeserver Loaded: loaded (/etc/systemd/system/matrix-synapse.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-07-11 20:58:31 CEST; 2s ago Process: 17369 ExecStartPre=/opt/yunohost/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/mat Main PID: 17375 (python) Tasks: 1 (limit: 4915) CGroup: /system.slice/matrix-synapse.service └─17375 /opt/yunohost/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse
So according the message, the server is running, but Riot is still unable to connect to it and my browser still saying «error 502 bad gateway».
It look like that synapse don't run correctly. You can try get the by this command :
tail -n 100 /var/log/matrix-synapse/homeserver.log
You can also try to launch manually synapse by typing :
sudo -u matrix-synapse /opt/yunohost/matrix-synapse/bin/python -m synapse.app.homeserver --config-path=/etc/matrix-synapse
If synapse don't fail you can stop it by "Ctrl + p"
OK, there is the content of the log
2018-07-11 22:19:25,993 - twisted - 131 - ERROR - - main()
2018-07-11 22:19:25,996 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 534, in main
2018-07-11 22:19:26,000 - twisted - 131 - ERROR - - hs = setup(sys.argv[1:])
2018-07-11 22:19:26,004 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 345, in setup
2018-07-11 22:19:26,007 - twisted - 131 - ERROR - - db_conn = hs.get_db_conn(run_new_connection=False)
2018-07-11 22:19:26,010 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/server.py", line 346, in get_db_conn
2018-07-11 22:19:26,014 - twisted - 131 - ERROR - - db_conn = self.database_engine.module.connect(**db_params)
2018-07-11 22:19:26,017 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
2018-07-11 22:19:26,021 - twisted - 131 - ERROR - - conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2018-07-11 22:19:26,025 - twisted - 131 - ERROR - - psycopg2.OperationalError: FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL on
2018-07-11 22:19:26,028 - twisted - 131 - ERROR - - FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL off
2018-07-11 22:19:26,031 - twisted - 131 - ERROR - -
2018-07-11 22:19:49,075 - synapse.python_dependencies - 138 - INFO - None- Using 'saml2' version '4.5.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/saml2/__init__.pyc' to satisfy 'pysaml2>=3.0.0'
2018-07-11 22:19:49,078 - synapse.python_dependencies - 138 - INFO - None- Using 'six' version '1.11.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/six.pyc' to satisfy 'six'
2018-07-11 22:19:49,079 - synapse.python_dependencies - 138 - INFO - None- Using 'msgpack' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/msgpack/__init__.pyc' to satisfy 'msgpack-python>=0.3.0'
2018-07-11 22:19:49,080 - synapse.python_dependencies - 138 - INFO - None- Using 'daemonize' version '2.4.7' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/daemonize.pyc' to satisfy 'daemonize'
2018-07-11 22:19:49,081 - synapse.python_dependencies - 138 - INFO - None- Using 'canonicaljson' version '1.1.4' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/canonicaljson.pyc' to satisfy 'canonicaljson>=1.1.3'
2018-07-11 22:19:49,083 - synapse.python_dependencies - 138 - INFO - None- Using 'OpenSSL' version '18.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/OpenSSL/__init__.pyc' to satisfy 'pyopenssl>=0.15'
2018-07-11 22:19:49,084 - synapse.python_dependencies - 138 - INFO - None- Using 'pydenticon' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pydenticon/__init__.pyc' to satisfy 'pydenticon'
2018-07-11 22:19:49,085 - synapse.python_dependencies - 138 - INFO - None- Using 'pymacaroons' version '0.9.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pymacaroons/__init__.pyc' to satisfy 'pymacaroons-pynacl'
2018-07-11 22:19:49,086 - synapse.python_dependencies - 138 - INFO - None- Using 'service_identity' version '17.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/service_identity/__init__.pyc' to satisfy 'service_identity>=1.0.0'
2018-07-11 22:19:49,087 - synapse.python_dependencies - 138 - INFO - None- Using 'signedjson' version '1.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/signedjson/__init__.pyc' to satisfy 'signedjson>=1.0.0'
2018-07-11 22:19:49,089 - synapse.python_dependencies - 138 - INFO - None- Using 'yaml' version '3.12' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/yaml/__init__.pyc' to satisfy 'pyyaml'
2018-07-11 22:19:49,090 - synapse.python_dependencies - 138 - INFO - None- Using 'unpaddedbase64' version '1.1.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/unpaddedbase64.pyc' to satisfy 'unpaddedbase64>=1.1.0'
2018-07-11 22:19:49,091 - synapse.python_dependencies - 138 - INFO - None- Using 'nacl' version '1.2.1' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/nacl/__init__.pyc' to satisfy 'pynacl>=1.2.1'
2018-07-11 22:19:49,093 - synapse.python_dependencies - 138 - INFO - None- Using 'nacl.bindings' version '1.2.1' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/nacl/__init__.pyc' to satisfy 'pynacl>=1.2.1'
2018-07-11 22:19:49,094 - synapse.python_dependencies - 138 - INFO - None- Using 'pyasn1' version '0.4.3' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pyasn1/__init__.pyc' to satisfy 'pyasn1'
2018-07-11 22:19:49,095 - synapse.python_dependencies - 138 - INFO - None- Using 'phonenumbers' version '8.9.7' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/phonenumbers/__init__.pyc' to satisfy 'phonenumbers>=8.2.0'
2018-07-11 22:19:49,096 - synapse.python_dependencies - 138 - INFO - None- Using 'prometheus_client' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/prometheus_client/__init__.pyc' to satisfy 'prometheus_client'
2018-07-11 22:19:49,097 - synapse.python_dependencies - 138 - INFO - None- Using 'jsonschema' version '2.6.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/jsonschema/__init__.pyc' to satisfy 'jsonschema>=2.5.1'
2018-07-11 22:19:49,099 - synapse.python_dependencies - 138 - INFO - None- Using 'blist' version '1.3.6' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/blist/__init__.pyc' to satisfy 'blist'
2018-07-11 22:19:49,100 - synapse.python_dependencies - 138 - INFO - None- Using 'twisted' version '18.4.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/twisted/__init__.pyc' to satisfy 'Twisted>=16.0.0'
2018-07-11 22:19:49,101 - synapse.python_dependencies - 138 - INFO - None- Using 'bcrypt' version u'3.1.4' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/bcrypt/__init__.pyc' to satisfy 'bcrypt'
2018-07-11 22:19:49,102 - synapse.python_dependencies - 138 - INFO - None- Using 'frozendict' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/frozendict/__init__.pyc' to satisfy 'frozendict>=0.4'
2018-07-11 22:19:49,103 - synapse.python_dependencies - 138 - INFO - None- Using 'PIL' version '5.1.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/PIL/__init__.pyc' to satisfy 'pillow'
2018-07-11 22:19:49,235 - synapse.app.homeserver - 323 - INFO - None- Server hostname: stemy.me
2018-07-11 22:19:49,240 - synapse.app.homeserver - 324 - INFO - None- Server version: Synapse/0.31.1
2018-07-11 22:19:49,336 - synapse.app.homeserver - 342 - INFO - None- Preparing database: psycopg2...
2018-07-11 22:19:49,448 - twisted - 131 - ERROR - - Traceback (most recent call last):
2018-07-11 22:19:49,456 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2018-07-11 22:19:49,463 - twisted - 131 - ERROR - - "__main__", fname, loader, pkg_name)
2018-07-11 22:19:49,469 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2018-07-11 22:19:49,472 - twisted - 131 - ERROR - - exec code in run_globals
2018-07-11 22:19:49,476 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 539, in <module>
2018-07-11 22:19:49,481 - twisted - 131 - ERROR - - main()
2018-07-11 22:19:49,484 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 534, in main
2018-07-11 22:19:49,488 - twisted - 131 - ERROR - - hs = setup(sys.argv[1:])
2018-07-11 22:19:49,493 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 345, in setup
2018-07-11 22:19:49,496 - twisted - 131 - ERROR - - db_conn = hs.get_db_conn(run_new_connection=False)
2018-07-11 22:19:49,499 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/server.py", line 346, in get_db_conn
2018-07-11 22:19:49,503 - twisted - 131 - ERROR - - db_conn = self.database_engine.module.connect(**db_params)
2018-07-11 22:19:49,506 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
2018-07-11 22:19:49,510 - twisted - 131 - ERROR - - conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2018-07-11 22:19:49,513 - twisted - 131 - ERROR - - psycopg2.OperationalError: FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL on
2018-07-11 22:19:49,516 - twisted - 131 - ERROR - - FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL off
2018-07-11 22:19:49,519 - twisted - 131 - ERROR - -
2018-07-11 22:20:12,199 - synapse.python_dependencies - 138 - INFO - None- Using 'saml2' version '4.5.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/saml2/__init__.pyc' to satisfy 'pysaml2>=3.0.0'
2018-07-11 22:20:12,201 - synapse.python_dependencies - 138 - INFO - None- Using 'six' version '1.11.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/six.pyc' to satisfy 'six'
2018-07-11 22:20:12,202 - synapse.python_dependencies - 138 - INFO - None- Using 'msgpack' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/msgpack/__init__.pyc' to satisfy 'msgpack-python>=0.3.0'
2018-07-11 22:20:12,203 - synapse.python_dependencies - 138 - INFO - None- Using 'daemonize' version '2.4.7' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/daemonize.pyc' to satisfy 'daemonize'
2018-07-11 22:20:12,204 - synapse.python_dependencies - 138 - INFO - None- Using 'canonicaljson' version '1.1.4' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/canonicaljson.pyc' to satisfy 'canonicaljson>=1.1.3'
2018-07-11 22:20:12,206 - synapse.python_dependencies - 138 - INFO - None- Using 'OpenSSL' version '18.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/OpenSSL/__init__.pyc' to satisfy 'pyopenssl>=0.15'
2018-07-11 22:20:12,207 - synapse.python_dependencies - 138 - INFO - None- Using 'pydenticon' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pydenticon/__init__.pyc' to satisfy 'pydenticon'
2018-07-11 22:20:12,208 - synapse.python_dependencies - 138 - INFO - None- Using 'pymacaroons' version '0.9.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pymacaroons/__init__.pyc' to satisfy 'pymacaroons-pynacl'
2018-07-11 22:20:12,209 - synapse.python_dependencies - 138 - INFO - None- Using 'service_identity' version '17.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/service_identity/__init__.pyc' to satisfy 'service_identity>=1.0.0'
2018-07-11 22:20:12,210 - synapse.python_dependencies - 138 - INFO - None- Using 'signedjson' version '1.0.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/signedjson/__init__.pyc' to satisfy 'signedjson>=1.0.0'
2018-07-11 22:20:12,211 - synapse.python_dependencies - 138 - INFO - None- Using 'yaml' version '3.12' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/yaml/__init__.pyc' to satisfy 'pyyaml'
2018-07-11 22:20:12,213 - synapse.python_dependencies - 138 - INFO - None- Using 'unpaddedbase64' version '1.1.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/unpaddedbase64.pyc' to satisfy 'unpaddedbase64>=1.1.0'
2018-07-11 22:20:12,214 - synapse.python_dependencies - 138 - INFO - None- Using 'nacl' version '1.2.1' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/nacl/__init__.pyc' to satisfy 'pynacl>=1.2.1'
2018-07-11 22:20:12,216 - synapse.python_dependencies - 138 - INFO - None- Using 'nacl.bindings' version '1.2.1' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/nacl/__init__.pyc' to satisfy 'pynacl>=1.2.1'
2018-07-11 22:20:12,217 - synapse.python_dependencies - 138 - INFO - None- Using 'pyasn1' version '0.4.3' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/pyasn1/__init__.pyc' to satisfy 'pyasn1'
2018-07-11 22:20:12,218 - synapse.python_dependencies - 138 - INFO - None- Using 'phonenumbers' version '8.9.7' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/phonenumbers/__init__.pyc' to satisfy 'phonenumbers>=8.2.0'
2018-07-11 22:20:12,219 - synapse.python_dependencies - 138 - INFO - None- Using 'prometheus_client' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/prometheus_client/__init__.pyc' to satisfy 'prometheus_client'
2018-07-11 22:20:12,220 - synapse.python_dependencies - 138 - INFO - None- Using 'jsonschema' version '2.6.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/jsonschema/__init__.pyc' to satisfy 'jsonschema>=2.5.1'
2018-07-11 22:20:12,221 - synapse.python_dependencies - 138 - INFO - None- Using 'blist' version '1.3.6' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/blist/__init__.pyc' to satisfy 'blist'
2018-07-11 22:20:12,222 - synapse.python_dependencies - 138 - INFO - None- Using 'twisted' version '18.4.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/twisted/__init__.pyc' to satisfy 'Twisted>=16.0.0'
2018-07-11 22:20:12,223 - synapse.python_dependencies - 138 - INFO - None- Using 'bcrypt' version u'3.1.4' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/bcrypt/__init__.pyc' to satisfy 'bcrypt'
2018-07-11 22:20:12,225 - synapse.python_dependencies - 138 - INFO - None- Using 'frozendict' version None from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/frozendict/__init__.pyc' to satisfy 'frozendict>=0.4'
2018-07-11 22:20:12,227 - synapse.python_dependencies - 138 - INFO - None- Using 'PIL' version '5.1.0' from '/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/PIL/__init__.pyc' to satisfy 'pillow'
2018-07-11 22:20:12,353 - synapse.app.homeserver - 323 - INFO - None- Server hostname: stemy.me
2018-07-11 22:20:12,357 - synapse.app.homeserver - 324 - INFO - None- Server version: Synapse/0.31.1
2018-07-11 22:20:12,449 - synapse.app.homeserver - 342 - INFO - None- Preparing database: psycopg2...
2018-07-11 22:20:12,560 - twisted - 131 - ERROR - - Traceback (most recent call last):
2018-07-11 22:20:12,563 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
2018-07-11 22:20:12,567 - twisted - 131 - ERROR - - "__main__", fname, loader, pkg_name)
2018-07-11 22:20:12,570 - twisted - 131 - ERROR - - File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
2018-07-11 22:20:12,574 - twisted - 131 - ERROR - - exec code in run_globals
2018-07-11 22:20:12,578 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 539, in <module>
2018-07-11 22:20:12,582 - twisted - 131 - ERROR - - main()
2018-07-11 22:20:12,585 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 534, in main
2018-07-11 22:20:12,589 - twisted - 131 - ERROR - - hs = setup(sys.argv[1:])
2018-07-11 22:20:12,593 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 345, in setup
2018-07-11 22:20:12,596 - twisted - 131 - ERROR - - db_conn = hs.get_db_conn(run_new_connection=False)
2018-07-11 22:20:12,599 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/server.py", line 346, in get_db_conn
2018-07-11 22:20:12,603 - twisted - 131 - ERROR - - db_conn = self.database_engine.module.connect(**db_params)
2018-07-11 22:20:12,606 - twisted - 131 - ERROR - - File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/psycopg2/__init__.py", line 130, in connect
2018-07-11 22:20:12,609 - twisted - 131 - ERROR - - conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
2018-07-11 22:20:12,613 - twisted - 131 - ERROR - - psycopg2.OperationalError: FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL on
2018-07-11 22:20:12,616 - twisted - 131 - ERROR - - FATAL: no pg_hba.conf entry for host "::1", user "matrix_synapse", database "matrix_synapse", SSL off
2018-07-11 22:20:12,620 - twisted - 131 - ERROR - -
And the output of the second command
Found subdirectory in config directory: '/etc/matrix-synapse/conf.d'. IGNORING.
Found file in config directory that does not end in '.yaml': '/etc/matrix-synapse/coturn.conf'. IGNORING.
Found file in config directory that does not end in '.yaml': '/etc/matrix-synapse/homeserver.signing.key'. IGNORING.
Found file in config directory that does not end in '.yaml': '/etc/matrix-synapse/dh.pem'. IGNORING.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 539, in <module>
main()
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 534, in main
hs = setup(sys.argv[1:])
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/app/homeserver.py", line 305, in setup
config_options,
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/config/_base.py", line 330, in load_or_generate_config
generate_keys=generate_keys,
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/config/_base.py", line 374, in read_config_files
self.invoke_all("read_config", config)
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/config/_base.py", line 154, in invoke_all
results.append(getattr(cls, name)(self, *args, **kargs))
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/config/repository.py", line 141, in read_config
self.uploads_path = self.ensure_directory(config["uploads_path"])
File "/opt/yunohost/matrix-synapse/lib/python2.7/site-packages/synapse/config/_base.py", line 125, in ensure_directory
os.makedirs(dir_path)
File "/opt/yunohost/matrix-synapse/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/uploads'
Ok,
Could you give me the result of that :
egrep "^host" /etc/postgresql/9.*/main/pg_hba.conf
This command don't give me any result.
On which yunohost version are you (2.7 or 3.0) ?
3.0.0.1
So could you give me the result of cat /etc/postgresql/9.6/main/pg_hba.conf
?
cat: /etc/postgresql/9.6/main/pg_hba.conf: No such file or directory
Ok, but did you migrate from yunohost 2.7 ?
It look like that postgresql is not cleanly installed. What is the result of
dpkg -l | egrep "(synapse|postgresql)"
Yes, i did a migration from 2.7.
ii postgresql 9.6+181+deb9u1 all object-relational SQL database (supported version)
ii postgresql-9.4 9.4.18-0+deb8u1 armhf object-relational SQL database, version 9.4 server
ii postgresql-9.6 9.6.7-0+deb9u1 armhf object-relational SQL database, version 9.6 server
ii postgresql-client-9.4 9.4.18-0+deb8u1 armhf front-end programs for PostgreSQL 9.4
ii postgresql-client-9.6 9.6.7-0+deb9u1 armhf front-end programs for PostgreSQL 9.6
ii postgresql-client-common 181+deb9u1 all manager for multiple PostgreSQL client versions
ii postgresql-common 181+deb9u1 all PostgreSQL database-cluster manager
ii postgresql-contrib-9.6 9.6.7-0+deb9u1 armhf additional facilities for PostgreSQL
ii synapse-ynh-deps 0.31.1~ynh1 all Fake package for synapse (YunoHost app) dependencies
It look like that you have a problem about your postgresql configuration but I don't really understand why.
Did you have any problem while you did the migration. Did you do the postgresql migration (9.4 -> 9.6) ?
For some reason, i had to install recently the version 2.7 of yunohost, and synapse worked fine, the internal server error appeared after the migration to 3.x. And i have effectively seen some postgresql error during the migration, i don't remember precisely. You can find my log here. (warning: it is really big).
Made a full reinitialisation of my server (for other reasons), fixed the problem.
Hello,
I can't access to my synapse server, the riot app report a «Error 502». I'm on Yunohost 3.0 and all other apps works fine.