*** kilo has joined #gnuenterprise *** derek has joined #gnuenterprise *** derek has quit IRC *** aries_mindworks has joined #gnuenterprise hi *** aries_mindworks has left #gnuenterprise *** aries_mindworks has joined #gnuenterprise *** johannesV has joined #gnuenterprise good morning good morning *** btami has joined #gnuenterprise good morning hi hi aries_mindworks regarding your allocation problems with mysql the username and password portions are left out from the mysqladmin-command which creates the db this is because that command is executed as system command and thus could be seen by any ps i've found it a more secure way to use a ".my.cnf" file in the homedirectory having a "[mysqladmin]" section this file is readable only to you and makes it easy to provide credentials for database allocation in a secure way johannesV: What's about the u/p if I set it in the connections.conf? first, they are GRANTed access to the newly created db johannesV: it's not insecure, and many user are not familiar with my.cnf and they don't care. they wan't to run the app and finally they are used to connect to the created db well, i don't have a problem with adding -u %s and -p %s to the mysqladmin command if you like to johannesV: I don't understand. the gsscvs are not using connections.conf? of course they do johannesV: if not, why should I set the --connection parameter? :) but the username/password provided by connections.conf (or command-line) will *not* be used for database-allocation, but only for getting access to a created db (as these cred. can't be used for mysqladmin-shell-command if not provided as arguments) johannesV: it would be nice if --createdb try to use the u/p from connections.conf. if the user has grants to create db, the gsscvs should create the db, else it should tell that he hasn't got the rights. but you shouldn't limit the user because there's another way to set the login parameters would you prefer adding --username= --password= to the mysqladmin command issued on db-creation (from gnue-schema) ? johannesV: or if you don't wan't to implement, just write a good error msg to the user, what the should understand johannesV: yes. if anyone wan't to use it, just let it to him *** reinhard has joined #gnuenterprise johannesV: or get the defaults from the connections.conf but that connections.conf thing doesn't change anything good morning the question is wether to issue u/p on creation (via args) or not *** ajmitch has quit IRC aries_mindworks, i've commited a Behaviour.py which passes the given credentials (either by command-line or connections.conf) to mysqladmin but please note: this implies that the given user is allowed to create new databases on your mysql-server in order to let it work reinhard: hi johannesV: if not allowed, it should write an exact error message, because as I am, the user don't know why *** ajmitch has joined #gnuenterprise hi aries_mindworks aries_mindworks: I think you misunderstood the problem johannesV was talking about no matter where you give the password in the background, gnue-schema (or gsscvs) will run a "mysqladmin" command to create the database and if you provide a password from *anywhere* (no matter from commandline or from gnue.conf) johannesV: as I know, if you're not allowed to create tables, you will not be able to use gsscvs... so in my view you should take care the connections.conf AND command line... reinhard: ok, I see the command that runs in the background will be "mysqladmin --password foo" and anybody doing "ps -ef" will see that password reinhard: but the application should give good error messages to the user and explanations if needed yes, I agree with that are there any good practice to install the fresh-new updates? ./setup-cvs.py ? that's not needed setup-cvs.py creates symlinks so after updating svn everything is already current except for the very rare cases when e.g. a new command is introduced in system-wide installation too? yes that sound great! ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) am I do something wrong? i've updated *** sjc has joined #gnuenterprise interesting it's creating the database aries_mindworks, maybe this is the grand-command sent to the fresh db but it gives me error msg have you got enough permissions for "root" to add new grants ? aries_mindworks, check if the tables are created and the data posted ... i bet they are johannesV: everything is ok, the tables are ready johannesV: but I don't understand why it said the ERROR 1045 johannesV: because it created the db johannesV: after this there's no error yeah, but after creating the db it performs some grants (exactly two grants) and they seem to fail (due to a lack of permission) johannesV: grants? to what? to whom? GRANT ALL PRIVILEGES ON %(db)s.* TO '%(user)s'@'%%' %(pass)s GRANT ALL PRIVILEGES ON %(db)s.* TO '%(user)s'@'localhost' " \ "%(pass)s" aries_mindworks, have you read gnue-common/doc/hints.mysql.txt ? johannesV: no, I'm starting to read johannesV: ok, but on my desktop, the root user has all the privileges are you sure ? johannesV: yes I'm sure i don't have all the priv-tables in mind which are used by mysql hm | % | root | 1b7134066be07a97 | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | Y | from the mysql.user hm, would have to fiddle with it a bit to find out ... Updating schema ... Updating data ... updating table 'gnue_property' ... Rows: 49 inserted, 0 updated, 0 unchanged. [...] btw (as jamest was asking yesterday) ... the new wx26 driver seems to work fine with wx 2.5.3+ johannesV: maybe it would help debugging if you saw exactly what command causes the error? reinhard: should I sent anyone the output? don't know if the output would help johannesV sent to him i can reproduce the error 1045, if i set GRANT_PRIV to 'N' in mysql.user for the username i try to connect with if that user has a grant_priv 'Y' everything works fine check: select host, user, grant_priv from user; johannesV: I don't see the bug, and you? is that line above the only one ? johannesV: only one? I've sent the all of the output, mysql.user, connection.conf :) ah, haven't got any mail yet johannesV: via irc johannesV: but I send you via email if you want johannesV: but you should send me your address :) I've sent the mail *** johannesV has quit IRC *** johannesV has joined #gnuenterprise *** johannesV has quit IRC *** johannesV has joined #gnuenterprise aries_mindworks, i think i can reproduce it now ... aries_mindworks, please svn-up and retry it should work now ... johannesV: ok, updating johannesV: now it's OK, thanks! (please don't forget those speaky error messages ;)) well, that message are sent from the mysql-db and i don't have any influence on them ... we'd have to parse the message for some error-codes but ... well, ... johannesV: ok, I understand johannesV: :) better way is to use a .my.cnf anyway :) johannesV: why don't you use mysql for python module? aries_mindworks: you can't create new databases with that module for normal data access, we use it anyway aries_mindworks, a database cannot be created by such a MySQLdb.Connection instance because creating a database must not be done *within* a transaction the same reason applies to granting permissions ... this is not possible within a running transaction so the only way to accomplish the task was using mysqladmin and mysql as well maybe the MySQLdb module provides a better mechanism in the future thanks for the answers np i'm off for a while now ... have a nice day ! *** btami has quit IRC *** sjc has quit IRC [root@ganja forms]# gfcvs grid-hu.gfd python2: Modules/gcmodule.c:275: visit_decref: Assertion `gc->gc.gc_refs != 0' failed. Aborted after I try to edit a customer, the gfcvs exists exits *** erkkie has joined #gnuenterprise *** yure has joined #gnuenterprise *** kilo has quit IRC *** kilo has joined #gnuenterprise *** jcater has quit IRC aries_mindworks: wow that's a python internal exception never even seen that reinhard: where I'm appearing, everything will be collapsed :) *** jcater has joined #gnuenterprise *** jcater has joined #gnuenterprise *** jamest has joined #gnuenterprise reinhard: am I do something wrong? aries_mindworks: I have not the slightest idea what causes this error can you reproduce it 100%? can you reproduce it with a different form? (maybe one that is pure ascii, just to play safe) yes, 100% i've tried with gnue-invoice grid-hu.gfd trying with the english form... Python 2.4.1 (#1, May 16 2005, 15:19:29) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 the command was gfcvs grid-hu.gfd the problem isn't appearing when I'm using the grid.gfd the second problem is, when I try to edit a payment method (all of them, include empty) I've getting the following error msg (detailed): Traceback (most recent call last): File "", line 11, in __main_____GF_1214494868___GF_1214494740_btnEditPaymMeth_ON_ACTION_btnEditPaymentMethodTrigger File "/home/aries/GNUe/gnue/.cvsdevelbase/gnue/common/logic/NamespaceCore.py", line 219, in __getattr__ raise AttributeError, '%s' % (name) AttributeError: fldPaymentmeth nonono the bug is appearing with grid.gfd too, but not in that case 1) gfcvs grid.gfd 2) New item 3) 3) Edit product (it's ok now) 4) Edit product again then crashed with the same error msg in the terminal: python2: Modules/gcmodule.c:275: visit_decref: Assertion `gc->gc.gc_refs != 0' failed. Aborted any hint? *** derek has joined #gnuenterprise kilo: are you here? I'm quite lost on this problem - it's a very long time since I looked at gnue-invoice *** derek has quit IRC and it seems to be a python internally problem like a bug in python itself or what If you get errors similar to: python: Modules/gcmodule.c:275: visit_decref: Assertion `gc->gc.gc_refs != 0' failed. Aborted It means your installment of Python has a corrupted garbage collector; it is often caused by incorrect or aggressive optimization during the compilation. Just recompiling a stock python environment from http://python.org/ usually solves this. ... is what google tells me reinhard: thanks... but... I like the pre-compiled products. The problem is not compiling, but maintaining, because all of the python-dependency should be handled manually... I'm using Fedora, lot of Fedora stuff using python... too many... *** derek has joined #gnuenterprise reinhard: i am around-ish only *** klasstek has joined #gnuenterprise aries_mindworks: so you didn't compile python yourself? reinhard: it's the Fedora Core 4's "native" python python-2.4.1-2 :( doesn't look good only chance is to try and see under what conditions the error happens maybe try other backends (sqlite should be pretty painless) reinhard: how can I help? other forms like the appserver sample form bbl reinhard: I've tried the Org.gfd too, but after some poped up window, it's crashed again :((( reinhard: it can be the wxpython's fault reinhard: or something else reinhard: sorry, with the wx engine in gnue.conf, the problem doesn't appearing reinhard: just with gtk2 reinhard: hmm I have to go bye *** aries_mindworks has left #gnuenterprise *** yure has quit IRC cu all *** reinhard has quit IRC *** yure has joined #gnuenterprise *** sjc has joined #gnuenterprise *** johannesV has quit IRC *** nenhum___ has joined #gnuenterprise *** nenhum___ has quit IRC *** andremachado has joined #gnuenterprise *** andremachado has quit IRC *** jamest has quit IRC *** yure has quit IRC *** kilo has quit IRC *** derek has quit IRC *** dimas has quit IRC *** klasstek has quit IRC *** dimas has joined #gnuenterprise *** jcater_ has joined #gnuenterprise *** ajmitch has quit IRC *** sjc has quit IRC *** derek has joined #gnuenterprise