mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
Question/Bug: Commit to Git Repo #90
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beraj on GitHub (Oct 15, 2024).
Has anyone been able to get the commit to git repo working for stack edits in the GUI? I keep running into this error:
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@ubuntu-200.(none)')
I have tried setting that in all the places I can think of, but no success so far. Thanks for all the recent updates. This is turning into a great utility!
@mbecker20 commented on GitHub (Oct 15, 2024):
Hi, can you check your Periphery version? This should be fixed in 1.15.7+ with this commit
b3356333b4@beraj commented on GitHub (Oct 15, 2024):
=====================
PERIPHERY INSTALLER
version: v1.15.9
user install: False
bin dir: /usr/local/bin
config dir: /etc/komodo
service file dir: /etc/systemd/system
config already exists, skipping...
service file already exists, skipping...
starting periphery...
Finished periphery setup.
Do I need to clear out any config from older versions? I am running as a process on the host, not as a container.
@mbecker20 commented on GitHub (Oct 15, 2024):
Ok, I see this now in your log:
fatal: unable to auto-detect email address (got 'root@ubuntu-200.(none)').It will try to
git pushusing thegit configyou set on the host. It will only set it for you if it isn't already set.It looks like the issue here is that you ran
git config --global user.email {email}, but the email you provided is invalid. Since Periphery won't change this config after its set (for good reason, it shouldn't change the user config if they need it a certain way), you will have to SSH in and setgit config --global user.email {valid_email}, ensuring the email is valid format (it doesn't need to actually exist). The default should work:git config --global user.email "komodo@komo.do".@beraj commented on GitHub (Oct 15, 2024):
Thank you for the reply. E-mail format was valid. I tried clearing .gitconfig file on the host but still same. I'll keep playing with it.
@beraj commented on GitHub (Oct 15, 2024):
Interestingly, the commit to the gitea repository works ok for the resource sync to update the toml file. Just seem to be having the issue with stacks. Sorry if it's user error.
@mbecker20 commented on GitHub (Oct 15, 2024):
I was able to reproduce this. It works when Periphery container, or systemd "user" install. Seems like the issue is isolated to the "root" systemd install. I believe this to be a linux user issue, the user that periphery runs as resolves its own git config. I'll keep digging on this and see if I can get a patch out.
@mbecker20 commented on GitHub (Oct 15, 2024):
It works when you change
/etc/systemd/system/periphery.serviceto:Just change these contents and save, and run
You can
sudo systemctl status peripheryto make sure its running, and then try committing again and it should work.I'll also update the installer, and have this handled by installer for other users.
@beraj commented on GitHub (Oct 15, 2024):
That worked for me! Thank you sir.
@mbecker20 commented on GitHub (Oct 15, 2024):
New installs with the
systemdinstaller will now write the updated service file contents.Existing installs facing this issue can add the
--force-service-fileflag to the installer so it updates their existing service file:https://github.com/mbecker20/komodo/tree/main/scripts#force-service-file-recreation
@FoxxMD commented on GitHub (Oct 17, 2024):
I'm encountering this issue when using the
peripherydocker image with a non-root user.compose.yamlin the Info page -> Save -> Commit -> Write Stack Contents failsRepeating this process but using root in the container (comment out
user: 1000:1000) succeeds without error.@mbecker20 commented on GitHub (Oct 19, 2024):
@FoxxMD The systemd one started working when a HOME env variable was defined, maybe try creating a custom periphery.Dockerfile for periphery:
and change the compose file
@FoxxMD commented on GitHub (Oct 22, 2024):
The custom dockerfile fixed it! I'll see if I can get this to work with the actual periphery dockerfile in a backwards compatible way.
fyi this does not work:
even though it seems equivalent
@FoxxMD commented on GitHub (Oct 22, 2024):
It's possible to just inline the custom dockerfile which is a good enough workaround for now, I think.
@undaunt commented on GitHub (May 30, 2025):
@FoxxMD In the periphery container as UID 99 (or 1000) I show up as "I have no name!", and
echo $HOMEis/andecho $WORKDIRis blank. Are you seeing differently? I flipped my periphery off of root due to "dubious permissions" that I keep fighting with on Unraid on owning the share where my repo is.Thanks!
@FoxxMD commented on GitHub (May 30, 2025):
@undaunt Sorry but I don't run periphery container's as non-root anymore. It's easier to manage root periphery containers in non-root environments rather than the other way around, from my experience.
I do run periphery on unraid though, without issues. Here's what I have for my stack setup (using unraid compose plugin):
I don't bind the
reposorbuildsdirectories because I don't use those on unraid periphery. If you wanted all of them to be persisted you could replaceWRT to
dubious permissionsthat you might be getting from the fix common issues unraid plugin (?): Instead of binding into appdata you could use an unassigned device as the mount, or create another share exclusive in a cache pool and use that.@undaunt commented on GitHub (May 30, 2025):
Thanks @FoxxMD
What I've got right now is below. I'm combining your excellent blog with Nick's update cycle by doing a repo git-backed, and then all stacks are file based pointing at that repo in
/mnt/user/docker. I then force locate the docker stacks to be outside of Appdata so it matches the bind mount.Let me look through your compose and keep working on it.
@Ashkaan commented on GitHub (Aug 18, 2025):
My setup was working perfectly with 1.18.4, but when I updated to 1.19, this error started happening. How can we fix it?
@mbecker20 commented on GitHub (Aug 19, 2025):
@Ashkaan Can you give some more details / logs?
@Ashkaan commented on GitHub (Aug 19, 2025):
Of course! I'm happy to:
@mbecker20 commented on GitHub (Aug 26, 2025):
@Ashkaan The issue is with the git --global config. The change is now being committed from the Core container. I'm not sure why this issue would pop up in your case.
I think if you exec into Core container and run
git config --global --get user.email, it will print that bad email. You can manually fix it by runninggit config --global user.email komodo@komo.doinside core container. But in my experience with fresh Komodos and using it otherwise, I haven't seen this issue before, and since it is reproducible container im not sure what happened here. You can also try just recreating the container and see it that fixes, since this is all stuff inside the container.@Ashkaan commented on GitHub (Aug 26, 2025):
I get a different result with a working 1.18.4 (no response).
Our environment can't handle another outage right now, so I can't test 1.19.1. You mentioned that the change is now being committed. Should we test when 1.19.2 is released?
@mbecker20 commented on GitHub (Aug 26, 2025):
That is ok, it is only set after core makes first commit after container creation. The other thing is connecting sh may affect, try with bash
@Ashkaan commented on GitHub (Aug 26, 2025):
Same thing: