[opensuse-buildservice] osc on local obs fails at pkg creation
Hi ! I installed a local obs instance and tried to create a pkg using osc -c ../.oscrc_local meta pkg project package -e It failed with: Sending meta data... Cannot save meta data. Unknown error. HTTP Error 500: Internal Server Error Try again? (yY = Yes - nN = No): The logs are pasted here: http://pastebin.ca/961438 I can create tha package with the webfrontend (and osc up) but this is slow and annoying and can't be scripted. Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Solved ... sri for the noise. Resolution: use "user = Admin" with CAPITAL "A" Status: PEBCAC have phun ;) Best regards Jan-Simon P.S.: Funny ... wrong username -> mysql-error as reply, no "wrong auth!" Am Freitag 28 März 2008 23:37:29 schrieb Jan-Simon Möller:
Hi !
I installed a local obs instance and tried to create a pkg using
osc -c ../.oscrc_local meta pkg project package -e
It failed with: Sending meta data... Cannot save meta data. Unknown error. HTTP Error 500: Internal Server Error Try again? (yY = Yes - nN = No):
The logs are pasted here:
I can create tha package with the webfrontend (and osc up) but this is slow and annoying and can't be scripted.
Best regards Jan-Simon
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-03-29 11:11:25 +0100, Jan-Simon Möller wrote:
Solved ... sri for the noise.
Resolution: use "user = Admin" with CAPITAL "A" Status: PEBCAC
have phun ;)
Best regards Jan-Simon P.S.: Funny ... wrong username -> mysql-error as reply, no "wrong auth!"
No the auth went smooth because the query for the user isn't case sensitive ("SELECT * FROM `users` WHERE (login = 'admin') LIMIT 1" and "SELECT * FROM `users` WHERE (login = 'Admin') LIMIT 1" return the same results). Marcus
Am Freitag 28 März 2008 23:37:29 schrieb Jan-Simon Möller:
Hi !
I installed a local obs instance and tried to create a pkg using
osc -c ../.oscrc_local meta pkg project package -e
It failed with: Sending meta data... Cannot save meta data. Unknown error. HTTP Error 500: Internal Server Error Try again? (yY = Yes - nN = No):
The logs are pasted here:
I can create tha package with the webfrontend (and osc up) but this is slow and annoying and can't be scripted.
Best regards Jan-Simon
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Samstag 29 März 2008 13:56:27 schrieb Marcus Hüwe:
On 2008-03-29 11:11:25 +0100, Jan-Simon Möller wrote:
Solved ... sri for the noise.
Resolution: use "user = Admin" with CAPITAL "A" Status: PEBCAC
have phun ;)
Best regards Jan-Simon P.S.: Funny ... wrong username -> mysql-error as reply, no "wrong auth!"
No the auth went smooth because the query for the user isn't case sensitive ("SELECT * FROM `users` WHERE (login = 'admin') LIMIT 1" and "SELECT * FROM `users` WHERE (login = 'Admin') LIMIT 1" return the same results).
Marcus
Then try it yourself ! It doesn't work. Changing admin to Admin and all problems were gone ! best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-03-29 15:07:54 +0100, Jan-Simon Möller wrote:
Am Samstag 29 März 2008 13:56:27 schrieb Marcus Hüwe:
On 2008-03-29 11:11:25 +0100, Jan-Simon Möller wrote:
Solved ... sri for the noise.
Resolution: use "user = Admin" with CAPITAL "A" Status: PEBCAC
have phun ;)
Best regards Jan-Simon P.S.: Funny ... wrong username -> mysql-error as reply, no "wrong auth!"
No the auth went smooth because the query for the user isn't case sensitive ("SELECT * FROM `users` WHERE (login = 'admin') LIMIT 1" and "SELECT * FROM `users` WHERE (login = 'Admin') LIMIT 1" return the same results).
Marcus
Then try it yourself ! It doesn't work. Changing admin to Admin and all problems were gone !
No. I just wanted to point out that the error message is correct in this case because the authentication was fine. The problem occurs when it tries to "save" the package in the database because "admin" and "Admin" result in the same user object (because the query isn't case sensitive), so it'll try to add the same user 2 times.. and this finally leads to the duplicate key error. Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Samstag, 29. März 2008 15:55:46 schrieb Marcus Hüwe: [...]
No. I just wanted to point out that the error message is correct in this case because the authentication was fine. The problem occurs when it tries to "save" the package in the database because "admin" and "Admin" result in the same user object (because the query isn't case sensitive), so it'll try to add the same user 2 times.. and this finally leads to the duplicate key error.
So why not block access in the first place to avoid this error later in the process ? If }Tux{ did not have the right idea i would still bang my head on this issue ;) . Best regards Jan-Simon --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-03-29 16:12:00 +0100, Jan-Simon Möller wrote:
Am Samstag, 29. März 2008 15:55:46 schrieb Marcus Hüwe: [...]
No. I just wanted to point out that the error message is correct in this case because the authentication was fine. The problem occurs when it tries to "save" the package in the database because "admin" and "Admin" result in the same user object (because the query isn't case sensitive), so it'll try to add the same user 2 times.. and this finally leads to the duplicate key error.
So why not block access in the first place to avoid this error later in the process ? Hmm yes.. I don't know if it is intended to have this part case insensitive. Anyway I attached a small patch which makes the user lookup case sensitive...
If }Tux{ did not have the right idea i would still bang my head on this issue ;) .
hehe - yes this bug/feature was quite tricky to hunt down;) Marcus
participants (2)
-
Jan-Simon Möller
-
Marcus Hüwe