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

Dubious ownership. How can I fix this? #277

Open
FutureTense opened this issue May 16, 2024 · 2 comments
Open

Dubious ownership. How can I fix this? #277

FutureTense opened this issue May 16, 2024 · 2 comments

Comments

@FutureTense
Copy link

INFO ESPHome 2024.5.0
INFO Reading configuration esphome/ratgdov2-284fdb.yaml...
INFO Updating https://github.com/ratgdo/esphome-ratgdo@None
Failed config

external_components: [source esphome/.esphome/packages/74f605c3/base.yaml:4]

fatal: detected dubious ownership in repository at '/config/esphome/.esphome/external_components/74f605c3'
To add an exception for this directory, call:

	git config --global --add safe.directory /config/esphome/.esphome/external_components/74f605c3.
source: 
  type: git
  url: https://github.com/ratgdo/esphome-ratgdo
refresh: 1s

I'm getting the message and I'm not sure why. What are my options for getting my ratdgo working nicely with esphome and git again? Preferably one that doesnt have me climbing up a ladder to get the ratgdo box. Isn't there some sudo goodness that can make git happy agin?

@restauffer
Copy link

I am not an expert but it seems your YAML is pointing to a wrong Github repository. Can you send a copy of your YAML file so we can look at it?

If you don't want to send the file, you can try this. You may be able to connect via OTA or you may need to connect with a USB cable to your computer:

  1. Make a copy of the current YAML file in case you need/want to revert due to the following not working.
  2. Go to https://github.com/ratgdo/esphome-ratgdo/tree/main/components/ratgdo and find the YAML file that matches your board. If you are not sure what board you have, there is a corresponding png file with an image of each board.
  3. Copy and keys and passwords from the file you saved (current file) to this new one.
    4 Copy the new YAML file into the ESPHOME profile for your RATGDO and install it.

@rlowens
Copy link
Contributor

rlowens commented May 16, 2024

but it seems your YAML is pointing to a wrong Github repository.

No, this is just a ownership issue of the local folders. They need to re-setup ESPHome or manually correct the folder ownership issue.

How do you have ESPHome installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants