You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@allura.apache.org by Eugène Adell <Eu...@d2-si.eu> on 2013/06/03 09:02:56 UTC
git is not initialized ?
Hello
After creating my first project in my new Allura install, I'm trying to initialize the GIT repo as suggested in the code page (http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/)
Unfortunately, this is not working and I get this error message from the shell :
# git push origin master
fatal: '/root/GitRepo/git/p/jtouch/code' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
In the tg.log, I notice something that could explain this problem but I am not able to solve it :
01:01:18,069 ERROR [forgegit.model.git_repo] Error with rev_parse(master^0) at http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/
Traceback (most recent call last):
File "/root/envs/allura/src/allura/ForgeGit/forgegit/model/git_repo.py", line 163, in commit
impl = self._git.rev_parse(str(rev) + '^0')
File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 116, in wrapper
return self.run_and_log(func, inst, *args, **kwargs)
File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 141, in run_and_log
return func(*args, **kwargs)
File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 151, in rev_parse
obj = name_to_object(repo, rev[:start])
File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 86, in name_to_object
raise BadObject(name)
BadObject: BadObject: 6d6173746572
Did I miss anything ?
Once more thanks in advance for your help
Eugene
RE:git is not initialized ?
Posted by Eugène Adell <Eu...@d2-si.eu>.
It's working fine with this setting, thanks a lot Dave !
________________________________________
De : Dave Brondsema [dave@brondsema.net]
Envoyé : mercredi 5 juin 2013 15:56
À : allura-users@incubator.apache.org
Objet : Re: git is not initialized ?
Yes, for real usage you don't want to store the repos in /tmp :) You'll also
need to change this setting in the .ini file:
scm.repos.root = /tmp
That setting is what is actually used to manage the repo. The scm.host.*
settings are used to display the checkout commands when browsing the repo.
On 6/5/13 3:07 AM, Eugène Adell wrote:
>
> I understand what's happening : I changed development.ini to store the GIT in another folder than /tmp/ :
>
> scm.host.ro.git = /root/GitRepo/git$path
> scm.host.rw.git = /root/GitRepo/git$path
>
>
> But the taskd still creates folders in /tmp after restarting it :
>
> 10:58:14,647 INFO [forgegit.model.git_repo] git init /tmp/git/p/jtouch/code.git
>
> The real question is then how can we force Allura to store GIT in another folder ? I am scared that /tmp would be erased after a reboot.
>
> Best Regards
> Eugene
>
>
>
> ________________________________________
> De : Dave Brondsema [dave@brondsema.net]
> Envoyé : mardi 4 juin 2013 20:24
> À : allura-users@incubator.apache.org
> Objet : Re: git is not initialized ?
>
> Is taskd running? It is the background worker that does things like initialize
> repositories when they are created. The README file has an example of how to
> run it.
>
> The BadObject error is what happens when trying to browse an uninitialized
> repository, so it is not the real problem. But any errors from taskd when it
> tries to initialize the repo would be relevant.
>
> -Dave
>
> On 6/3/13 3:02 AM, Eugène Adell wrote:
>> Hello
>>
>> After creating my first project in my new Allura install, I'm trying to initialize the GIT repo as suggested in the code page (http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/)
>>
>> Unfortunately, this is not working and I get this error message from the shell :
>>
>> # git push origin master
>> fatal: '/root/GitRepo/git/p/jtouch/code' does not appear to be a git repository
>> fatal: The remote end hung up unexpectedly
>>
>> In the tg.log, I notice something that could explain this problem but I am not able to solve it :
>>
>> 01:01:18,069 ERROR [forgegit.model.git_repo] Error with rev_parse(master^0) at http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/
>> Traceback (most recent call last):
>> File "/root/envs/allura/src/allura/ForgeGit/forgegit/model/git_repo.py", line 163, in commit
>> impl = self._git.rev_parse(str(rev) + '^0')
>> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 116, in wrapper
>> return self.run_and_log(func, inst, *args, **kwargs)
>> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 141, in run_and_log
>> return func(*args, **kwargs)
>> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 151, in rev_parse
>> obj = name_to_object(repo, rev[:start])
>> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 86, in name_to_object
>> raise BadObject(name)
>> BadObject: BadObject: 6d6173746572
>>
>> Did I miss anything ?
>>
>> Once more thanks in advance for your help
>> Eugene
>>
>
>
>
> --
> Dave Brondsema : dave@brondsema.net
> http://www.brondsema.net : personal
> http://www.splike.com : programming
> <><
>
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><
Re: git is not initialized ?
Posted by Dave Brondsema <da...@brondsema.net>.
Yes, for real usage you don't want to store the repos in /tmp :) You'll also
need to change this setting in the .ini file:
scm.repos.root = /tmp
That setting is what is actually used to manage the repo. The scm.host.*
settings are used to display the checkout commands when browsing the repo.
On 6/5/13 3:07 AM, Eugène Adell wrote:
>
> I understand what's happening : I changed development.ini to store the GIT in another folder than /tmp/ :
>
> scm.host.ro.git = /root/GitRepo/git$path
> scm.host.rw.git = /root/GitRepo/git$path
>
>
> But the taskd still creates folders in /tmp after restarting it :
>
> 10:58:14,647 INFO [forgegit.model.git_repo] git init /tmp/git/p/jtouch/code.git
>
> The real question is then how can we force Allura to store GIT in another folder ? I am scared that /tmp would be erased after a reboot.
>
> Best Regards
> Eugene
>
>
>
> ________________________________________
> De : Dave Brondsema [dave@brondsema.net]
> Envoyé : mardi 4 juin 2013 20:24
> À : allura-users@incubator.apache.org
> Objet : Re: git is not initialized ?
>
> Is taskd running? It is the background worker that does things like initialize
> repositories when they are created. The README file has an example of how to
> run it.
>
> The BadObject error is what happens when trying to browse an uninitialized
> repository, so it is not the real problem. But any errors from taskd when it
> tries to initialize the repo would be relevant.
>
> -Dave
>
> On 6/3/13 3:02 AM, Eugène Adell wrote:
>> Hello
>>
>> After creating my first project in my new Allura install, I'm trying to initialize the GIT repo as suggested in the code page (http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/)
>>
>> Unfortunately, this is not working and I get this error message from the shell :
>>
>> # git push origin master
>> fatal: '/root/GitRepo/git/p/jtouch/code' does not appear to be a git repository
>> fatal: The remote end hung up unexpectedly
>>
>> In the tg.log, I notice something that could explain this problem but I am not able to solve it :
>>
>> 01:01:18,069 ERROR [forgegit.model.git_repo] Error with rev_parse(master^0) at http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/
>> Traceback (most recent call last):
>> File "/root/envs/allura/src/allura/ForgeGit/forgegit/model/git_repo.py", line 163, in commit
>> impl = self._git.rev_parse(str(rev) + '^0')
>> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 116, in wrapper
>> return self.run_and_log(func, inst, *args, **kwargs)
>> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 141, in run_and_log
>> return func(*args, **kwargs)
>> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 151, in rev_parse
>> obj = name_to_object(repo, rev[:start])
>> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 86, in name_to_object
>> raise BadObject(name)
>> BadObject: BadObject: 6d6173746572
>>
>> Did I miss anything ?
>>
>> Once more thanks in advance for your help
>> Eugene
>>
>
>
>
> --
> Dave Brondsema : dave@brondsema.net
> http://www.brondsema.net : personal
> http://www.splike.com : programming
> <><
>
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><
RE:git is not initialized ?
Posted by Eugène Adell <Eu...@d2-si.eu>.
I understand what's happening : I changed development.ini to store the GIT in another folder than /tmp/ :
scm.host.ro.git = /root/GitRepo/git$path
scm.host.rw.git = /root/GitRepo/git$path
But the taskd still creates folders in /tmp after restarting it :
10:58:14,647 INFO [forgegit.model.git_repo] git init /tmp/git/p/jtouch/code.git
The real question is then how can we force Allura to store GIT in another folder ? I am scared that /tmp would be erased after a reboot.
Best Regards
Eugene
________________________________________
De : Dave Brondsema [dave@brondsema.net]
Envoyé : mardi 4 juin 2013 20:24
À : allura-users@incubator.apache.org
Objet : Re: git is not initialized ?
Is taskd running? It is the background worker that does things like initialize
repositories when they are created. The README file has an example of how to
run it.
The BadObject error is what happens when trying to browse an uninitialized
repository, so it is not the real problem. But any errors from taskd when it
tries to initialize the repo would be relevant.
-Dave
On 6/3/13 3:02 AM, Eugène Adell wrote:
> Hello
>
> After creating my first project in my new Allura install, I'm trying to initialize the GIT repo as suggested in the code page (http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/)
>
> Unfortunately, this is not working and I get this error message from the shell :
>
> # git push origin master
> fatal: '/root/GitRepo/git/p/jtouch/code' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly
>
> In the tg.log, I notice something that could explain this problem but I am not able to solve it :
>
> 01:01:18,069 ERROR [forgegit.model.git_repo] Error with rev_parse(master^0) at http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/
> Traceback (most recent call last):
> File "/root/envs/allura/src/allura/ForgeGit/forgegit/model/git_repo.py", line 163, in commit
> impl = self._git.rev_parse(str(rev) + '^0')
> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 116, in wrapper
> return self.run_and_log(func, inst, *args, **kwargs)
> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 141, in run_and_log
> return func(*args, **kwargs)
> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 151, in rev_parse
> obj = name_to_object(repo, rev[:start])
> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 86, in name_to_object
> raise BadObject(name)
> BadObject: BadObject: 6d6173746572
>
> Did I miss anything ?
>
> Once more thanks in advance for your help
> Eugene
>
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><
Re: git is not initialized ?
Posted by Dave Brondsema <da...@brondsema.net>.
Is taskd running? It is the background worker that does things like initialize
repositories when they are created. The README file has an example of how to
run it.
The BadObject error is what happens when trying to browse an uninitialized
repository, so it is not the real problem. But any errors from taskd when it
tries to initialize the repo would be relevant.
-Dave
On 6/3/13 3:02 AM, Eugène Adell wrote:
> Hello
>
> After creating my first project in my new Allura install, I'm trying to initialize the GIT repo as suggested in the code page (http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/)
>
> Unfortunately, this is not working and I get this error message from the shell :
>
> # git push origin master
> fatal: '/root/GitRepo/git/p/jtouch/code' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly
>
> In the tg.log, I notice something that could explain this problem but I am not able to solve it :
>
> 01:01:18,069 ERROR [forgegit.model.git_repo] Error with rev_parse(master^0) at http://www.jefe-automatons.com:8080/p/jtouch/code/ref/master/
> Traceback (most recent call last):
> File "/root/envs/allura/src/allura/ForgeGit/forgegit/model/git_repo.py", line 163, in commit
> impl = self._git.rev_parse(str(rev) + '^0')
> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 116, in wrapper
> return self.run_and_log(func, inst, *args, **kwargs)
> File "/root/envs/allura/local/lib/python2.7/site-packages/timermiddleware/__init__.py", line 141, in run_and_log
> return func(*args, **kwargs)
> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 151, in rev_parse
> obj = name_to_object(repo, rev[:start])
> File "/root/envs/allura/local/lib/python2.7/site-packages/git/repo/fun.py", line 86, in name_to_object
> raise BadObject(name)
> BadObject: BadObject: 6d6173746572
>
> Did I miss anything ?
>
> Once more thanks in advance for your help
> Eugene
>
--
Dave Brondsema : dave@brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
<><