Comments (12)
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.
Fixed in Beta 11 (642bcac)
from wiki.
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.
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.
Can you paste the contents of /path-to-your-wiki/repo/.git/config
file? It might be a config mismatch issue.
from wiki.
Sure
from wiki.
[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.
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.
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.
You can't create the page, it says it exists: but when you go to edit it, it doesn't exist
from wiki.
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.
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)
- Markdown Highlighting Not working in View Mode
- DO NOT CREATE ISSUES, READ FIRST!
- error message when saving Page
- Search HOT 1
- File Manager
- PDF Viewer HOT 1
- Markdown Editor
- WYSIWYG Editor
- Common Editor Features
- Approval Workflow HOT 2
- Audit Log
- Page History HOT 2
- Navigation Sidebar HOT 1
- Authentication
- Database Problem?
- Export as 11ty / nuxt static site
- Use Iconify to load icons HOT 1
- v3 Feature Parity Checklist HOT 13
- Error in Connecting with Postgres database (Some malware runs and kills postgresql) HOT 1
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 wiki.