Code Monkey home page Code Monkey logo

Comments (31)

fharper avatar fharper commented on July 16, 2024 28

I have the same issue

from mackup.

itoumlilt avatar itoumlilt commented on July 16, 2024 20

A simpler workaround, closing iTerm.app prevent it from recreating DynamicProfiles.
For example, try to backup from Terminal.app or another term:

killall iTerm2
mackup backup

from mackup.

elmpp avatar elmpp commented on July 16, 2024 5

I'm still getting the iterm2 specific error with latest release of 0.8.37:

Backing up
  /Users/matt/Library/Preferences/com.googlecode.iterm2.plist
  to
  /Users/matt/Library/CloudStorage/GoogleDrive-EMAIL_ADDRESS/My Drive/syncable_apps_mackup/Library/Preferences/com.googlecode.iterm2.plist ...
A file named /Users/matt/Library/CloudStorage/GoogleDrive-EMAIL_ADDRESS/My Drive/syncable_apps_mackup/Library/Preferences/com.googlecode.iterm2.plist already exists in the backup.
Are you sure that you want to replace it? <Yes|No> yes
Backing up
  /Users/matt/.config/iterm2/AppSupport/DynamicProfiles
  to
  /Users/matt/Library/CloudStorage/GoogleDrive-EMAIL_ADDRESS/My Drive/syncable_apps_mackup/.config/iterm2/AppSupport/DynamicProfiles ...
A folder named /Users/matt/Library/CloudStorage/GoogleDrive-EMAIL_ADDRESS/My Drive/syncable_apps_mackup/.config/iterm2/AppSupport/DynamicProfiles already exists in the backup.
Are you sure that you want to replace it? <Yes|No> yes
Traceback (most recent call last):
  File "/usr/local/bin/mackup", line 33, in <module>
    sys.exit(load_entry_point('mackup==0.8.37', 'console_scripts', 'mackup')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/main.py", line 93, in main
    app.backup()
  File "/usr/local/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/application.py", line 112, in backup
    utils.link(mackup_filepath, home_filepath)
  File "/usr/local/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/utils.py", line 145, in link
    os.symlink(target, link_to)
FileExistsError: [Errno 17] File exists: '/Users/matt/Library/CloudStorage/GoogleDrive-EMAIL_ADDRESS/My Drive/syncable_apps_mackup/.config/iterm2/AppSupport/DynamicProfiles' -> '/Users/matt/.config/iterm2/AppSupport/DynamicProfiles'

from mackup.

johanmolen avatar johanmolen commented on July 16, 2024 2

Nope no additional info ๐Ÿ‘Ž

from mackup.

getvega avatar getvega commented on July 16, 2024 2

@LucasLarson PR fixes this form me ๐Ÿ‘ , thanks

from mackup.

m-roberts avatar m-roberts commented on July 16, 2024 2

Where did you modify this file? Where is it located?

I installed with homebrew, which at time of writing is installing iterm2.cfg into /opt/homebrew/Cellar/mackup/0.8.36/libexec/lib/python3.11/site-packages/mackup/applications. Changing the file directly works (until an update overwrites it again)

I found it by installing and running ag with these 2 commands:

brew install the_silver_searcher
ag -U -g iterm2.cfg $(brew --prefix)

from mackup.

m-roberts avatar m-roberts commented on July 16, 2024 2

I suggest encouraging maintainer to merge in #1864

from mackup.

SDJeff avatar SDJeff commented on July 16, 2024 1

When will be the fix in the master branch?

from mackup.

PierBJX avatar PierBJX commented on July 16, 2024 1

Thanks

from mackup.

davidwang558 avatar davidwang558 commented on July 16, 2024 1

I also encountered the same issue. Following the earlier guidance, I switched from using iTerm2 to the built-in Terminal in macOS, and now everything is functioning correctly.

from mackup.

steveshi avatar steveshi commented on July 16, 2024

I have the same issue

from mackup.

joshmedeski avatar joshmedeski commented on July 16, 2024

It looks like it's related to DynamicProfiles being a directory. Please try this and let us know if it's still failing.

  1. Move DynamicProfiles from your mackup directory to somewhere else as a temporary backup.
  2. Rerun mackup backup (you should no longer see "...already exists in the backup")

Let me know if this works for any of you and we can further investigate the root cause.

from mackup.

johanmolen avatar johanmolen commented on July 16, 2024

@joshmedeski removing the folder with iTerm2 results in the same.

Removing the folder with the terminal app and then run mackup backup works, but once I start iTerm2 again the folder is recreated and I get the same error again.

from mackup.

johanmolen avatar johanmolen commented on July 16, 2024

The recreation is normal as listed here:
https://iterm2.com/documentation-dynamic-profiles.html

from mackup.

joshmedeski avatar joshmedeski commented on July 16, 2024

Hmm, we've run into a similar issue with other apps where the application (i.e. iTerm) overwrites files and mackup loses its symbolic link. I wonder if it's the same kind of issue here.

from mackup.

johanmolen avatar johanmolen commented on July 16, 2024

Is there something I can run to get more debug information?

from mackup.

joshmedeski avatar joshmedeski commented on July 16, 2024

There is a --verbose flag. Feel free to rerun the command with that flag and let us know if there's any further information given.

from mackup.

xingfanxia avatar xingfanxia commented on July 16, 2024

Getting the same issue, any fix/work around yet? Moving the Dynamic profile in mackup backup doesn't work

from mackup.

xingfanxia avatar xingfanxia commented on July 16, 2024
โ•ฐโ”€โฏ mv "/Users/xingfanxia/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/iTerm2/DynamicProfiles" ~/Downloads
โ•ญโ”€ ๏…น ๏€• ~ ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท ๎˜— system ๏€— 02:09:24
โ•ฐโ”€โฏ mackup backup
Backing up Library/Application Support/iTerm2/DynamicProfiles ...
Traceback (most recent call last):
  File "/opt/homebrew/bin/mackup", line 33, in <module>
    sys.exit(load_entry_point('mackup==0.8.35', 'console_scripts', 'mackup')())
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/main.py", line 93, in main
    app.backup()
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/application.py", line 121, in backup
    utils.link(mackup_filepath, home_filepath)
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/utils.py", line 145, in link
    os.symlink(target, link_to)
FileExistsError: [Errno 17] File exists: '/Users/xingfanxia/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/iTerm2/DynamicProfiles' -> '/Users/xingfanxia/Library/Application Support/iTerm2/DynamicProfiles'
โ•ญโ”€ ๏…น ๏€• ~ ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท ๎˜— system ๏€— 02:09:26
โ•ฐโ”€โฏ mv '/Users/xingfanxia/Library/Application Support/iTerm2/DynamicProfiles' ~/Downloads
โ•ญโ”€ ๏…น ๏€• ~ ยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยทยท ๎˜— system ๏€— 02:11:52
โ•ฐโ”€โฏ mackup backup
Backing up Library/Preferences/com.googlecode.iterm2.plist ...
Backing up Library/Application Support/iTerm2/DynamicProfiles ...
A folder named /Users/xingfanxia/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/iTerm2/DynamicProfiles already exists in the backup.
Are you sure that you want to replace it? <Yes|No> Yes
Traceback (most recent call last):
  File "/opt/homebrew/bin/mackup", line 33, in <module>
    sys.exit(load_entry_point('mackup==0.8.35', 'console_scripts', 'mackup')())
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/main.py", line 93, in main
    app.backup()
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/application.py", line 114, in backup
    utils.link(mackup_filepath, home_filepath)
  File "/opt/homebrew/Cellar/mackup/0.8.35/libexec/lib/python3.10/site-packages/mackup/utils.py", line 145, in link
    os.symlink(target, link_to)
FileExistsError: [Errno 17] File exists: '/Users/xingfanxia/Library/Mobile Documents/com~apple~CloudDocs/Mackup/Library/Application Support/iTerm2/DynamicProfiles' -> '/Users/xingfanxia/Library/Application Support/iTerm2/DynamicProfiles'```

from mackup.

scottmc42 avatar scottmc42 commented on July 16, 2024

Getting the same problem

from mackup.

Fossil01 avatar Fossil01 commented on July 16, 2024

Same issue here

from mackup.

ralts00 avatar ralts00 commented on July 16, 2024

Same issue here

from mackup.

gxcodes avatar gxcodes commented on July 16, 2024

Still the same issue in mackup version 0.8.36

from mackup.

fharper avatar fharper commented on July 16, 2024

I updated iterm2.cfg based on #1864, I deleted my iTerm2 backup from my Mackup folder, but when I run mackup backup I get the same error. Anything I'm missing?

from mackup.

m-roberts avatar m-roberts commented on July 16, 2024

Updating my iterm2.cfg based on #1864, I was able to run mackup backup. Would be great to get this released!

from mackup.

PierBJX avatar PierBJX commented on July 16, 2024

@m-roberts @getvega

Updating my iterm2.cfg based on #1864, I was able to run mackup backup. Would be great to get this released!

Where did you modify this file? Where is it located?

from mackup.

vordenken avatar vordenken commented on July 16, 2024

The issue still exists... Any information about when this get updated in the release?

from mackup.

ilium007 avatar ilium007 commented on July 16, 2024

Still experiencing this same issue

from mackup.

liaozihang avatar liaozihang commented on July 16, 2024

I'm still getting the iterm2 specific error with latest release of 0.8.37:

same issue here .
Perhaps related to the default settings of iTerm2:

default settings

from mackup.

Jendker avatar Jendker commented on July 16, 2024

The issue still persists on the latest release from homebrew. Run into some troubles with iTerm because of it.

from mackup.

scottmc42 avatar scottmc42 commented on July 16, 2024

I'm getting the same problem on a different computer; confirmed the 1864 update in my version.

Backing up .config/iterm2/AppSupport/DynamicProfiles ...
A folder named /Users/me/backup/Mackup/.config/iterm2/AppSupport/DynamicProfiles already exists in the backup.
Are you sure that you want to replace it? <Yes|No> y
Traceback (most recent call last):
  File "/opt/homebrew/bin/mackup", line 33, in <module>
    sys.exit(load_entry_point('mackup==0.8.37', 'console_scripts', 'mackup')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/main.py", line 93, in main
    app.backup()
  File "/opt/homebrew/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/application.py", line 112, in backup
    utils.link(mackup_filepath, home_filepath)
  File "/opt/homebrew/Cellar/mackup/0.8.37/libexec/lib/python3.11/site-packages/mackup/utils.py", line 145, in link
    os.symlink(target, link_to)
FileExistsError: [Errno 17] File exists: '/Users/me/backup/Mackup/.config/iterm2/AppSupport/DynamicProfiles' -> '/Users/me/.config/iterm2/AppSupport/DynamicProfiles'

from mackup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.