|
From: | Friedrich-Wolfgang Weinhappl |
Subject: | Re: [Health] Problems when starting trytond |
Date: | Mon, 19 Mar 2018 16:11:16 -0700 (PDT) |
DB and tryton server are now startingJ! I changed the entry in /var/lib/pgsql/data/pg_hba.conf from IPv6 also to trust and was able to do the following: $ createdb healthdemo --encoding=unicode --locale=C --template=template0 and then python3 ./trytond-admin --all --database=healthdemo The only topic at the moment is that the import of the exported demo data doesn’t work. $ psql healthdemo < healthdemo.sql brings a lot of errors, so i have no data in the DB. Maybe some ideas? Thanks Fritz è End for today J From: Friedrich-Wolfgang Weinhappl I think, my tryton server isn’t starting correct. In the documentation there is some info what startup should report: [Wed Jan 14 11:01:20 2015] INFO:server:using /home/gnuhealth/gnuhealth/tryton/server/config/log.conf as logging configuration file [Wed Jan 14 11:01:20 2015] INFO:trytond.server:using /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as configuration file [Wed Jan 14 11:01:20 2015] INFO:trytond.server:initialising distributed objects services [Wed Jan 14 11:01:20 2015] INFO:trytond.server:starting JSON-RPC protocol on *:8000 See the output of gnuhealth server: address@hidden ~]# systemctl status -l gnuhealth ● gnuhealth.service - GNU Health Server Loaded: loaded (/usr/lib/systemd/system/gnuhealth.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2018-03-19 21:59:13 CET; 7s ago Main PID: 6032 (start_gnuhealth) CGroup: /system.slice/gnuhealth.service ├─6032 /bin/bash /home/gnuhealth/start_gnuhealth.sh └─6051 python3 ./trytond --verbose --logconf /home/gnuhealth/gnuhealth/tryton/server/config/gnuhealth_log.conf Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_pediatrics_growth_charts_who:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_profile:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:purchase:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_insurance:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_stock:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_services_lab:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:health_icu:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:purchase_request:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:trytond.modules:stock_supply:registering classes Mar 19 21:59:18 OL7-Demo.local start_gnuhealth.sh[6032]: [Mon Mar 19 20:59:18 2018] INFO:werkzeug: * Running on http://localhost:8000/ (Press CTRL+C to quit) Database seems to run fine: address@hidden ~]# systemctl status postgresql.service ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2018-03-19 20:46:48 CET; 1h 54min ago Main PID: 1309 (postgres) CGroup: /system.slice/postgresql.service ├─1309 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432 ├─1335 postgres: logger process ├─1347 postgres: checkpointer process ├─1348 postgres: writer process ├─1349 postgres: wal writer process ├─1350 postgres: autovacuum launcher process └─1351 postgres: stats collector process Mar 19 07:01:53 OL7-Demo.local systemd[1]: Starting PostgreSQL database server... Mar 19 20:46:48 OL7-Demo.local systemd[1]: Started PostgreSQL database server. When starting the client there is no connection to the database / server. I tried to connect to port 8000: address@hidden ~]# curl -v http://localhost:8000 * About to connect() to localhost port 8000 (#0) * Trying ::1... * Connection refused * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8000 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.29.0 > Host: localhost:8000 > Accept: */* > * HTTP 1.0, assume close after body < HTTP/1.0 302 FOUND < Content-Type: text/html; charset=utf-8 < Content-Length: 229 < Location: http://localhost:8000/index.html < Server: Werkzeug/0.14.1 Python/3.4.5 < Date: Mon, 19 Mar 2018 22:16:06 GMT < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>Redirecting...</title> <h1>Redirecting...</h1> * Closing connection 0 Any ideas? Thanks Fritz | -----Original Message----- | From: Luis Falcon [mailto:address@hidden] | Sent: Montag, 19. März 2018 07:36 | To: Friedrich-Wolfgang Weinhappl | Cc: General GNU Health discussion and help | Subject: Re: [Health] Problems when starting trytond | | Hi Friedrich ! | | On Sun, 18 Mar 2018 12:04:09 -0700 (PDT) Friedrich-Wolfgang Weinhappl | <address@hidden> | wrote: | | > Chaps, | > | > I've installed as described here: | > https://urldefense.proofpoint.com/v2/url?u=https-3A__de.wikibooks.org_ | > wiki_GNU-5FHealth-5FDokumentation-5F-2528deutsch-2529_- | 5FInstallation& | > | d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=hwc3 | qbkoZkyj7 | > k6RHfJDaCttdoEVvkweDrlMNgBo6XXCCfm-u8xKf- | 2V8VVXgDlH&m=Y7EgqtuV1rhkaiaw | > | VITz46iZnYzFXkxXFv3iJqbkZco&s=qQYoKkKgHgC8m6jvgnd6Vjh8xiXKAmxWTu8 | dR5Wa | > s5Y&e= , | | Thank you for reporting ! The German installation guide needs to be updated | to GNU Health 3.2 . Please use the official, English guide at : | | https://urldefense.proofpoint.com/v2/url?u=https- | 3A__en.wikibooks.org_wiki_GNU- | 5FHealth&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_Jn | E&r=hwc3qbkoZkyj7k6RHfJDaCttdoEVvkweDrlMNgBo6XXCCfm-u8xKf- | 2V8VVXgDlH&m=Y7EgqtuV1rhkaiawVITz46iZnYzFXkxXFv3iJqbkZco&s=8ZCMZzP | oEfF40lTWBQSPMc0oO5obUDQGIJK5weUHCLM&e= | | and for the Installation section | | https://urldefense.proofpoint.com/v2/url?u=https- | 3A__en.wikibooks.org_wiki_GNU- | 5FHealth_Installation&d=DwICAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrM | UB65eapI_JnE&r=hwc3qbkoZkyj7k6RHfJDaCttdoEVvkweDrlMNgBo6XXCCfm- | u8xKf-2V8VVXgDlH&m=Y7EgqtuV1rhkaiawVITz46iZnYzFXkxXFv3iJqbkZco&s=- | SD81vNCOnu9tCoLxEn1p0ELCHuPWsnMpokpLx5JEoo&e= | | Let us know how if you have any issues. | | PS: German speaking team, could you please review and update the guide | accordingly ? | | Thanks to all ! | | All the best | Luis |
[Prev in Thread] | Current Thread | [Next in Thread] |