Comments (7)
oh @jedbrown this is a quick guess...
are the permissions on the key set on your hub? i kind of remember running into this and a quick chmod
operation did the trick. this was specific to working on the jhub vs local. this is just a guess if you are certain you in fact have the correct github permissions and the ssh key is in fact setup.
my fix:
chmod 400 /home/jovyan/.ssh/id_rsa
in case this happens to work, i had added some discussion in the docs.
from abc-classroom.
Thanks for your quick reply. My key is 0600
and it works fine when used manually. Indeed, I worked around this issue by just setting the remote manually and git push origin main
. But I think this error is with the API token, which I'm less familiar with, to create the repository (which can't be done via ssh).
from abc-classroom.
got it. thought i'd try permissions first. @kcranston setup that token. i haven't tried to create a repo and push from a hub but we can try to recreate it locally to see if we run into the same issue. Just out of curiosity did you encounter the same issue running it locally on your computer?
It also seems like it would be helpful for it to print out what organization and repo it's trying to access just in case the user has their config setup to connect to the incorrect place too. let me see - @eculler have you used abc-classroom to create template repos? did you run into permissions issues?
from abc-classroom.
@lwasser yes, I have, and no I didn't have any permissions issues
from abc-classroom.
As @jedbrown mentioned, the first idea is that it is due to the API token, and i can confirm it is. I got the same error and could fix it by generating myself a token with all repo
permissions and then putting this token in ~/.abc-classroom.tokens.yml
to replace the one generated from abc-init
.
from abc-classroom.
i'm unfortunately not sure who is maintaining this package anymore.
see here at the top: https://github.com/earthlab/abc-classroom/blob/main/README.md
If you setup your own token then does abc-classroom function as expected?
from abc-classroom.
I see, i also submitted a PR on a separate issue.
Yes it works as expected with a custom token.
from abc-classroom.
Related Issues (20)
- implement logging
- Package organization HOT 1
- Organization of github and git functions in abc classroom HOT 4
- Test suites and organization HOT 1
- Clean up old / deprecated code HOT 1
- potential bug? - github.remote_repo_exists returns false with bad token even if repo exists. HOT 2
- break up get_access_token into two helpers? HOT 2
- set_github_auth will fail if no file is found HOT 2
- Docstring Updates
- Function that may not get used anywhere in abc classroom HOT 2
- function init_and_commit and custom commit messages HOT 7
- Struggling to trigger FileNotFound Error in get_github_auth() HOT 1
- Better error handling for auth setup
- Do we want to keep python 3.6 support & docs build HOT 2
- What's next for abc-classroom - test suite
- abc-init fails getting access token HOT 16
- No support for multiple ssh users
- Copy an entire directory tree from extra_files
- Misleading setup documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abc-classroom.