How to remove user from gitorious

1,330 views
Skip to first unread message

kolargol

unread,
Jan 18, 2010, 9:06:46 AM1/18/10
to Gitorious
Hello,

How to remove user from gitorious. I need to cleanup database and
cannot find option,

thanks,
kolargol

kolargol

unread,
Jan 21, 2010, 4:07:17 AM1/21/10
to Gitorious
i supose no-one know how to remove user from gitorious - or no-one
want to share this very precious piece of information?

Marius Mårnes Mathiesen

unread,
Jan 21, 2010, 4:22:08 AM1/21/10
to gito...@googlegroups.com
On Thu, Jan 21, 2010 at 10:07 AM, kolargol <zby...@toliman.pl> wrote:
i supose no-one know how to remove user from gitorious - or no-one
want to share this very precious piece of information?

Kolargol,
Sorry about that. To remove a user from Gitorious you should open the console:

  script/console <your RAILS_ENV>

Then find the user in question, eg. by username:

  user = User.find_by_login "username"

Then delete the user:

  user.destroy

Hope this helps,
- Marius

kolargol

unread,
Jan 21, 2010, 4:26:10 AM1/21/10
to Gitorious
thanks for the reply!

Is there some reference manual for console/dbconsole?

kolargol

On Jan 21, 10:22 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:

Marius Mårnes Mathiesen

unread,
Jan 21, 2010, 4:40:46 AM1/21/10
to gito...@googlegroups.com
On Thu, Jan 21, 2010 at 10:26 AM, kolargol <zby...@toliman.pl> wrote: 
Is there some reference manual for console/dbconsole?

Actually, they are both part of the framework, Rails. 

script/dbconsole is just a wrapper that reads the database name, username, password etc from the configuration file and launches a SQL console.

script/console establishes a standard interactive Ruby (irb) console with the application loaded. This means you can access all classes and objects available in the application and play with them directly. Us Rails people use it in situations where the web GUI doesn't expose the functionality needed to achieve something while still letting the application handle states and callbacks etc. For instance, deleting an object usually involve updating/deleting related objects from the database, which would not happen if you enter raw SQL queries. By using the console, the application behaves just like it would otherwise, so you don't wind up with bad data in the system.

Cheers,
- Marius
 

kolargol

unread,
Jan 21, 2010, 4:47:03 AM1/21/10
to Gitorious
thanks for the explanation.

Btw - o have done several gitorious installations (based on ruby
enterprise and debian1.8) and on all of them there is problem with
downloading tgz from projects (archives are generated well - i can see
them on syslevel)

the installations run on passanger (but i have try also via builtin
mongrel). Gitorious is from mainline.

probably i should sent it as separate request...

thanks!

On Jan 21, 10:40 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:

Marius Mårnes Mathiesen

unread,
Jan 21, 2010, 5:02:51 AM1/21/10
to gito...@googlegroups.com
On Thu, Jan 21, 2010 at 10:47 AM, kolargol <zby...@toliman.pl> wrote:
Btw - o have done several gitorious installations (based on ruby
enterprise and debian1.8) and on all of them there is problem with
downloading tgz from projects (archives are generated well - i can see
them on syslevel)

Did you install mod_xsendfile? Gitorious handles the archived by sending a special HTTP header (X-Sendfile) which should cause the frontend web server (Apache) to pick up the request and send the data directly .

Cheers,
- Marius

kolargol

unread,
Jan 21, 2010, 6:27:51 AM1/21/10
to Gitorious
no - i miss it somewhere in install instruction? can't find that part,
anyway i have compiled mod_xsendfile and it is now working. Thanks
very much!


On Jan 21, 11:02 am, Marius Mårnes Mathiesen
<marius.mathie...@gmail.com> wrote:

Everson Alves da Silva

unread,
Apr 12, 2012, 1:51:30 PM4/12/12
to gito...@googlegroups.com
after removing the user as specified, ( the user had no commits but was allowed into a project), I'm getting:

A ActionView::TemplateError occurred in project_memberships#index:

 undefined method `human_name' for NilClass:Class

 On line #3 of app/views/content_memberships/_content_membership.html.erb

How can I solve this?

Reply all
Reply to author
Forward
0 new messages