Android Repo sync Fatal : frameworks/base git

1,212 views
Skip to first unread message

Ashish Krishnan

unread,
May 6, 2015, 5:09:48 AM5/6/15
to repo-d...@googlegroups.com

$ repo sync for

Build LMY47V android-5.1.1_r1 Lollipop

results into error:

1st Error

FATAL: UNEXPECTED EOF

and doing a repo sync again gives 

this

Fetching projects:  62% (302/486)  Fetching project platform/frameworks/base
fatal: Not a git repository: '/home/ashish/askdnx/.repo/projects/frameworks/base.git'

The repo sync goes on for sometime and then fails with errors.

I have tried doing 

rm -rf ~/.repo/projects/frameworks/baseand rm -rf frameworks/base


a.png

Magnus Bäck

unread,
May 6, 2015, 10:15:26 AM5/6/15
to Ashish Krishnan, repo-d...@googlegroups.com
On Wednesday, May 06, 2015 at 11:06 CEST,
Try deleting ~/.repo/projects/frameworks/base.git (note .git suffix).
I bet the command above silently didn't delete anything.

On an unrelated note you have a .repo directory in $HOME. Sooner or
later that's going to cause you problems. For reasons I've forgotten
Repo will find the top-most .repo directory in a hierarchy, so if you
ever attempt to initialize a Repo workspace in any subdirectory to
$HOME you're in for a surprise.

--
Magnus Bäck | Software Engineer, Development Tools
magnu...@sonymobile.com | Sony Mobile Communications

Ashish Krishnan

unread,
May 6, 2015, 10:24:21 AM5/6/15
to Ashish Krishnan, repo-d...@googlegroups.com
I have tried deleting the framework/base.git from the location. But it is of no help. 

You mentioned about a issue with my directory listing. Your Suggestion on where I should keep the .repo folder.

Can I move the current .repo to entire new location by moving it by file operations. 


ashish

Magnus Bäck

unread,
May 7, 2015, 2:34:55 AM5/7/15
to Ashish Krishnan, repo-d...@googlegroups.com
On Wednesday, May 06, 2015 at 16:23 CEST,
Ashish Krishnan <ashish...@gmail.com> wrote:

> I have tried deleting the framework/base.git from the location. But it
> is of no help.

I don't think it's anything wrong on the server side so you probably
have some leftover junk you need to clean up.

> You mentioned about a issue with my directory listing. Your Suggestion
> on where I should keep the .repo folder.

Personal source code files are often put under ~/src so perhaps
~/src/aosp would make sense in your case. Just don't make your
home directory a Repo workspace root.

> Can I move the current .repo to entire new location by moving it by
> file operations.

Yes, move the .repo directory and its parent directory.

Ashish Krishnan

unread,
May 7, 2015, 4:17:15 AM5/7/15
to Ashish Krishnan, repo-d...@googlegroups.com
I removed the framework/base.git and tried
 
repo sync

It crossed 62 % (previous error) and was stuck at 99% (Fetching project platform/frameworks/opt/net/ims). For this I used the switch
repo sync -f

using repo sync -s.
 I got this error
Syncing work tree: 56% (273/486) error: in `sync -f`: [Errno 2] No such file or directory: ~/askdnx/.repo/frameworks/base/.git/HEAD' error: manifest missing or unreadable -- please run init

Any fix to this? Can I sync the frameworks/base.git individually?.
normal repo sync is not working here. it skips frameworks/base and moves ahead. 

repo status
Gives this:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/ashish/askdnx/.repo/repo/subcmds/status.py", line 107, in _StatusH
    state = project.PrintWorkTreeStatus()
  File "/home/ashish/askdnx/.repo/repo/project.py", line 801, in PrintWorkTreeSt
    '--refresh')
  File "/home/ashish/askdnx/.repo/repo/project.py", line 2554, in runner
    p.stderr))
GitError: platform/frameworks/base update-index: fatal: Not a git repository (or
project frameworks/compile/libbcc/
  missing (run "repo sync")
project frameworks/compile/mclinker/
  missing (run "repo sync")

Another thing to note is, there is frameworks directory next to ".repo" and not inside .repo/platforms/frameworks/base.git 


Thanks in advance.! 

Magnus Bäck

unread,
May 8, 2015, 1:49:40 AM5/8/15
to Ashish Krishnan, repo-d...@googlegroups.com
On Thursday, May 07, 2015 at 10:16 CEST,
Ashish Krishnan <ashish...@gmail.com> wrote:

[...]

> I got this error
>
> Syncing work tree: 56% (273/486) error: in `sync -f`: [Errno 2] No
> such file or directory: ~/askdnx/.repo/frameworks/base/.git/HEAD'
> error: manifest missing or unreadable -- please run init
>
> Any fix to this? Can I sync the frameworks/base.git individually?.

Yes, with 'repo sync platform/frameworks/base'. But that won't fix
the missing manifest. I don't know how you ended up in that state.
You should have a .repo/manifest.xml symlink that points to
manifests/default.xml.

[...]

> Another thing to note is, there is frameworks directory next to ".repo"
> and not inside .repo/platforms/frameworks/base.git

Yes, that's expected. It's the working tree.

Ashish Krishnan

unread,
May 8, 2015, 4:03:33 AM5/8/15
to repo-d...@googlegroups.com, Ashish Krishnan
I am going to start fresh.

Ashish Krishnan

unread,
May 8, 2015, 4:04:13 AM5/8/15
to repo-d...@googlegroups.com, Ashish Krishnan
I am going to start fresh. Thanks for your help.

Reply all
Reply to author
Forward
0 new messages