Coder Social home page Coder Social logo

Comments (11)

fsouza avatar fsouza commented on July 26, 2024

Hi @aaronfranco, how did you install Gandalf? Can you share your Gandalf configuration file? It's probably at /etc/gandalf.conf.

from gandalf.

aaronfranco avatar aaronfranco commented on July 26, 2024

Hi @fsouza, thanks for the speedy reply! I installed with aptitude

sudo apt-get install gandalf-server

Here is my config:

bin-path: /usr/local/bin/gandalf
database:
  url: 127.0.0.1:27017
  name: gandalf
git:
  bare:
    location: /var/lib/gandalf/repositories
    template: /home/git/bare-template
host: localhost
bind: "0.0.0.0:8000"
uid: git
api:
  request:
    maxMemory: 2097152
repository:
  tempDir: /tmp

from gandalf.

fsouza avatar fsouza commented on July 26, 2024

@aaronfranco the first line should be /usr/bin/gandalf-ssh instead. You need to remove the old key, change the file, restart the gandalf-server and then add the key back again.

Alternatively, you can just change the file /etc/gandalf.conf, restart gandalf-server and manually edit the file /home/git/.ssh/authorized_keys, replacing "/usr/local/bin/gandalf" with "/usr/bin/gandalf-ssh".

from gandalf.

aaronfranco avatar aaronfranco commented on July 26, 2024

Do I remove the old key with tsuru key-remove?
You mention I need to "change the file," which file is that?

from gandalf.

fsouza avatar fsouza commented on July 26, 2024

@aaronfranco I'm sorry, I've just edited my comment. The file is /etc/gandalf.conf.

Yes, the command to remove the key is tsuru key-remove.

from gandalf.

aaronfranco avatar aaronfranco commented on July 26, 2024

@fsouza thanks! that fixed it.

from gandalf.

fsouza avatar fsouza commented on July 26, 2024

@aaronfranco thank you! Do you think there's something we can improve in our documentation to avoid this kind of confusion in the future?

from gandalf.

aaronfranco avatar aaronfranco commented on July 26, 2024

@fsouza Yes. The sample gandalf config file caused the problem for me. I think updating it with the right bin-path should help 👍

That file is used on this page of your documentation. Now that I look at it, I also had to change the git template paths.

from gandalf.

fsouza avatar fsouza commented on July 26, 2024

@aaronfranco Thank you! I've updated the configuration file and the documentation page, is it fine to close this issue?

from gandalf.

aaronfranco avatar aaronfranco commented on July 26, 2024

@fsouza I think the file needs one more change...

...
git:
  bare:
    location: /var/lib/gandalf/repositories
...

Currently, the git:bare:location is set to /tmp/repositories. I'm not sure that makes a differnce, but I had to change mine to the above.

from gandalf.

fsouza avatar fsouza commented on July 26, 2024

Sure, thanks!

from gandalf.

Related Issues (20)

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.