Coder Social home page Coder Social logo

Binder launch issue about empire-analysis HOT 13 CLOSED

okarras avatar okarras commented on June 15, 2024
Binder launch issue

from empire-analysis.

Comments (13)

rgaiacs avatar rgaiacs commented on June 15, 2024 2

Dear @okarras,

I don't think that .gitattributes is the only culprit, see #1 (comment), but your recent commit removing .gitattributes (fc11a3e) had a successful build.

If you want to figure out what is the culprit that is working with .gitattributes to make the build fail on MyBinder, you can use Git's bisect.

Setup

$ git bisect start 2eb7478dba09a041e59e97abb5f8b00feaa7fd1d 704b1a3e68b7ff61627f1a36d3d9d704052fdc33
Bisecting: 29 revisions left to test after this (roughly 5 steps)
[b9ef5e873ac69ea7f00b87bf3d46ba6b7cd74b47] Merge branch 'master' of https://github.com/okarras/EmpiRE-Analysis

2eb7478dba09a041e59e97abb5f8b00feaa7fd1d is the last commit when the issue was reported and 704b1a3e68b7ff61627f1a36d3d9d704052fdc33 is where .gitattributes was created.

Loop

  1. Run git rev-parse HEAD to obtain the Git commit
  2. Visit https://mybinder.org/
    1. fill " GitHub repository name or URL" with https://github.com/okarras/EmpiRE-Analysis/
    2. fill "Git ref (branch, tag, or commit)" with the output of git rev-parse HEAD
    3. click on "launch"
  3. Wait to see if MyBinder fails during "Using PythonBuildPack builder".
  4. Record the result using git bisect good or git bisect bad

After 5 iterations, you will get a message like

123ABC678DEF789 is the first bad commit
commit 123ABC678DEF789
Author:
Date:

    Commit message

Possible first bad commit

Based on #1 (comment), the first bad commit is 6e411f4.

git log -3 6e411f4c6dc5fdd4386d42072f388e2ec1425cd6 returns

commit 6e411f4c6dc5fdd4386d42072f388e2ec1425cd6
Author: Oliver Karras <[email protected]>
Date:   Tue Jan 16 15:18:26 2024 +0100

    replication test on second system

commit 75608edbdf2e8f5e7369e91fb346184ba369915d
Author: okarras <[email protected]>
Date:   Tue Jan 16 10:46:50 2024 +0100

    Test replication on other system

commit fec29e1bdbffa1b009507e201d42d5ad477ca438
Author: okarras <[email protected]>
Date:   Tue Jan 16 10:29:49 2024 +0100

    test on surface

https://mybinder.org/v2/gh/okarras/EmpiRE-Analysis/6e411f4c6dc5fdd4386d42072f388e2ec1425cd6 FAILS!

https://mybinder.org/v2/gh/okarras/EmpiRE-Analysis/75608edbdf2e8f5e7369e91fb346184ba369915d works.

Conclusion

Based on the information on Git commit 6e411f4 , I cannot tell why MyBinder is failing.

from empire-analysis.

okarras avatar okarras commented on June 15, 2024 2

Dear @rgaiacs and @arnim

thank you so much for your help!

I tried a lot in the evening but I cannot really figure out what the problem is. I decided to remove the .gitattributes files and the RDF dump. I will provide it with another solution.

I would never have thought of it without your help. Thank you very much again.

Best
Olli

from empire-analysis.

rgaiacs avatar rgaiacs commented on June 15, 2024 1

The Kubernetes building pod has not extra information:

{"message": "Picked Git content provider.\n"}
{"message": "Cloning into '/tmp/repo2dockerde0s0lo8'...\n", "phase": "fetching"}
{"message": "Updating files:  98% (83/84)\r", "phase": "fetching"}
{"message": "Updating files: 100% (84/84)\r", "phase": "fetching"}
{"message": "Updating files: 100% (84/84), done.\n", "phase": "fetching"}
{"message": "HEAD is now at a8d199b Update for re24\n", "phase": "fetching"}
{"message": "Building conda environment for python=3.11\n"}
{"message": "Using PythonBuildPack builder\n", "phase": "building"}

from empire-analysis.

rgaiacs avatar rgaiacs commented on June 15, 2024

Dear @okarras,

do you know a good of this repository that you are aware that was working with Binder?

from empire-analysis.

rgaiacs avatar rgaiacs commented on June 15, 2024

Locally, repo2docker EmpiRE-Analysis works

Picked Local content provider.
Using local repo EmpiRE-Analysis/.
Building conda environment for python=3.11
Using PythonBuildPack builder
Step 1/50 : FROM docker.io/library/buildpack-deps:bionic
...

@yuvipanda @minrk any idea why PythonBuildPack builder might be failing silent on GESIS cluster?

from empire-analysis.

arnim avatar arnim commented on June 15, 2024

Seems not to be specific to the GESIS cluster
https://binder.curvenote.dev/v2/gh/okarras/EmpiRE-Analysis/HEAD?labpath=%2Fempire-analysis.ipynb

from empire-analysis.

arnim avatar arnim commented on June 15, 2024

.gitattributes seems to be the culprit. Once .gitattributes is removed the build starts just fine.

https://mybinder.org/v2/gh/arnim/EmpiRE-Analysis/arnim-patch-2

@okarras is .gitattributes needed? Can you modify it so that the build passes?

from empire-analysis.

okarras avatar okarras commented on June 15, 2024

Dear @okarras,

do you know a good of this repository that you are aware that was working with Binder?

I checked the commit history: https://github.com/okarras/EmpiRE-Analysis/commits/master?before=2eb7478dba09a041e59e97abb5f8b00feaa7fd1d+35

The version before Starting preparation for RE24 Artifact Track worked on binder. After the 16th of January, I was mainly changing the readme file and other documentation.

from empire-analysis.

okarras avatar okarras commented on June 15, 2024

Seems not to be specific to the GESIS cluster https://binder.curvenote.dev/v2/gh/okarras/EmpiRE-Analysis/HEAD?labpath=%2Fempire-analysis.ipynb

Yes it is also not working on the mybinder.org page with the same "error".

from empire-analysis.

okarras avatar okarras commented on June 15, 2024

.gitattributes seems to be the culprit. Once .gitattributes is removed the build starts just fine.

https://mybinder.org/v2/gh/arnim/EmpiRE-Analysis/arnim-patch-2

@okarras is .gitattributes needed? Can you modify it so that the build passes?

I had to add the gitattributes due to the use of GIT LSF as the folder supplemantary materials contains an RDF dump of the ORKG which is to large for GItHub itself.

I could remove it, but it does not explain why it work 4 weeks ago with the .gitattributes.

i do not really now much about the .gitattributes file, one of our developers help me with it.

from empire-analysis.

rgaiacs avatar rgaiacs commented on June 15, 2024

git log -- .gitattributes returns

commit 704b1a3e68b7ff61627f1a36d3d9d704052fdc33
Author: Oliver Karras <[email protected]>
Date:   Mon Apr 24 13:56:33 2023 +0200

    added rdf dump

and git log 704b1a3e68b7ff61627f1a36d3d9d704052fdc33 -n 2 returns

commit 704b1a3e68b7ff61627f1a36d3d9d704052fdc33
Author: Oliver Karras <[email protected]>
Date:   Mon Apr 24 13:56:33 2023 +0200

    added rdf dump

commit e2178b0669e0e52aa4eb06fe3d8c2eafdbd830df
Author: Oliver Karras <[email protected]>
Date:   Mon Apr 24 11:07:08 2023 +0200

    added supplementary material

I tried both commits and both works:

Before .gitattributes was added: https://mybinder.org/v2/gh/okarras/EmpiRE-Analysis/e2178b0669e0e52aa4eb06fe3d8c2eafdbd830df (Work!)

After .gitattributes was added: https://mybinder.org/v2/gh/okarras/EmpiRE-Analysis/704b1a3e68b7ff61627f1a36d3d9d704052fdc33 (Also work!)

from empire-analysis.

arnim avatar arnim commented on June 15, 2024

Hi @okarras,

Just tested if b8631c0 (the last commit before Starting preparation for RE24 Artifact Track) works as you said. It seems to have the same issue.

👉 https://mybinder.org/v2/gh/okarras/EmpiRE-Analysis/b8631c0

from empire-analysis.

okarras avatar okarras commented on June 15, 2024

I checked the previous versions. Test replication on other system for this version exists a build after it. the error occurs.

from empire-analysis.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.