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

[Bug]: #83

Closed
1 task done
3DeezNutz opened this issue Mar 12, 2024 · 22 comments
Closed
1 task done

[Bug]: #83

3DeezNutz opened this issue Mar 12, 2024 · 22 comments
Labels
bug Something isn't working stale

Comments

@3DeezNutz
Copy link

Code of Conduct

  • I promise that i have used markdown syntax to make the code more readable which helps to fix the problem

What happened

I tried updating and im getting this error.
image

What did you expect to happen

just to update my back up files.

How to reproduce

just hit the gitupdate macro.

Additional information

image

@3DeezNutz 3DeezNutz added the bug Something isn't working label Mar 12, 2024
@Tylerjet
Copy link
Collaborator

Tylerjet commented Mar 12, 2024

I had this happen but not really sure why it occurs what you can try is going into the config_backup folder via ssh and running git pull and i believe that should be able to un corrupt the repo.

I've been attempting to reproduce the error or sort out what causes it to occur but no luck yet.

@3DeezNutz
Copy link
Author

3DeezNutz commented Mar 12, 2024 via email

@Tylerjet
Copy link
Collaborator

Tylerjet commented Mar 12, 2024

git pull is a command, once logged into the PC running klipper you will want to do:

cd config_backup

and then

git pull

and see what errors occur if any

@3DeezNutz
Copy link
Author

image

like this?

@Tylerjet
Copy link
Collaborator

yep ok so try this instead

git init

and then

git pull

@3DeezNutz
Copy link
Author

image

@Tylerjet
Copy link
Collaborator

Tylerjet commented Mar 12, 2024

ahh ok i found the list of commands i did:

rm -rf .git/objects
git init
git reset --hard
git status

The last command should either show up to date or that there are deleted files but you shouldn't see the loose object error

@3DeezNutz
Copy link
Author

image

@Tylerjet
Copy link
Collaborator

could you try a git pull again what shows up

@3DeezNutz
Copy link
Author

ok thank you that fixed it

@3DeezNutz
Copy link
Author

how would i go about backing up my history on mainsail?

@Tylerjet
Copy link
Collaborator

Not sure what you mean are you referring to the the mainsail.cfg file? that is a read only file and can't be modified in the editor so it is skipped from backups.

@3DeezNutz
Copy link
Author

like all the data from your total print hours.
image

@Tylerjet
Copy link
Collaborator

That data is saved in a database specific to moonraker and has a bit more involved process to backup the data base to be able to restore it if needed later.

@3DeezNutz
Copy link
Author

3DeezNutz commented Mar 12, 2024 via email

@Staubgeborener
Copy link
Owner

Maybe, it's possible to backup and restore the moonraker database. We could add a simple ~/moonraker/scripts/backup-database.sh -o ~/moonraker-database.backup command line in future (code) which can be toggled with a backup_database parameter (or something like that) in future.
Right now you can backup this database by yourself and add the path to the data.mdb file in your .env.

@3DeezNutz
Copy link
Author

3DeezNutz commented Mar 13, 2024 via email

@Staubgeborener
Copy link
Owner

What.

@3DeezNutz
Copy link
Author

3DeezNutz commented Mar 13, 2024

do i use this but add the data.mdb path
image

@Staubgeborener
Copy link
Owner

Yes. If you run the backup like this
~/moonraker/scripts/backup-database.sh -o ~/moonraker-database.backup
You create the backup file of your database in your home directory.

So basically adding something like this in your .env is enough:
path_moonrakerdatabase=moonraker-database.backup

I would suggest to create the database backup in a extra directory and not in your home directory. After pushing all files to GitHub so you avoid disorganization in your repository.

Copy link
Contributor

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Mar 28, 2024
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants