Opened 7 weeks ago
Last modified 5 weeks ago
#73737 new defect
Macports Migrate removed all packages. Will not restore from snapshot
| Reported by: | doomed-theory | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | base | Version: | |
| Keywords: | migrate | Cc: | jmroot (Joshua Root) |
| Port: |
Description (last modified by jmroot (Joshua Root))
Upgraded MacOs recently, got the migration tutorial from the port command, and ran it following the details on the web page. I thought everything was going well until this morning. I went to access sympy, which I know I installed. However, it did not work. I thought there might have been a python version mismatch, so I installed py-sympy to make sure everything was working correctly. Then, I realized. Nothing was downloaded. I had zero ports on my system post-migration. Not even the base python3.14! Everything was WIPED and not restored from the migration. From realizing migration wiped my installed ports and never attempted to restore them, I ran port restore. However, I got the following error. I still do not have any ports installed (except sympy, which I needed), and I do not have a way to get my previous requested ports list from the snapshot to reinstall them all due to the following error from port restore:
===> Computing dependency order ===> Sorting dependency tree Error: process_cmd failed: lchown: /opt/local/var/macports/incoming/zlib-1.3.2_0+universal.darwin_25.arm64-x86_64.tbz2.TMP: no such file or directory
Change History (7)
comment:1 Changed 6 weeks ago by jmroot (Joshua Root)
| Description: | modified (diff) |
|---|
comment:2 Changed 6 weeks ago by jmroot (Joshua Root)
Assuming you currently have an older version, this should get you going again:
sudo port selfupdate sudo port restore --last
comment:3 Changed 6 weeks ago by jmroot (Joshua Root)
Did the above suggestion work? If not, we must still have a bug to fix, and I can help you with ways of getting your installed ports out of the snapshot in the meantime.
comment:5 Changed 6 weeks ago by jmroot (Joshua Root)
So just to confirm, port version shows that you are running MacPorts 2.12.4?
To work with a snapshot, first run port snapshot --list and note the ID number of the snapshot you want. You can show the difference between a snapshot and your currently installed ports with port snapshot --diff <ID>. You can export a snapshot in JSON format with port snapshot --export <ID>.
comment:6 Changed 6 weeks ago by jmroot (Joshua Root)
Could you please also generate debug output by running sudo port -d restore --last and attach the output to the ticket?
comment:7 Changed 5 weeks ago by jmroot (Joshua Root)
| Cc: | jmroot added |
|---|

What version of MacPorts do you have installed (
port version)? This error should be fixed in 2.12.4.