Git index file corrupt - java

I have a project with a gitlab CI for my school project for around 3 months now and never had an issue. But, yesterday morning when I wanted to commit my new code changes and push it to my Gitlab. This worked completely fine, however my CI keeps failing:
In text:
1 Running with gitlab-runner 13.9.0 (2ebc4dc4)
2 on
3 Preparing the "shell" executor
4 Using Shell executor...
6 Preparing environment
7 Running on
9 Getting source from Git repository
10 Fetching changes with git depth set to 50...
11 Reinitialized existing Git repository in
12 Checking out 437a9a83 as master...
13 error: bad signature 0x00000000
14 fatal: index file corrupt
16 Cleaning up file based variables
18 ERROR: Job failed: exit status 1
didn't notice my branch failed so I also merged this with
I was working in a separate branch and didn't notice my branch failed, so I also merged this with my main branch so main isn't working as well.

This is mentioned in gitlab-org/gitlab-runner issue 3290
The Git index file got corrupted causing the build to fail and the runner is not able to recover.
It should be able to handle this by deleting the index file and resetting the repo
As in "How to resolve “Error: bad index – Fatal: index file corrupt” when using Git"
See if the issue persists in a second GitLab pipeline, created for testing, in order to force a new clone of the same repository.

Related

Reason and fix for "Error: Could not find or load main class Anne" on Scala Getting started tutorial

I'm just starting out with Scala and have been following its Getting Started instructions. The second part of the instruction involves pulling the hello-world template by running the sbt new scala/hello-world.g8 command.
My problem is that it keeps on giving me this error:
Error: Could not find or load main class Anne
Caused by: java.lang.ClassNotFoundException: Anne
I'd like to know the reason for this, as well as any possible fix I might use.
The following is my insight and attempts on fixing this problem.
Insight:
1. I might have a problem with java installation/scala/sbt installation that needs this class Anne since even with other sbt commands like sbt sbtVersion I get the same error
Attempts:
1. Change command to retrieve from full url:
sbt new https://github.com/scala/hello-world.g8
2.(Edit): Previously I thought the repository scala/hello-world.g8 did not exist and tried getting from other repositories with no luck and with the same error as above. However it was pointed out below that the repository actually exists in this url https://github.com/scala/hello-world.g8, thanks Dmytro Mitin.
I was looking into the incorrect account (sbt) instead of (scala)
(Edit): Day 2
3. Uninstall/Reinstall sbt -- still getting the error
4. Checked if java running properly by compiling sample code and running ( successful )
I was actually running the command in Visual Studio Code's bash terminal. I tried running it with cmd and everything's now working fine.

Android Build Error: make: *** [build/core/main.mk:21: run_soong_ui] Error 1

I am trying to build AOSP from source for the Nexus 6P and encountering the following error. This issue started happening with branch android-8.0.0_r17 (OPR5.170623.007) and has continued in branch android-8.0.0_r31 (OPR5.170623.011). Branches prior to *_r17 did not have this issue for me.
[ 85% 69912/81560] Building with...rmediates/with-local/classes.de
ninja: build stopped: subcommand failed.
01:31:54 ninja failed with: exit status 1
make: *** [build/core/main.mk:21: run_soong_ui] Error 1
#### make failed to build some targets (42:12 (mm:ss)) ####
Similar questions have been asked before, but the suggestion to increase the Java heap size(here also) did not work for me. Nor did syncing the repo again, syncing repo with a single tread, or building with a single thread (in suspicion of running out of memory). prebuilt/misc/linux-x86/bison/bison does exist (as suggested here and here). The question has also been unanswered on XDA Developers for branch *_12.
My base system is Arch Linux (4.13.11-1-hardened), virtualenv in place (to use Python2 as python), and JAVA_HOME = /usr/lib/jvm/java-8-openjdk.
I'm out of ideas and would really like to continue developing my Android projects. Any suggestions?

svn: E200030: Commit failed

When I developed with svnkit 1.8.12 and excuted the svnupload method,sometimes there appears such questions :
svn: E200030: Commit failed (details follow):
svn: E200030: Insert fails: unique index sqlite_autoindex_PRISTINE_1.
And my local workingcopy was locked and svn cleanup can unlocked it.I wonder how this question appears and how can I resolve it without changing my local enter image description hereworkingcopy.
svn commit failed
The goal folder that you wanted to check out from SVN had not been cleaned up because some processes might be using them even though you can delete them. We have experienced this problem for many times in our java program.
At present, what we could do is just restart the tomcat.

SimGrid-3.13 Can't load classes

There are steps for building .jar file of SimGrid.
I downloaded archive from here.
Then I made following
cmake -DCMAKE_INSTALL_PREFIX=/home/Documents/simgrid -Denable_maintainer_mode=off -Denable_compile_optimizations=off -Denable_java=on -Denable_model-checking=off
make
make check
100% tests passed, 0 tests failed out of 586
ctest
100% tests passed, 0 tests failed out of 586
make install
There is simgrid.jar in SimGrid-3.13 folder.
But when I write code I can't load classes from this .jar file.
How can I fix it?
UPDATED
If I download ready simgrid.jar from thence, error occurs
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/simgrid-java2166199247712718748/libsimgrid.so: libcgraph.so.6: cannot open shared object file: No such file or directory
Where I have to add libsimgrid-java.so, libsimgrid.so?
UPDATED2
After installing graphviz graphviz-dev. New error occurs
Invalid XML (XML input line 2, state 2): Bad declaration <!DOCTYPE platform SYSTEM "http://simgrid.gforge.inria.fr/simgrid.dtd">.
If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:55: [surf_parse/ERROR] Parse error at (null):2: Parse error in /home/ken/IdeaProjects/Sim2Sim/src/main/java/LHCb/platform.xml
[0.000000] /builds/workspace/SimGrid-Multi/build_mode/Debug/node/simgrid-ubuntu-trusty-64/build/SimGrid-3.13/src/surf/xml/surfxml_sax_cb.cpp:57: [xbt/CRITICAL] Exiting now
As for the second update, you should read the error message that you copy-pasted:
If your are using a XML v3 file (check the version attribute in <platform>), please update it with tools/simgrid_update_xml.pl
Can you confirm that:
(1) the version attribute in the <platform> is 3
(2) running the tools/simgrid_update_xml.pl script on the platform fixes the problem?
I just checked the Debian package search page, in the second search box. I looked for /usr/lib/libcgraph.so.6 and it says that this library is in the package libcgraph6. So you have to apt-get install libcgraph6 to get it.

API analysis aborted in Eclipse due to incomplete build path

I am attempting to build the lttng portion of linuxtools by source. I downloaded and extracted the linuxtools-2.0.0 tarball. I imported the lttng subfolder to my workspace. This consisted of 28 separate projects:
org.eclipse.linuxtools.ctf
org.eclipse.linuxtools.ctf.core
org.eclipse.linuxtools.ctf.core.tests
org.eclipse.linuxtools.ctf.parser
org.eclipse.linuxtools.gdbtrace
org.eclipse.linuxtools.gdbtrace.core
org.eclipse.linuxtools.gdbtrace.core.tests
org.eclipse.linuxtools.gdbtrace.help
org.eclipse.linuxtools.gdbtrace.ui
org.eclipse.linuxtools.gdbtrace.ui.tests
org.eclipse.linuxtools.lttng.help
org.eclipse.linuxtools.lttng.releng-site
org.eclipse.linuxtools.lttng2
org.eclipse.linuxtools.lttng2.core
org.eclipse.linuxtools.lttng2.core.tests
org.eclipse.linuxtools.lttng2.kernel
org.eclipse.linuxtools.lttng2.kernel.core
org.eclipse.linuxtools.lttng2.kernel.core.tests
org.eclipse.linuxtools.lttng2.kernel.ui
org.eclipse.linuxtools.lttng2.kernel.ui.tests
org.eclipse.linuxtools.lttng2.ui
org.eclipse.linuxtools.lttng2.ui.tests
org.eclipse.linuxtools.tmf
org.eclipse.linuxtools.tmf.core
org.eclipse.linuxtools.tmf.core.tests
org.eclipse.linuxtools.tmf.help
org.eclipse.linuxtools.tmf.ui
org.eclipse.linuxtools.tmf.ui.tests
In the Problems view I am getting the following error:
API analysis aborted for 'org.eclipse.linuxtoosl.ctf.core' since its build path is incomplete
This occurs for all projects EXCEPT:
org.eclipse.linuxtools.ctf
org.eclipse.linuxtools.gdbtrace
org.eclipse.linuxtools.gdbtrace.help
org.eclipse.linuxtools.lttng.help
org.eclipse.linuxtools.lttng.releng-site
org.eclipse.linuxtools.lttng2
org.eclipse.linuxtools.lttng2.core
org.eclipse.linuxtools.lttng2.core.tests
org.eclipse.linuxtools.lttng2.kernel
org.eclipse.linuxtools.tmf
org.eclipse.linuxtools.tmf.help
Any suggestions as to why this is happening?
The same thing happened to me today and here is how it was resolved (after spending 3 hours on solving it):
Deleted all the binaries manually (from the problematic plugins),
Update the target definition,
Debug Configurations->Plug-ins->Select all->Apply->Debug
Hope that helps!

Categories