-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lost entries #11
Comments
I just entered again with just 1 page created, and it's removed again. It seems each time heroku puts to sleep my server, the table entries get removed |
I tried to deploy to another Heroku server. Realized from MongoDB that the entries are not removed. Here is what I found. If I check the DB on Heroku (mLab addon), entries are there. |
The free plan of Heroku deletes your instance after 30 mins of inactivity. You must have git remote sync enabled in your Wiki.js config to make sure you don't loose anything. If you have the sync setup and you come back to the site after 30 mins inactivity, you need to wait a min or 2 for the sync to occurs and re-download the files, which is why you see the "Welcome to the wiki" page instead of your content. |
Then, how is it possible that is just the table entries? |
The entries table is a temporary cache, which is re-populated on start. Users is persistent data. |
@NGPixel , hello! |
To enable git remote sync, you'll need a git repo somewhere -- like Github or Gitlab. The Heroku environment variables -- which you can get to through Heroku > Your Wiki App > Settings, and then click on "Reveal Config Vars" -- need to be filled out with correct entries. Briefly, you'll need a user account on a git hosting service, and enter the username and password so that wikijs can push syncs to it. I've copy/pasted the relevant entries below.
|
Hi,
Yesterday I deployed a new WikiJs through Heroku.
Everything was fine (4 entries so far, 4 users)
For some reason today when I entered again, all the entries from
entries
table were removed. Just that table. Users remain there, sessions remain there, and I am not sure what is bruteforces but I have 4 entries there.Any idea why my entries table were removed not after 12 hours??
The text was updated successfully, but these errors were encountered: