On 17/09/12 03:50 -0700, Henrik Genssen wrote:
> Hi,
> 
> tryton does have problems running on ts / citrix because of temp path, that 
> might be changing - see here:
> http://stackoverflow.com/questions/6521277/why-does-temp-resolve-to-a-non-deterministic-path-of-the-form-temp-digit
> This is often used, if you are allowed to login twice...
> 
> Traceback (most recent call last):
>   File "C:\Programme\tryton\bin\tryton", line 60, in <module>
>     tryton.client.TrytonClient().run()
>   File "C:\Programme\tryton\tryton\client.py", line 65, in __init__
>     if IPCClient(hostname, port, database).write(url):
>   File "C:\Programme\tryton\tryton\ipc.py", line 160, in write
>     _, tmpfile = tempfile.mkstemp(dir=tmpdir, text=True)
>   File "C:\Python27\lib\tempfile.py", line 293, in mkstemp
>     return _mkstemp_inner(dir, prefix, suffix, flags)
>   File "C:\Python27\lib\tempfile.py", line 228, in _mkstemp_inner
>     fd = _os.open(file, flags, 0600)

What is the error?


> there is a file created in the config path named like your tryton 
> connection e.g. 10.100.11.16@8000@tryton
> it contains a path to a file in tmp.
> As the file path changes the app does not start anymore until the 
> file 10.100.11.16@8000@tryton is deleted
> from your .config folder
> (btw. why is it named .config the is not really windows like)

Because Tryton is UNIX first-class citizen.

> what is this file (10.100.11.16@8000@tryton) for? can it be deleted on 
> every start / end of tryton?

Not really, it is for IPC. To allow to make tryton open an URL to the
running client.

> what about the data in tmp? can it be deleted, too?

Yes once there is no more any client running.

It looks like the config dir in "APPDATA" is not the right place.
We need a directory that is the same for every client session but secure
(not tempdir).

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpYzNQICWxZE.pgp
Description: PGP signature

Reply via email to