Code Monkey home page Code Monkey logo

Comments (12)

NGPixel avatar NGPixel commented on May 8, 2024 2

Here's the root cause. Once the repo folder is created, any changes to the git URL / authentication settings will not be reflected into the actual repo git config. I'll add some code in the future to make sure both matches when starting Wiki.js. In the meantime, you have 2 solutions:

  • Edit that ./git/config file and change the url parameter below the [remote "origin"] block to use the new value [email protected]:WumpusPrime/wiki.git. Save and restart Wiki.js.
  • Delete the repo folder and restart Wiki.js. The repo will be created again with the correct settings.

from wiki.

NGPixel avatar NGPixel commented on May 8, 2024 1

Fixed in Beta 11 (642bcac)

from wiki.

NGPixel avatar NGPixel commented on May 8, 2024

Remove the parameters username and password from your config file. They are not used in SSH authentication at all.

The // in the username field is most likely causing an issue when building the git remote.

from wiki.

nullpixel avatar nullpixel commented on May 8, 2024

I didn't leave them in, I just did it to signal those fields were in fact empty. Removing them still ignores ssh auth

from wiki.

NGPixel avatar NGPixel commented on May 8, 2024

Can you paste the contents of /path-to-your-wiki/repo/.git/config file? It might be a config mismatch issue.

from wiki.

nullpixel avatar nullpixel commented on May 8, 2024

Sure

from wiki.

nullpixel avatar nullpixel commented on May 8, 2024
[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
	sshCommand = ssh -i \"/home/wiki/.ssh/id_rsa\" -o StrictHostKeyChecking=no
[user]
	name = Discord Wiki
	email = [email protected]
[http]
	sslVerify = true
[remote "origin"]
	url = https://github.com/WumpusPrime/wiki
	fetch = +refs/heads/*:refs/remotes/origin/*
wiki@webconsole:~$```

from wiki.

nullpixel avatar nullpixel commented on May 8, 2024

Okay, that made it worse. I went with option 2, and obviously it deleted all uncommitted pages. Then, to top things off, now the deleted pages are still there in the sense the database thinks they're there: but you can't view them

from wiki.

NGPixel avatar NGPixel commented on May 8, 2024

Pages are always committed as soon as they are created / modified.

What do you mean by deleted pages are still there? What behavior shows delete entries? Indexes and cache is rebuilt completely when restarting Wiki.js.

from wiki.

nullpixel avatar nullpixel commented on May 8, 2024

You can't create the page, it says it exists: but when you go to edit it, it doesn't exist

from wiki.

koallen avatar koallen commented on May 8, 2024

It would be great if you could sync the git remote setting when starting the app. I had some problem today with git because I set the url to https at first. And then I realize I actually need the [email protected] url (since I'm using ssh auth). I had to manually change the url in the git repo.

from wiki.

PabloRomanH avatar PabloRomanH commented on May 8, 2024

This still got me with version 1.0.102.
I set it up to use SSH authentication from the beginning, but the config file then included a username, password, and the wrong GitHub URL (https...) and took a while to find why the commits were not being made.

from wiki.

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.