chat.freenode.net #tryton log beginning Mon Sep 24 00:00:02 CEST 2012 | ||
2012-09-24 00:18 <shomon> Hi | ||
2012-09-24 00:19 <shomon> I'm getting FATAL: password authentication failed for user "tryton" | ||
2012-09-24 00:19 <shomon> when creating a db for first time | ||
2012-09-24 00:19 <shomon> anyone know how to open it? I'm in pg_hba.conf | ||
2012-09-24 00:24 <bechamel> shomon: try "createuser tryton" | ||
2012-09-24 00:24 <bechamel> I think you must launch the command with the postgres user | ||
2012-09-24 00:31 <shomon> there is already a user | ||
2012-09-24 00:32 <shomon> I made it.. it has createdb privs etc | ||
2012-09-24 00:32 <shomon> I can connect if I su to that user and do psql | ||
2012-09-24 00:32 <shomon> but I've not tried from another server.. | ||
2012-09-24 00:40 <bechamel> shomon: yes by default postrgesql trust local users | ||
2012-09-24 03:26 <shomon> when I give tryton the wrong user it gives a "res.user" error. where can I add a check for that error to show a nicer error message? | ||
2012-09-24 10:40 -!- cristatus(~amit@1.22.101.81) has left #tryton | ||
2012-09-24 11:33 <shomon> morning | ||
2012-09-24 11:33 <shomon> I get the error "res.user" no matter what user I try and log in with. How do I check through postgres permissions if that's the problem? | ||
2012-09-24 11:33 <shomon> I'll pastebin the whole thing | ||
2012-09-24 11:34 <cedk> shomon: did you create the database via tryton ? | ||
2012-09-24 11:34 <shomon> yes. | ||
2012-09-24 11:35 <shomon> I created it, and then when it asked to upgrade the 3 modules it had.. it got stuck | ||
2012-09-24 11:35 <shomon> so that might be it too cedk . | ||
2012-09-24 11:35 <shomon> Maybe I should trash it and build a new one. | ||
2012-09-24 11:35 <shomon> db I mean | ||
2012-09-24 11:47 <rmu> hi | ||
2012-09-24 11:47 <rmu> i'm just testing the active record patch | ||
2012-09-24 11:47 <rmu> patch applied cleanly | ||
2012-09-24 11:47 <rmu> created database | ||
2012-09-24 11:48 <rmu> but login chokes on modelsql.py(497)read() | ||
2012-09-24 11:48 <rmu> TypeError: object of type 'int' has no len() | ||
2012-09-24 11:51 <rmu> backtrace: http://pastebin.com/sN81mwST | ||
2012-09-24 11:54 <cedk> rmu: you must apply the patch also on tryton | ||
2012-09-24 11:54 <cedk> rmu: http://codereview.tryton.org/376001/ | ||
2012-09-24 11:56 <shomon> here is the error from before: http://pastebin.com/ZpKEzHNM | ||
2012-09-24 11:57 <shomon> I'm trying to make a clean postgres db to do it | ||
2012-09-24 11:57 <shomon> but for ages I couldn't connect at all until someone in #postgres said "alter role tryton with password 'somepass'" | ||
2012-09-24 11:59 <cedk> shomon: probably the database is not setup | ||
2012-09-24 12:00 <shomon> hmm. When I installed though, it let me create it via the tryton client from my laptop | ||
2012-09-24 12:00 <shomon> thanks | ||
2012-09-24 12:22 <rmu> cedk: ok thx | ||
2012-09-24 12:49 <shomon> what is the best way to ensure that tryton stays up (apart from monitoring the server) | ||
2012-09-24 12:50 <shomon> I mean if I add it as a service on the server - will it be fired up again if crashed? | ||
2012-09-24 12:50 <shomon> I thought of a crontab to check if it's running and run it if not | ||
2012-09-24 12:53 <bechamel> shomon: I know at least supervisord that does what you want (other suggestion http://news.ycombinator.com/item?id=1368855) | ||
2012-09-24 12:54 <bechamel> shomon: but then you have to monitor a new daemon :) | ||
2012-09-24 12:55 <shomon> that'll be one more than 0 :) | ||
2012-09-24 12:56 <shomon> thanks! | ||
2012-09-24 14:23 <shomon> what is the best way to stop the server? I usually kill it just with ctrl-c! | ||
2012-09-24 14:27 <bechamel> shomon: you can set the pidfile in trytond.conf, and then use: kill $(cat /path/to/pidfile) | ||
2012-09-24 14:27 <shomon> so trytond will then look for it's pid and die if not found? | ||
2012-09-24 14:31 <bechamel> shomon: no, it just means that when it start, the server puts it's pid in a file | ||
2012-09-24 14:31 <bechamel> shomon: like that it's easier to find it later (this is mainly useful when trytond runs in background or as a daemon) | ||
2012-09-24 14:33 <shomon> ah okay thanks :) | ||
2012-09-24 14:34 <shomon> I see.. so you refer to the pid cool | ||
2012-09-24 14:34 <shomon> now I've got a server and my client connects (yay!) but now I'm trying to add some modules so as to have something other than "administratioN" | ||
2012-09-24 14:35 <shomon> and it comes with res, webdav, admin modules. I've tried to upgrade these | ||
2012-09-24 14:36 <shomon> if I do it all together they seem to do something, but then the client re-draws it's windows and everything is like before | ||
2012-09-24 14:38 <bechamel> shomon: looks like you don't have other modules, or that the server does not find them | ||
2012-09-24 14:39 <shomon> hmm.. I downloaded the tar.gzs for all the modules with the same version number (2.4.2) as my server | ||
2012-09-24 14:40 <shomon> and then I went in to one and unzipped, tried to install | ||
2012-09-24 14:40 <shomon> it was the account module | ||
2012-09-24 14:42 <bechamel> shomon: your modules must be under /path/to/trytond/modules/ | ||
2012-09-24 14:42 <shomon> very strange :( I downloaded this package linked from here: http://downloads1.tryton.org/2.4/ | ||
2012-09-24 14:43 <shomon> trytond-2.4.2 | ||
2012-09-24 14:43 <shomon> so I just installed it. I thought the next step might be to install the modules. but you mean they should already be installed? | ||
2012-09-24 14:44 <shomon> so I downloaded it, sorted out a conf, ran python setup.py install, and now ran trytond -c myconf.conf | ||
2012-09-24 14:44 <shomon> I connected, made the db.. then python setup.py installed one of the modules I'd downloaded (trytond_account) | ||
2012-09-24 14:44 <shomon> but the other ones for my version are very few. Just account, analytic purchase and calendar seem to be ready for this version | ||
2012-09-24 14:45 <shomon> when I installed gnuhealth I used pip and it ended up with loads of modules already installed. | ||
2012-09-24 14:45 <shomon> maybe there is another main module package I'm missing? | ||
2012-09-24 14:47 <bechamel> shomon: the x in 2.4.x is only incremented when a bugfix is released for it | ||
2012-09-24 14:47 <shomon> so I can install any 2.4.1 and 2 modules? Hmm I wonder which one I have to install first | ||
2012-09-24 14:48 <bechamel> shomon: so if there are no 2.4.2 for a module, it is not a problem, just use 2.4.1 (or 2.4.0 if there is no 2.4.1) | ||
2012-09-24 14:48 <shomon> the process for adding modules is download, unzip, setup.py install, and then do I have to do something to tryton to say "modules are here"? | ||
2012-09-24 14:48 <shomon> I mean the process I went through | ||
2012-09-24 14:48 <bechamel> shomon: installing the package wrt to you OS doesn't mean it will be available in the server | ||
2012-09-24 14:49 <bechamel> it just mean that it will be available | ||
2012-09-24 14:49 <corro> shomon: when your installed modules don't appear in the modules list, try updating an already installed module. This will reload the module list. | ||
2012-09-24 14:49 <shomon> aah.. so I have to unzip it and copy the module files somehow under the trytond directory? | ||
2012-09-24 14:49 <shomon> corro, I have been updating my already installed modules about 3 times now.. no change | ||
2012-09-24 14:50 <bechamel> shomon: first chekc if you have something in the module directory, if there is nothing you must copy them there | ||
2012-09-24 14:50 <shomon> just the tar.gz's?? | ||
2012-09-24 14:52 <bechamel> shomon: no, the unziped folder | ||
2012-09-24 14:52 <shomon> ah I just unzipped one and tryton gave me an eror "invalid syntax" it didn't like the hyphen in trytond_account_invoice_history-2.4... | ||
2012-09-24 14:52 <shomon> but that shows it's looking :) | ||
2012-09-24 14:54 <shomon> it doesn't like any of the directory extensions with version numbers on it. | ||
2012-09-24 14:57 <bechamel> shomon: yes the name of the directory is important, you should find where the setup.py has installed them, and link to it from you module dir | ||
2012-09-24 14:58 <bechamel> ACTION doesn't understand why setup.py doesn't install the module at the right place .. | ||
2012-09-24 14:59 <shomon> aah I see.. | ||
2012-09-24 14:59 <shomon> yeah that was my naivete there | ||
2012-09-24 14:59 <shomon> thanks bechamel! | ||
2012-09-24 15:00 <shomon> I could write an "installing modules" guide after all this... | ||
2012-09-24 15:01 <cedk> shomon: but it is so simple: pip install xxx | ||
2012-09-24 15:03 <shomon> well I got in a mess before because some things I installed via pip and others via download/setup.py | ||
2012-09-24 15:21 <shomon> on a different note, does tryton run on ironpython? | ||
2012-09-24 15:22 <shomon> work with it even | ||
2012-09-24 17:46 <rmu> hmm. perhaps i'm just plain stupid or blind, but how do you search for specific subject in codereview.tryton.org? | ||
2012-09-24 17:50 <nicoe> rmu: you can't, that's a real pitty | ||
2012-09-24 17:51 <cedk> rmu: google ? | ||
2012-09-24 17:53 <rmu> hmm. ok. | ||
2012-09-24 17:53 <rmu> ACTION <- reliefed | ||
2012-09-24 17:54 <rmu> found some missing decorators in http://codereview.tryton.org/529002/, but generation of production doesn't work yet | ||
2012-09-24 17:58 <rmu> http://pastebin.com/u3dRRHyZ | ||
2012-09-24 17:59 <rmu> it complains that Pool().get('product.product-production.bom')(1) is not an instance of <class 'trytond.modules.production.bom.production.bom'> | ||
2012-09-24 18:28 <cedk> rmu: fixed | ||
2012-09-24 18:31 <cedk> rmu: but you are right there is something wrong with stock_supply_production | ||
2012-09-24 18:33 <rmu> i put another comment on codereview | ||
2012-09-24 18:33 <rmu> this seems to fix that for me, but i'm not sure if it is intended this way | ||
2012-09-24 18:34 <cedk> rmu: I don't see your comment | ||
2012-09-24 18:35 <rmu> http://codereview.tryton.org/529002/#msg3 | ||
2012-09-24 18:35 <rmu> ah ok | ||
2012-09-24 18:36 <rmu> i missed your message | ||
2012-09-24 18:36 <cedk> rmu: it works now for me | ||
2012-09-24 18:38 <cedk> uploaded a new full patch | ||
2012-09-24 18:42 <rmu> next thing i'm investigating is "open bom tree" complaining about missing UOM, but i will retest again with latest full patch | ||
2012-09-24 18:45 <cedk> rmu: it is also something I did not test | ||
2012-09-24 18:46 <cedk> rmu: I got it, I'm fixing | ||
2012-09-24 18:52 <cedk> rmu: uploaded a new full patch that fixes Bom Tree | ||
2012-09-24 18:52 <cedk> rmu: by the way, thanks for testing | ||
2012-09-24 18:55 <rmu> np | ||
2012-09-24 18:55 <rmu> next thing: line 374 in production/production.py | ||
2012-09-24 18:56 <rmu> list(set(r.uom.id for r in self.inputs)) should be list(set(r.uom for r in self.inputs)) | ||
2012-09-24 18:56 <rmu> *searching codereview* | ||
2012-09-24 19:21 <cedk> rmu: fixed | ||
2012-09-24 20:15 <rmu> bom tree works for me now | ||
2012-09-24 20:22 <shomon> how do you exit from Pdb debugger? when I launch tryton with a separate logfile.. that's the only problem :) | ||
2012-09-24 20:23 <rmu> shomon: i don't know about the separate logfile, but "c" continues execution if it stops in the debugger | ||
2012-09-24 20:23 <shomon> thanks | ||
2012-09-24 20:24 <rmu> you could also try "help" or "?" at the pdb prompt | ||
2012-09-24 20:24 <shomon> I think I exited.. because now it doesn't show the prompt and just stays stuck unless I ctrl-z out of it | ||
2012-09-24 20:25 <shomon> I guess that came out because I used -d! | ||
2012-09-24 20:37 <cedk> rmu: new patch uploaded | ||
2012-09-24 20:39 <rmu> thx :) |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!