Re: [gitorious] Re: can create repo

2011-03-11 Thread jarrod . roberson
the repositories should be "bare" which means ONLY a .git directory and no  
working files.
I had a problem tasks hanging and the repos never being marked "created" in  
the database, it hasn't happened in a long time.

See this lists archives for those posts.

--
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: can create repo

2011-03-11 Thread bandroid x
thanks.  poller is running, i confirmed this by being able to create
the repos and they now show up in the message queue so i know that is
running.

all the permissions are correct, the excelent guide had me do that :)

maybe the host is a problem.  i am using git.myhost.com but i am not
really git.myhost.com yet.  it all works cause i put the entry in
hosts so i dont think that is the issue but then again, idk.

since /var/git/repositories/ now has some hashed directories in it, so
i know that is right.  when i check the last .git directory this is
what it contains:

-rw-rw-rw- 1 git git   66 2011-03-11 12:39 config
-rw-rw-rw- 1 git git   35 2011-03-11 12:40 description
-rw-rw-rw- 1 git git0 2011-03-11 12:40 git-daemon-export-ok
-rw-rw-rw- 1 git git   23 2011-03-11 12:39 HEAD
lrwxrwxrwx 1 git git   15 2011-03-11 12:40 hooks -> ../../../.hooks
drwxrwxrwx 2 git git 4096 2011-03-11 12:40 info
drwxrwxrwx 4 git git 4096 2011-03-11 12:39 objects
drwxrwxrwx 4 git git 4096 2011-03-11 12:39 refs


so it seems to have been setup but when i do a ls -la i get this:

total 32
drwxr-x--- 5 git git 4096 2011-03-11 12:40 .
drwxr-x--- 3 git git 4096 2011-03-11 12:39 ..
-rw-rw-rw- 1 git git   66 2011-03-11 12:39 config
-rw-rw-rw- 1 git git   35 2011-03-11 12:40 description
-rw-rw-rw- 1 git git0 2011-03-11 12:40 git-daemon-export-ok
-rw-rw-rw- 1 git git   23 2011-03-11 12:39 HEAD
lrwxrwxrwx 1 git git   15 2011-03-11 12:40 hooks -> ../../../.hooks
drwxrwxrwx 2 git git 4096 2011-03-11 12:40 info
drwxrwxrwx 4 git git 4096 2011-03-11 12:39 objects
drwxrwxrwx 4 git git 4096 2011-03-11 12:39 refs

as you can see no .git directory??  although maybe gitorious doesnt
use a .git directory? idk  maybe thats why it doesnt appear to be a
repo?

(notice the perimissions though, they look ok)

thanks again.




On Mar 11, 1:58 pm, jarrod.rober...@gmail.com wrote:
> All these things rely on the gitorious-poller daemon to be running.
>
> you should have gitorious-poller in /etc/init.d
> you should make sure it is started
>
> You also need to make sure that the messaging queue is running.
>
> Getting all the permissions set right is also a problem with Gitorious.
> All the /etc/init.d/ scripts need to be user:group git:git
> as well as the ENTIRE /var/www/gitorious directory structure chown -R  
> git:git
>
> also you have to put in the actual host name and port of the server in the  
> gitororius.yml, localhost doesn't cut it.
> I spent a few hours wasted, until I changed all the instances of localhost  
> over to the actual name of my machine.

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


Re: [gitorious] Re: can create repo

2011-03-11 Thread jarrod . roberson

All these things rely on the gitorious-poller daemon to be running.

you should have gitorious-poller in /etc/init.d
you should make sure it is started

You also need to make sure that the messaging queue is running.

Getting all the permissions set right is also a problem with Gitorious.
All the /etc/init.d/ scripts need to be user:group git:git
as well as the ENTIRE /var/www/gitorious directory structure chown -R  
git:git


also you have to put in the actual host name and port of the server in the  
gitororius.yml, localhost doesn't cut it.
I spent a few hours wasted, until I changed all the instances of localhost  
over to the actual name of my machine.


--
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: can create repo

2011-03-11 Thread bandroid x
i should also mention that it says my ssh keys are no ready?  they
have an x for ready.

but when i am testing push its asking for a password and then
authorizing (i checked hte logs) so i dont think that is the issue but
will be my next issue i think ;)

sorry

On Mar 11, 1:16 pm, bandroid x  wrote:
> ok a little good news.  i killed the poller and restarted and now i
> can create a repo!
>
> problem is, i cant push to it :(
>
> i get this error:
> fatal: 'foobar/main2.git' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly
>
> the hashed directory for this repo WAS created.
>
> i also tried to clone the blank repo but that of course didnt work
> cause its blank.
>
> tjhe only error i got once was this
>
> 2011-03-11 12:53:37 [26974] Not accepting "git-receive-pack" for "/
> foobar/main2.git"
>
> but i only got that error once, not every time i tried to push,  maybe
> that is from when i tried to clone?
>
> so close!
>
> On Mar 11, 12:34 pm, bandroid x  wrote:
>
> > Marcus, thanks very much for getting back to me so fast.  Ok I did
> > what you suggested and i was able to login the activemq's admin
> > interface and it listed all the gitorious queues including
> > repo_create.  It says number of pending messages 0, number of
> > consumers 1, messages enqueed 6, messages dequeued 6.  This seems
> > right to me.  No pending messages.
>
> > So i created another repo and again its sitting there saying "please
> > be patient while we create this repo" and it never finishes.  After I
> > did that i showed 8 enqued and 8 dequeed (i guess 2 per create?)  but
> > the message_queue.log is still only showing the initial stuff i
> > already posted.  no errors were thrown in production.log when i tried
> > to create another repo.  I also tried creating it in a new project but
> > that didnt help.
>
> > I have looked through as many logs as i can find and cant find any
> > details of why.  could the fact that sendmail is installed but not
> > functioning properly be a problem?  I did activate my account, etc so
> > i was under the impression no email would be needed.  I would need to
> > setup a smarthost if i need to use sendmail but i doubt this matters.
>
> > Also i should mention, I was able to add a ssh key in the web
> > interface no problem, no errors, and the key is stored.  So would that
> > mean activemq is def. working but maybe poller is not?
>
> > poller says no messages, even though i ran poller run (not poller
> > start) or whatever one is non detaching.  But no logs are shown since
> > it started.
>
> > So close, i dont know!  thanks again !
>
> > On Mar 11, 9:04 am, Marius Mårnes Mathiesen
>
> >  wrote:
> > > On Fri, Mar 11, 2011 at 2:34 PM, bandroid x  wrote:
> > > > ps aux | grep activemq shows this: (see the extra / before bin is that
> > > > a problem?) i am also using java se 1.6 on my system for building
> > > > android, not open-jdk is that a problem?
>
> > > When you create a new repository, a message is sent to the message queue; 
> > > I
> > > think Gitorious will throw an error if it's unable to deliver that message
> > > (timeout exceeded or equivalent on the web page).
>
> > > To verify that activemq is running, you could try the admin web interface 
> > > at
> > > http://:8161/admin
> > > If you get this page, you could click the "Queues" link to view how many
> > > messages have been sent to the various queues.
>
> > > > /usr//bin/java -Xmx512M -
> > > > Dorg.apache.activemq.UseDedicatedTaskRunner=true -
> > > > Djava.util.logging.config.file=logging.properties -
> > > > Dcom.sun.management.jmxremote -Dactivemq.classpath=/usr/local/apache-
> > > > activemq-5.4.2/conf; -Dactivemq.home=/usr/local/apache-activemq-5.4.2 -
> > > > Dactivemq.base=/usr/local/apache-activemq-5.4.2 -jar /usr/local/apache-
> > > > activemq-5.4.2/bin/run.jar start
>
> > > > but the message_processing.log looks ok:
>
> > > > # Logfile created on Thu Mar 10 10:44:24 -0500 2011=> Subscribing to /
> > > > queue/GitoriousMergeRequestVersionDeletion (processed by
> > > > MergeRequestVersionProcessor)
> > > > => Subscribing to /queue/GitoriousRepositoryArchiving (processed by
> > > > RepositoryArchivingProcessor)
> > > > => Subscribing to /queue/GitoriousRepositoryCreation (processed by
> > > > RepositoryCreationProcessor)
> > > > => Subscribing to /queue/GitoriousSshKeys (processed by
> > > > SshKeyProcessor)
> > > > => Subscribing to /queue/GitoriousEmailNotifications (processed by
> > > > MessageForwardingProcessor)
> > > > => Subscribing to /queue/GitoriousPostReceiveWebHook (processed by
> > > > WebHookProcessor)
> > > > => Subscribing to /queue/GitoriousRepositoryDeletion (processed by
> > > > RepositoryDeletionProcessor)
> > > > => Subscribing to /queue/GitoriousMergeRequestBackend (processed by
> > > > MergeRequestGitBackendProcessor)
> > > > => Subscribing to /queue/GitoriousMergeRequestCreation (processed by
> > > > MergeRequestProcessor)
> > > > => Subscribing to /queue/Gitoriou

[gitorious] Re: can create repo

2011-03-11 Thread bandroid x
ok a little good news.  i killed the poller and restarted and now i
can create a repo!

problem is, i cant push to it :(

i get this error:
fatal: 'foobar/main2.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

the hashed directory for this repo WAS created.

i also tried to clone the blank repo but that of course didnt work
cause its blank.

tjhe only error i got once was this

2011-03-11 12:53:37 [26974] Not accepting "git-receive-pack" for "/
foobar/main2.git"


but i only got that error once, not every time i tried to push,  maybe
that is from when i tried to clone?

so close!




On Mar 11, 12:34 pm, bandroid x  wrote:
> Marcus, thanks very much for getting back to me so fast.  Ok I did
> what you suggested and i was able to login the activemq's admin
> interface and it listed all the gitorious queues including
> repo_create.  It says number of pending messages 0, number of
> consumers 1, messages enqueed 6, messages dequeued 6.  This seems
> right to me.  No pending messages.
>
> So i created another repo and again its sitting there saying "please
> be patient while we create this repo" and it never finishes.  After I
> did that i showed 8 enqued and 8 dequeed (i guess 2 per create?)  but
> the message_queue.log is still only showing the initial stuff i
> already posted.  no errors were thrown in production.log when i tried
> to create another repo.  I also tried creating it in a new project but
> that didnt help.
>
> I have looked through as many logs as i can find and cant find any
> details of why.  could the fact that sendmail is installed but not
> functioning properly be a problem?  I did activate my account, etc so
> i was under the impression no email would be needed.  I would need to
> setup a smarthost if i need to use sendmail but i doubt this matters.
>
> Also i should mention, I was able to add a ssh key in the web
> interface no problem, no errors, and the key is stored.  So would that
> mean activemq is def. working but maybe poller is not?
>
> poller says no messages, even though i ran poller run (not poller
> start) or whatever one is non detaching.  But no logs are shown since
> it started.
>
> So close, i dont know!  thanks again !
>
> On Mar 11, 9:04 am, Marius Mårnes Mathiesen
>
>  wrote:
> > On Fri, Mar 11, 2011 at 2:34 PM, bandroid x  wrote:
> > > ps aux | grep activemq shows this: (see the extra / before bin is that
> > > a problem?) i am also using java se 1.6 on my system for building
> > > android, not open-jdk is that a problem?
>
> > When you create a new repository, a message is sent to the message queue; I
> > think Gitorious will throw an error if it's unable to deliver that message
> > (timeout exceeded or equivalent on the web page).
>
> > To verify that activemq is running, you could try the admin web interface at
> > http://:8161/admin
> > If you get this page, you could click the "Queues" link to view how many
> > messages have been sent to the various queues.
>
> > > /usr//bin/java -Xmx512M -
> > > Dorg.apache.activemq.UseDedicatedTaskRunner=true -
> > > Djava.util.logging.config.file=logging.properties -
> > > Dcom.sun.management.jmxremote -Dactivemq.classpath=/usr/local/apache-
> > > activemq-5.4.2/conf; -Dactivemq.home=/usr/local/apache-activemq-5.4.2 -
> > > Dactivemq.base=/usr/local/apache-activemq-5.4.2 -jar /usr/local/apache-
> > > activemq-5.4.2/bin/run.jar start
>
> > > but the message_processing.log looks ok:
>
> > > # Logfile created on Thu Mar 10 10:44:24 -0500 2011=> Subscribing to /
> > > queue/GitoriousMergeRequestVersionDeletion (processed by
> > > MergeRequestVersionProcessor)
> > > => Subscribing to /queue/GitoriousRepositoryArchiving (processed by
> > > RepositoryArchivingProcessor)
> > > => Subscribing to /queue/GitoriousRepositoryCreation (processed by
> > > RepositoryCreationProcessor)
> > > => Subscribing to /queue/GitoriousSshKeys (processed by
> > > SshKeyProcessor)
> > > => Subscribing to /queue/GitoriousEmailNotifications (processed by
> > > MessageForwardingProcessor)
> > > => Subscribing to /queue/GitoriousPostReceiveWebHook (processed by
> > > WebHookProcessor)
> > > => Subscribing to /queue/GitoriousRepositoryDeletion (processed by
> > > RepositoryDeletionProcessor)
> > > => Subscribing to /queue/GitoriousMergeRequestBackend (processed by
> > > MergeRequestGitBackendProcessor)
> > > => Subscribing to /queue/GitoriousMergeRequestCreation (processed by
> > > MergeRequestProcessor)
> > > => Subscribing to /queue/GitoriousPush (processed by PushProcessor)
>
> > > shouldnt it be showing something here when a repo is created?  I
> > > assume this is my problem but it appears to be ok.
>
> > At least a message should be delivered to ActiveMQ - there should be no
> > pending messages in the ActiveMQ admin interface. If there are, this means
> > your poller script hasn't picked it up.
>
> > > I tried to push to the repo for the hell of it and get this error in
> > > git-daemon.log
>
> > > 011-03-10 11:05

[gitorious] Re: Add a commiter using rails console

2011-03-11 Thread Renato Isidio
Hi Marius!

Thank you very much! Ill try!

Cheers

Renato Isidio
Rio de Janeiro - Brazil

On Mar 11, 6:00 am, Marius Mårnes Mathiesen
 wrote:
> On Thu, Mar 10, 2011 at 7:53 PM, Renato Isidio  wrote:
> > Its me again! it looks a simple question but I didnt find anywhere.
> > How can we add a committer to a repository using rails console?
>
> > I`ve got the repository, but I didnt find any method to do it. Is
> > there a way?
>
> What you want to do is to create a Committership object, this is what links
> a repository with a "committer" (either a User or a Group). A Committership
> needs these properties:
> - a repository, obviously
> - a creator (the user who made the object)
> - a committer - either a User or Group
> - a permissions property, which is a bit mask
>
> This could be achieved as such in the console:
>
> me = User.find_by_login("big_honcho")
> repo = Repository.find(42)
> mister_hagen = User.find_by_login("consigliere")
> committership = repo.committerships.build(:creator => me, :committer =>
> mister_hagen)
> committership.build_permissions :commit, :admin
> committership.save
>
> > PS: Is there some kind of API for those gitorious classes?
>
> There are quite a lot of test cases that are both intended to ensure things
> keep working when we make changes and - more importantly - to demonstrate
> the usage of Gitorious from a programmer's point of view.
>
> Happy hacking!
> - Marius

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: Add a commiter using rails console

2011-03-11 Thread Renato Isidio
Hi Marius!

Thank you very much! Ill try!

Cheers

Renato Isidio
Rio de Janeiro - Brazil

On Mar 11, 6:00 am, Marius Mårnes Mathiesen
 wrote:
> On Thu, Mar 10, 2011 at 7:53 PM, Renato Isidio  wrote:
> > Its me again! it looks a simple question but I didnt find anywhere.
> > How can we add a committer to a repository using rails console?
>
> > I`ve got the repository, but I didnt find any method to do it. Is
> > there a way?
>
> What you want to do is to create a Committership object, this is what links
> a repository with a "committer" (either a User or a Group). A Committership
> needs these properties:
> - a repository, obviously
> - a creator (the user who made the object)
> - a committer - either a User or Group
> - a permissions property, which is a bit mask
>
> This could be achieved as such in the console:
>
> me = User.find_by_login("big_honcho")
> repo = Repository.find(42)
> mister_hagen = User.find_by_login("consigliere")
> committership = repo.committerships.build(:creator => me, :committer =>
> mister_hagen)
> committership.build_permissions :commit, :admin
> committership.save
>
> > PS: Is there some kind of API for those gitorious classes?
>
> There are quite a lot of test cases that are both intended to ensure things
> keep working when we make changes and - more importantly - to demonstrate
> the usage of Gitorious from a programmer's point of view.
>
> Happy hacking!
> - Marius

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: can create repo

2011-03-11 Thread bandroid x
Marcus, thanks very much for getting back to me so fast.  Ok I did
what you suggested and i was able to login the activemq's admin
interface and it listed all the gitorious queues including
repo_create.  It says number of pending messages 0, number of
consumers 1, messages enqueed 6, messages dequeued 6.  This seems
right to me.  No pending messages.

So i created another repo and again its sitting there saying "please
be patient while we create this repo" and it never finishes.  After I
did that i showed 8 enqued and 8 dequeed (i guess 2 per create?)  but
the message_queue.log is still only showing the initial stuff i
already posted.  no errors were thrown in production.log when i tried
to create another repo.  I also tried creating it in a new project but
that didnt help.

I have looked through as many logs as i can find and cant find any
details of why.  could the fact that sendmail is installed but not
functioning properly be a problem?  I did activate my account, etc so
i was under the impression no email would be needed.  I would need to
setup a smarthost if i need to use sendmail but i doubt this matters.

Also i should mention, I was able to add a ssh key in the web
interface no problem, no errors, and the key is stored.  So would that
mean activemq is def. working but maybe poller is not?

poller says no messages, even though i ran poller run (not poller
start) or whatever one is non detaching.  But no logs are shown since
it started.

So close, i dont know!  thanks again !



On Mar 11, 9:04 am, Marius Mårnes Mathiesen
 wrote:
> On Fri, Mar 11, 2011 at 2:34 PM, bandroid x  wrote:
> > ps aux | grep activemq shows this: (see the extra / before bin is that
> > a problem?) i am also using java se 1.6 on my system for building
> > android, not open-jdk is that a problem?
>
> When you create a new repository, a message is sent to the message queue; I
> think Gitorious will throw an error if it's unable to deliver that message
> (timeout exceeded or equivalent on the web page).
>
> To verify that activemq is running, you could try the admin web interface at
> http://:8161/admin
> If you get this page, you could click the "Queues" link to view how many
> messages have been sent to the various queues.
>
>
>
> > /usr//bin/java -Xmx512M -
> > Dorg.apache.activemq.UseDedicatedTaskRunner=true -
> > Djava.util.logging.config.file=logging.properties -
> > Dcom.sun.management.jmxremote -Dactivemq.classpath=/usr/local/apache-
> > activemq-5.4.2/conf; -Dactivemq.home=/usr/local/apache-activemq-5.4.2 -
> > Dactivemq.base=/usr/local/apache-activemq-5.4.2 -jar /usr/local/apache-
> > activemq-5.4.2/bin/run.jar start
>
> > but the message_processing.log looks ok:
>
> > # Logfile created on Thu Mar 10 10:44:24 -0500 2011=> Subscribing to /
> > queue/GitoriousMergeRequestVersionDeletion (processed by
> > MergeRequestVersionProcessor)
> > => Subscribing to /queue/GitoriousRepositoryArchiving (processed by
> > RepositoryArchivingProcessor)
> > => Subscribing to /queue/GitoriousRepositoryCreation (processed by
> > RepositoryCreationProcessor)
> > => Subscribing to /queue/GitoriousSshKeys (processed by
> > SshKeyProcessor)
> > => Subscribing to /queue/GitoriousEmailNotifications (processed by
> > MessageForwardingProcessor)
> > => Subscribing to /queue/GitoriousPostReceiveWebHook (processed by
> > WebHookProcessor)
> > => Subscribing to /queue/GitoriousRepositoryDeletion (processed by
> > RepositoryDeletionProcessor)
> > => Subscribing to /queue/GitoriousMergeRequestBackend (processed by
> > MergeRequestGitBackendProcessor)
> > => Subscribing to /queue/GitoriousMergeRequestCreation (processed by
> > MergeRequestProcessor)
> > => Subscribing to /queue/GitoriousPush (processed by PushProcessor)
>
> > shouldnt it be showing something here when a repo is created?  I
> > assume this is my problem but it appears to be ok.
>
> At least a message should be delivered to ActiveMQ - there should be no
> pending messages in the ActiveMQ admin interface. If there are, this means
> your poller script hasn't picked it up.
>
> > I tried to push to the repo for the hell of it and get this error in
> > git-daemon.log
>
> > 011-03-10 11:05:06 [26974] Listening on 0.0.0.0:9418...
> > 2011-03-10 14:28:20 [26974] Connection from 127.0.0.1 for "/
> > test_project/mainline.git"
> > 2011-03-10 14:28:24 [26974] 127.0.0.1 wants "/var/git/repositories/
> > test_project/mainline.git" => "/var/git/repositories/c0c/9ff/
> > c5117461851f2f3eccadebc8cca5269a42.git"
> > 2011-03-10 14:28:24 [26974] Invalid path: /var/git/repositories/c0c/
> > 9ff/c5117461851f2f3eccadebc8cca5269a42.git
>
> The git-daemon.log file only logs messages for the git:// protocol, which is
> read-only. But the error message you're getting indicates the repository has
> not been created on disk.
>
> I'd recommend you try creating another repository while all services are
> running; you should get no error message in the web interface while doing
> so. After having done that, check mess

Re: [gitorious] Re: can create repo

2011-03-11 Thread Marius Mårnes Mathiesen
On Fri, Mar 11, 2011 at 2:34 PM, bandroid x  wrote:

> ps aux | grep activemq shows this: (see the extra / before bin is that
> a problem?) i am also using java se 1.6 on my system for building
> android, not open-jdk is that a problem?
>

When you create a new repository, a message is sent to the message queue; I
think Gitorious will throw an error if it's unable to deliver that message
(timeout exceeded or equivalent on the web page).

To verify that activemq is running, you could try the admin web interface at
http://:8161/admin
If you get this page, you could click the "Queues" link to view how many
messages have been sent to the various queues.



> /usr//bin/java -Xmx512M -
> Dorg.apache.activemq.UseDedicatedTaskRunner=true -
> Djava.util.logging.config.file=logging.properties -
> Dcom.sun.management.jmxremote -Dactivemq.classpath=/usr/local/apache-
> activemq-5.4.2/conf; -Dactivemq.home=/usr/local/apache-activemq-5.4.2 -
> Dactivemq.base=/usr/local/apache-activemq-5.4.2 -jar /usr/local/apache-
> activemq-5.4.2/bin/run.jar start
>
>
> but the message_processing.log looks ok:
>
>
> # Logfile created on Thu Mar 10 10:44:24 -0500 2011=> Subscribing to /
> queue/GitoriousMergeRequestVersionDeletion (processed by
> MergeRequestVersionProcessor)
> => Subscribing to /queue/GitoriousRepositoryArchiving (processed by
> RepositoryArchivingProcessor)
> => Subscribing to /queue/GitoriousRepositoryCreation (processed by
> RepositoryCreationProcessor)
> => Subscribing to /queue/GitoriousSshKeys (processed by
> SshKeyProcessor)
> => Subscribing to /queue/GitoriousEmailNotifications (processed by
> MessageForwardingProcessor)
> => Subscribing to /queue/GitoriousPostReceiveWebHook (processed by
> WebHookProcessor)
> => Subscribing to /queue/GitoriousRepositoryDeletion (processed by
> RepositoryDeletionProcessor)
> => Subscribing to /queue/GitoriousMergeRequestBackend (processed by
> MergeRequestGitBackendProcessor)
> => Subscribing to /queue/GitoriousMergeRequestCreation (processed by
> MergeRequestProcessor)
> => Subscribing to /queue/GitoriousPush (processed by PushProcessor)
>
>
> shouldnt it be showing something here when a repo is created?  I
> assume this is my problem but it appears to be ok.
>

At least a message should be delivered to ActiveMQ - there should be no
pending messages in the ActiveMQ admin interface. If there are, this means
your poller script hasn't picked it up.


> I tried to push to the repo for the hell of it and get this error in
> git-daemon.log
>
> 011-03-10 11:05:06 [26974] Listening on 0.0.0.0:9418...
> 2011-03-10 14:28:20 [26974] Connection from 127.0.0.1 for "/
> test_project/mainline.git"
> 2011-03-10 14:28:24 [26974] 127.0.0.1 wants "/var/git/repositories/
> test_project/mainline.git" => "/var/git/repositories/c0c/9ff/
> c5117461851f2f3eccadebc8cca5269a42.git"
> 2011-03-10 14:28:24 [26974] Invalid path: /var/git/repositories/c0c/
> 9ff/c5117461851f2f3eccadebc8cca5269a42.git
>

The git-daemon.log file only logs messages for the git:// protocol, which is
read-only. But the error message you're getting indicates the repository has
not been created on disk.

I'd recommend you try creating another repository while all services are
running; you should get no error message in the web interface while doing
so. After having done that, check message_processing.log and the ActiveMQ
admin interface to see if a new message has been delivered and consumed.

Cheers,
- Marius

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: can create repo

2011-03-11 Thread bandroid x
sorry the title should read CANT create repo.  sorry :)

also here is some info that i think you will need:

ps aux | grep activemq shows this: (see the extra / before bin is that
a problem?) i am also using java se 1.6 on my system for building
android, not open-jdk is that a problem?

/usr//bin/java -Xmx512M -
Dorg.apache.activemq.UseDedicatedTaskRunner=true -
Djava.util.logging.config.file=logging.properties -
Dcom.sun.management.jmxremote -Dactivemq.classpath=/usr/local/apache-
activemq-5.4.2/conf; -Dactivemq.home=/usr/local/apache-activemq-5.4.2 -
Dactivemq.base=/usr/local/apache-activemq-5.4.2 -jar /usr/local/apache-
activemq-5.4.2/bin/run.jar start


but the message_processing.log looks ok:


# Logfile created on Thu Mar 10 10:44:24 -0500 2011=> Subscribing to /
queue/GitoriousMergeRequestVersionDeletion (processed by
MergeRequestVersionProcessor)
=> Subscribing to /queue/GitoriousRepositoryArchiving (processed by
RepositoryArchivingProcessor)
=> Subscribing to /queue/GitoriousRepositoryCreation (processed by
RepositoryCreationProcessor)
=> Subscribing to /queue/GitoriousSshKeys (processed by
SshKeyProcessor)
=> Subscribing to /queue/GitoriousEmailNotifications (processed by
MessageForwardingProcessor)
=> Subscribing to /queue/GitoriousPostReceiveWebHook (processed by
WebHookProcessor)
=> Subscribing to /queue/GitoriousRepositoryDeletion (processed by
RepositoryDeletionProcessor)
=> Subscribing to /queue/GitoriousMergeRequestBackend (processed by
MergeRequestGitBackendProcessor)
=> Subscribing to /queue/GitoriousMergeRequestCreation (processed by
MergeRequestProcessor)
=> Subscribing to /queue/GitoriousPush (processed by PushProcessor)


shouldnt it be showing something here when a repo is created?  I
assume this is my problem but it appears to be ok.

I am using ruby EE latest version (march 2011 release) and did have
some trobuel, i ended up with rails3 so i had to remove it and install
rails 2 and then downgrade rubygems to 1.4.2 then everythin was
working except i cant use it because i cant create a repo.

I tried to push to the repo for the hell of it and get this error in
git-daemon.log

011-03-10 11:05:06 [26974] Listening on 0.0.0.0:9418...
2011-03-10 14:28:20 [26974] Connection from 127.0.0.1 for "/
test_project/mainline.git"
2011-03-10 14:28:24 [26974] 127.0.0.1 wants "/var/git/repositories/
test_project/mainline.git" => "/var/git/repositories/c0c/9ff/
c5117461851f2f3eccadebc8cca5269a42.git"
2011-03-10 14:28:24 [26974] Invalid path: /var/git/repositories/c0c/
9ff/c5117461851f2f3eccadebc8cca5269a42.git


/var/git/repositories exists and is correct permissions for user git i
am running from.

I also get this error when creating the repo but I doubt its related
it seems like its just a warning.


DEPRECATION WARNING: _delete is deprecated in nested attributes. Use
_destroy instead.. (called from _delete at /var/www/git.mysite.net/
gitorious/vendor/rails/activerecord/lib/active_record/
nested_attributes.rb:263)
DEPRECATION WARNING: _delete is deprecated in nested attributes. Use
_destroy instead.. (called from _delete at /var/www/git.mysite.net/
gitorious/vendor/rails/activerecord/lib/active_record/
nested_attributes.rb:263)

I also got this message the first time i loaded but i think if i
understand the error desc correct it was becuase in /etc/hosts i put
127.0.0.1 git.mysite.com git (i since removed the git shortcut at the
end and the message didnt come up the next time i loaded)

The specified gitorious_host is reserved in Gitorious
See http://gitorious.org/gitorious/pages/ErrorMessages for further
explanation


I put all this in a pastebin as well.  http://pastebin.com/HpGcffsY
I followed all the instructions here basically to the letter:

http://cjohansen.no/en/ruby/setting_up_gitorious_on_your_own_server

just had to work around the issue mentioned with rails and ruby gems.

Thanks alot.  I am looking forward to getting going!

On Mar 10, 2:57 pm, bandroid x  wrote:
> hi i got everything setup using the great guide but when i try to
> create a repo it just sits there saying if this takes too logn contact
> us.  nothing gets created in /var/git/repositories i noticed.  no
> errors in message log and production.log gave an error about using git
> for hostname but i used git.sitename.com as recommended.
>
> all the permissions look correct for user git which i am running as
> and all the scripts are rung as git.
>
> thanks

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


Re: [gitorious] Add a commiter using rails console

2011-03-11 Thread Marius Mårnes Mathiesen
On Thu, Mar 10, 2011 at 7:53 PM, Renato Isidio  wrote:

> Its me again! it looks a simple question but I didnt find anywhere.
> How can we add a committer to a repository using rails console?
>
> I`ve got the repository, but I didnt find any method to do it. Is
> there a way?
>

What you want to do is to create a Committership object, this is what links
a repository with a "committer" (either a User or a Group). A Committership
needs these properties:
- a repository, obviously
- a creator (the user who made the object)
- a committer - either a User or Group
- a permissions property, which is a bit mask

This could be achieved as such in the console:

me = User.find_by_login("big_honcho")
repo = Repository.find(42)
mister_hagen = User.find_by_login("consigliere")
committership = repo.committerships.build(:creator => me, :committer =>
mister_hagen)
committership.build_permissions :commit, :admin
committership.save


> PS: Is there some kind of API for those gitorious classes?
>

There are quite a lot of test cases that are both intended to ensure things
keep working when we make changes and - more importantly - to demonstrate
the usage of Gitorious from a programmer's point of view.

Happy hacking!
- Marius

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] can create repo

2011-03-11 Thread bandroid x
hi i got everything setup using the great guide but when i try to
create a repo it just sits there saying if this takes too logn contact
us.  nothing gets created in /var/git/repositories i noticed.  no
errors in message log and production.log gave an error about using git
for hostname but i used git.sitename.com as recommended.

all the permissions look correct for user git which i am running as
and all the scripts are rung as git.

thanks

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com