-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Code of Conduct
- I promise that i have used markdown syntax to make the code more readable which helps to fix the problem and that I have tested the --fix command mentioned above without success.
What happened
After I installed Klipper-Backup according to the docs I tried to do an initial backup using ./script.sh
. However, an error message appears.
What did you expect to happen
I expected it to confirm that my config has been uploaded to GitHub
How to reproduce
Install first, then run ./script.sh
Debug
● Checking for installed dependencies Done!
Klipper-Backup is up to date
------------DEBUG:------------
Command: ./script.sh --debug
------------------------------
------------DEBUG:------------
github_token=****************
github_username=bliepp
github_repository=Ender3-Klipper-Config
branch_name="main"
commit_username="bliepp"
commit_email="12013202+bliepp@users.noreply.github.com"
# All information regarding .env can be found here:
# https://klipperbackup.xyz/configuration/
# Backup paths
# Note: script.sh starts its search in $HOME which is /home/{username}/
# The array accepts folders or files like the following example
#
# backupPaths=( \
# "printer_data/config/*" \
# "printer_data/config/printer.cfg" \
# )
#
# Using the above example the script will search for `/home/{username}/printer_data/config/*` and `/home/{username}/printer_data/config/printer.cfg`
# When backing up a folder you should always have `/*` at the end of the path so that files insde the folder are properly searched
backupPaths=( \
"printer_data/config/*" \
)
# Array of strings in .gitignore pattern git format https://git-scm.com/docs/gitignore#_pattern_format for files that should not be uploaded to the remote repo
# New additions must be enclosed in double quotes and should follow the pattern format as noted in the above link
exclude=( \
"*.swp" \
"*.tmp" \
"printer-[0-9]*_[0-9]*.cfg" \
"*.bak" \
"*.bkp" \
"*.csv" \
"*.zip" \
)
------------------------------
------------DEBUG:------------
curl: (22) The requested URL returned error: 404
Error: no GitHub repo bliepp/Ender3-Klipper-Config found (maybe private)
------------------------------
------------DEBUG:------------
$HOME: /home/bliepp
------------------------------
------------DEBUG:------------
$backup_path: /home/bliepp/config_backup
Content of $backup_path:
total 8
drwxr-xr-x 2 bliepp bliepp 4096 Sep 19 14:40 .
drwxr-xr-x 15 bliepp bliepp 4096 Sep 19 14:40 ..
------------------------------
------------DEBUG:------------
$backup_path/.git/config:
./script.sh: line 144: /home/bliepp/config_backup/.git/config: No such file or directory
------------------------------
Initialized empty Git repository in /home/bliepp/config_backup/.git/
Skipping symbolic link: printer_data/config/mainsail.cfg
------------DEBUG:------------
Content of $backup_path after rsync:
total 16
drwxr-xr-x 4 bliepp bliepp 4096 Sep 19 14:40 .
drwxr-xr-x 15 bliepp bliepp 4096 Sep 19 14:40 ..
drwxr-xr-x 7 bliepp bliepp 4096 Sep 19 14:40 .git
drwxr-xr-x 3 bliepp bliepp 4096 Sep 19 14:40 printer_data
------------------------------
error: 'printer_data/config/' does not have a commit checked out
fatal: adding files failed
On branch main
Initial commit
Untracked files:
(use "git add <file>..." to include in what will be committed)
.gitignore
README.md
printer_data/
nothing added to commit but untracked files present (use "git add" to track)
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
From https://ghp_<access_token>@github.com/bliepp/Ender3-Klipper-Config.git
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/bliepp/Ender3-Klipper-Config.git'
Additional information
I'm aware that it says "Error: no GitHub repo bliepp/Ender3-Klipper-Config found (maybe private)". However, changing it to public didn't change anything (the message became "The GitHub repo bliepp/Ender3-Klipper-Config exists (public)" but the error didn't go away, though).
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working