Skip to content
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

Git backend storage give-up on sync #2082

Open
Lunik opened this issue Jun 18, 2020 · 2 comments
Open

Git backend storage give-up on sync #2082

Lunik opened this issue Jun 18, 2020 · 2 comments
Assignees
Labels
bug Something isn't working contrib-easy Easy dev difficulty for contribution

Comments

@Lunik
Copy link

Lunik commented Jun 18, 2020

Describe the bug
When Git backend storage fail for some reason (git server restarting for exemple), the storage function fail (obviously). But when the git service is back up, WikiJS never try to save again. It stay in error mode.

To Reproduce
Steps to reproduce the behavior:

  • Enable Git as storage backend
    • Configure it so that it work
  • Make your Git server unavailable
  • Wait until WikiJS tries to save new pages to it
  • You will get an expected error of the type (this is the error in my case) in the status windows of the backend
remote: Bad Gateway fatal: unable to access 'https://git.mydomain.fr/wiki_data.git/':
  The requested URL returned error: 502 error: Could not fetch origin 
  • Put the Git server back online
  • WikiJS never try to sync again

Additional steps :

  • Click on Force Sync
    • It sync but don't autosync again

Expected behavior

WikiJS should always try to sync even if the previous sync failed (maybe with a cooldown)

Screenshots
N/A

Host Info (please complete the following information):

  • OS: Docker
  • Wiki.js version: 2.4.105
  • Database engine: MariaDB - 10.5.3

Additional context
Add any other context about the problem here.

@NGPixel NGPixel added bug Something isn't working contrib-easy Easy dev difficulty for contribution labels Jun 18, 2020
@jmvaswani
Copy link

jmvaswani commented Nov 26, 2023

Hi !
I would like to contribute to this issue, I currently have my dev environment setup, and I think I need to start off by learning about the scheduler that you guys use.

Can you please guide me to understanding the scheduler workflow? Also any info on the global WIKI object would be super helpful as well.. Thanks!

image

@jmvaswani
Copy link

Hey, I could not reproduce this problem on the development environment, any idea if it has been fixed? Perhaps we could close this issue

Steps performed by me

  1. Set up git target
  2. Run on default schedule (5M)
  3. Cut off internet connectivity and observer failure
  4. Restore connectivity and observed successful sync

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contrib-easy Easy dev difficulty for contribution
Projects
None yet
Development

No branches or pull requests

3 participants