AOSP Repo stuck at 89%. - android-source

I am trying to download the Android repo and is stuck at 89%. I have tried all the options listed under "Known Issues" on source.android.com!
I Have tried
repo sync -f
completes the fetch but with errors.
Server is down?

Try using
repo sync -j1
If your internet connection has less bandwidth. This would help you for spawning less no jobs. Actually one at a time.

Related

Google Cloud Build mysteriously wrong git hashes

I've been using Google Cloud Build with GitHub triggers without issue for a while now; all of a sudden today, something changed. Somehow the hashes that are showing up in Cloud Build do not correspond to any commits in any of my repositories...
I've tried searching for documentation, or other folks who've encountered this problem, but found nothing. I uninstalled and reinstalled the GitHub app to no avail.
Has anyone encountered this, and if so, how do you fix it?
EDIT
I found a workaround, looks like builds can be manually run
Notice in the build history, the manual run has found a real commit, whereas the build triggered by a push to GitHub is coming up with bogus commits...
Check if the issue persists (especially after you trigger a manual run and find back normal existing SHA).
There was an incident affecting Cloud Tasks scheduler jobs which might have a side-effect on your build status. Considering the incident is resolved, you should not see such an issue again.
The OP quickshiftin confirms in the comments it was more a GitHub issue than a Google Cloud one:
[It] looks like that incident was in us-central1, my servers are in us-west1.
Also, I got a response from a GitHub ticket I filed, where they said it appears to relate to changes they made "very recently" and reverted last night.
As of this morning, the build is working again (nothing changed on my side). >
Presumably the issue was from either Google or GitHub.
I don't know if it's related to this issue, git tag generates an another ref id than the commit id when created with a comment (git tag -a YOUR_TAG -m YOUR_COMMENT), so the following command results may have been displayed.
git show-ref --abbrev=7 --hash refs/tags/YOUR_TAG
or
git rev-parse --short refs/tags/YOUR_TAG

Github on multiple computers

I just started using github more seriously, and have a question,
most of the time I am working from my laptop however sometimes I work from my mac,
if I download the the git desktop app on the mac and clone the repo will I still have full access and if i update something will it update on laptop
thanks
You'll still have full access, but you'll need to do a git pull after you commit on one machine in order to sync with the work you've done on the other. It won't be automatic.

Crafter CMS: How to stop hung publishing process?

In Crafter CMS, I attempted to publish changes to a document and it seems to be hung forever. Even if I shut it down and start it back up, it just gets stuck and I can't do anything with the document anymore.
I get the following error message in catalina.out every 10 seconds:
[INFO] 2017-09-22 12:51:56,847 [studioSchedulerFactoryBean_Worker-1] [job.DeployContentToEnvironmentStore] | Publishing is disabled for site mysite
I also notice in the mongod.log file, every few seconds it opens 51 connections and then a few seconds later closes them all and opens them back up again. It does this endlessly. Is that normal?
Why is publishing disabled? Is that a setting I need to change to enable it?
Is there some way to stop it so I can continue working?
Right now I am completely stuck and may resort to blowing away the whole project and starting from scratch, but this is certainly not an acceptable once I get a few more documents created, so I hope there is an alternative.
Any ideas or help you can give?
Assuming you're on 3.0.1 or 3.0.0, there is a publishing bug that's fixed in 3.0.2 development branch (not released yet, but you can build from source): https://github.com/craftercms/craftercms
If you don't want to upgrade to a development branch (understandable), a quick temporary fix is:
cd {crafterpath}/data/repos/sites/{yoursiteid}/published
git reset --hard
git pull -s recursive -Xtheirs origin master
If you have delivery nodes that are wired to this site, then you can blow away the git folder on the delivery and it'll rebuild itself (if you're seeing issues with deployment to delivery nodes). If this is live, take node out of the load-balancer first etc.
Expect the issue to come up again and for you to need to git reset/pull again until you upgrade.

IOT Kura Installation unable to fetch from git hub repo and Repo Not Found

Currently I'm facing an issue while installing Kura using Eclipse Installer.
Attached the screenshot and log for further reference.
I hope the issue is unable to pull from git repo.
Could somebody help me out and let me know in case of any further details required.
UPDATED as on 03-09-2017
Now the issue is different attached the screenshot for your reference and when I click back the git repo is not found .
I trying to setup more than a month but still couldn't it what is the other way to explore Kura.
From this eclipse bug, this is more likely related to a network issue.
It seems the session has been dropped in making a channel connection.
|And most important: How can we avoid this?
There must be many reasons for unexpected session drops caused by
external factors, so I suggest to re-try making sessions or channels
at such a case.
If that persists, try and use https url:
git config --global url."https://".insteadOf git#
The error message seen looks like JGit issue 455005:
java.io.IOException: Could not delete file C:\path\to\repo\.git\objects\pack\pack-5cb....pack
That's a common problem on Windows systems. As soon as you open a repository and do operations which access the packfiles (nearly all git operations do that: staging view, history ...) JGit caches data from the packfiles and keeps handles to packfiles open. But as long as handles are open you cannot delete the file under windows.
On Unix systems you don't have this problem because you can unlink files on which you have open file handles. The root cause for your problem is that we delete the repo only halfways. Aftwards we have a corrupted nearly empty gitdir and that reflog doesn't work on that is only the smallest of all problems.
check if the issue persists after a reboot (to make sure there is no other process preempts the file).
If not, try deleting fully (with Eclipse closed), and try again to clone it.
See also bug 336800:
You are creating a new Git object that has a repository associated with it.
This repository is automatically opened and thus has to be closed so that file resources are released.

How to undo the sync to get the files in local repo back?

I'm very new to github and I started using it a few weeks ago for my uni group project.
The problem that I'm having is:
There is a remote repo on github where everyone in the group is using.
I do have a local repo on my laptop, where I've worked my part of the project.
I recently committed and synced the updates that I made to github using desktop app for mac.
I got a few errors and the sync failed.
After that when I looked at the files that I have locally, they got overwritten by the ones from the git(non-updated version) and all of my work are gone.
Can you please help me on what I should do to receive the files that I had locally? Is there any way that I can undo that last sync. I found a few suggestions online, but since I'm not sure which one to use, I don't really want to mess up the files anymore.
Thanks
(Nearly) All changes made to git repositories can be undo. We don't know the commands you entered but enter it at Google for a specific solution.
You proberly have to use something like:
$git rebase