health
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Health] Health Digest, Vol 43, Issue 2


From: Antonio Palacín Lasheras
Subject: Re: [Health] Health Digest, Vol 43, Issue 2
Date: Thu, 5 Feb 2015 13:53:26 -0800

Thanks a lot for your help. It is working now, database can be created, create user and set the password. 

2015-02-04 13:31 GMT-08:00 <address@hidden>:
Send Health mailing list submissions to
        address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.gnu.org/mailman/listinfo/health
or, via email, send a message with subject or body 'help' to
        address@hidden

You can reach the person managing the list at
        address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Health digest..."


Today's Topics:

   1. GNU Health 2.8.0 offline demo available (Luis Falcon)
   2. GnuHealth cannot create database nor connect to server
      (Antonio Palac?n Lasheras)
   3. Re: GnuHealth cannot create database nor connect to server
      (Axel Braun)
   4. Re: GnuHealth cannot create database nor connect to server
      (Bruno M. Villasanti)
   5. Re: GnuHealth cannot create database nor connect to server
      (Bruno M. Villasanti)


----------------------------------------------------------------------

Message: 1
Date: Wed, 4 Feb 2015 19:51:12 +0000
From: Luis Falcon <address@hidden>
To: address@hidden
Subject: [Health] GNU Health 2.8.0 offline demo available
Message-ID: <address@hidden>
Content-Type: text/plain; charset="us-ascii"

Team

The demo server postgres dump for 2.8.0 is available now at

http://health.gnu.org/downloads/postgres_dumps/gnuhealth-2.8.0-demo.sql.gz

MD5: 320571c97db7291956b4a3951c4e3bdc  gnuhealth-2.8.0-demo.sql.gz

Best,
Luis


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gnu.org/archive/html/health/attachments/20150204/7055ed4f/attachment.pgp>

------------------------------

Message: 2
Date: Wed, 4 Feb 2015 12:32:28 -0700
From: Antonio Palac?n Lasheras <address@hidden>
To: address@hidden
Subject: [Health] GnuHealth cannot create database nor connect to
        server
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="utf-8"

Hello:

I hope somebody can help me. I am trying to install GnuHealth on my own
server. I have Ubuntu 14.04 64 bits, 2 GB RAM and 100 GB space.

After following official documents for installing tryton and gnuhealth it
seenms cannot connect to the server anyway and also cannot create any
database.

This is the configuration of the trytond.conf

[database]
uri = postgresql://localhost:5432
path = /home/gnuhealth/attach

[session]

[jsonrpc]
listen=*:80

tryond daemon is running , here are the details:

~/gnuhealth/tryton/server/trytond-3.4.1/bin $ ./trytond
[Wed Feb 04 19:28:33 2015] INFO:trytond.server:using
/home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as
configuration file
[Wed Feb 04 19:28:33 2015] INFO:trytond.server:initialising distributed
objects services
[Wed Feb 04 19:28:33 2015] INFO:trytond.server:starting JSON-RPC protocol
on 0.0.0.0:8000

but whenever I try to connect to the server via the tryton client I have
this message from server console:

[04/Feb/2015 19:30:23] code 400, message Bad HTTP/0.9 request type
('\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03\x88\xceH\xec\x18\xac\xbaq\xd0\xd7#\xc3$I=\x9fKy\xf2')
[Wed Feb 04 19:30:23 2015] INFO:database:connect to "template1"

it seems there are communication between server and client but for some
reason , connection cannot be made.

I hope anybody can give me some light:

thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnu.org/archive/html/health/attachments/20150204/6ac6d61d/attachment.html>

------------------------------

Message: 3
Date: Wed, 04 Feb 2015 21:54:37 +0100
From: Axel Braun <address@hidden>
To: General GNU Health discussion and help <address@hidden>
Subject: Re: [Health] GnuHealth cannot create database nor connect to
        server
Message-ID: <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Am Mittwoch, 4. Februar 2015, 12:32:28 schrieb Antonio Palac?n Lasheras:

> but whenever I try to connect to the server via the tryton client I have
> this message from server console:
>
> [04/Feb/2015 19:30:23] code 400, message Bad HTTP/0.9 request type
> ('\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03\x88\xceH\xec\x18\xac\xbaq\xd0
> \xd7#\xc3$I=\x9fKy\xf2') [Wed Feb 04 19:30:23 2015] INFO:database:connect to
> "template1"

Tryton Client and Server have the same major release (3.4.x)?



------------------------------

Message: 4
Date: Wed, 4 Feb 2015 18:18:57 -0300
From: "Bruno M. Villasanti" <address@hidden>
To: General GNU Health discussion and help <address@hidden>
Subject: Re: [Health] GnuHealth cannot create database nor connect to
        server
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="utf-8"

Hi Antonio,

2015-02-04 16:32 GMT-03:00 Antonio Palac?n Lasheras <address@hidden>:

> Hello:
>
> I hope somebody can help me. I am trying to install GnuHealth on my own
> server. I have Ubuntu 14.04 64 bits, 2 GB RAM and 100 GB space.
>
> After following official documents for installing tryton and gnuhealth it
> seenms cannot connect to the server anyway and also cannot create any
> database.
>
> This is the configuration of the trytond.conf
>
> [database]
> uri = postgresql://localhost:5432
>

Here you must add the user database you created `gnuhealth`, followed by
the password [1]:

    uri = postgresql://user:address@hidden:5432/

Where `user` sets `gnuhealth`, and replace `password` that you set using
the following procedure:

    $ sudo su - postgres
    $ psql -c "ALTER ROLE gnuhealth WITH ENCRYPTED PASSWORD 'YourPassword'
;"

As a result it should be as follows:?

    ?uri = postgresql://gnuhealth:address@hidden:5432/?



> path = /home/gnuhealth/attach
>
> [session]
>

You forgot run the script `serverpass.py` to set the password admin for
Tryton.

In this case do not need to edit the file.
But logged as user `gnuhealth` just run:

?    $ python $HOME/gnuhealth/tryton/server/util/serverpass.py

Type the password and it will be included in `trytond.conf` automatically.



> [jsonrpc]
> listen=*:80
>

Here I think you should change 80, the default port 8000.



>
> tryond daemon is running , here are the details:
>
> ~/gnuhealth/tryton/server/trytond-3.4.1/bin $ ./trytond
>

You must pass the location of the configuration file, which is stored in
the environment variable `TRYTOND_CONFIG`:

    $ ./trytond -c $TRYTOND_CONFIG?



> [Wed Feb 04 19:28:33 2015] INFO:trytond.server:using
> /home/gnuhealth/gnuhealth/tryton/server/config/trytond.conf as
> configuration file
> [Wed Feb 04 19:28:33 2015] INFO:trytond.server:initialising distributed
> objects services
> [Wed Feb 04 19:28:33 2015] INFO:trytond.server:starting JSON-RPC protocol
> on 0.0.0.0:8000
>
> but whenever I try to connect to the server via the tryton client I have
> this message from server console:
>
> [04/Feb/2015 19:30:23] code 400, message Bad HTTP/0.9 request type
> ('\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03\x88\xceH\xec\x18\xac\xbaq\xd0\xd7#\xc3$I=\x9fKy\xf2')
> [Wed Feb 04 19:30:23 2015] INFO:database:connect to "template1"
>
> it seems there are communication between server and client but for some
> reason , connection cannot be made.
>
> I hope anybody can give me some light:
>
> thanks in advance
>


?Regards.?

?--
[1]
http://trytond.readthedocs.org/en/3.4/topics/configuration.html#configuration-file-for-tryton
?


--
Bruno M. Villasanti
thymbr@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnu.org/archive/html/health/attachments/20150204/ecc4c006/attachment.html>

------------------------------

Message: 5
Date: Wed, 4 Feb 2015 18:31:08 -0300
From: "Bruno M. Villasanti" <address@hidden>
To: General GNU Health discussion and help <address@hidden>
Subject: Re: [Health] GnuHealth cannot create database nor connect to
        server
Message-ID:
        <address@hidden>
Content-Type: text/plain; charset="utf-8"

Hi again,

2015-02-04 18:18 GMT-03:00 Bruno M. Villasanti <address@hidden>:

> Hi Antonio,
>
> 2015-02-04 16:32 GMT-03:00 Antonio Palac?n Lasheras <address@hidden>:
>
>>
>> tryond daemon is running , here are the details:
>>
>> ~/gnuhealth/tryton/server/trytond-3.4.1/bin $ ./trytond
>>
>
> You must pass the location of the configuration file, which is stored in
> the environment variable `TRYTOND_CONFIG`:
>
>     $ ./trytond -c $TRYTOND_CONFIG?
>

I correct myself in this.

Having you followed the installation guide GNU Health, needless to pass the
`-c $TRYTOND_CONFIG` argument.

It is enough to run the command without arguments:

    $ ./trytond


--
Bruno M. Villasanti
thymbr@
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gnu.org/archive/html/health/attachments/20150204/0fd37231/attachment.html>

------------------------------

_______________________________________________
Health mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/health


End of Health Digest, Vol 43, Issue 2
*************************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]