Bench Update Issue (.well-known does not exist)

Got a rather terse error doing a bench update:

> bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling erpnext
From https://github.com/frappe/erpnext
 * branch            master     -> FETCH_HEAD
Already up-to-date.
INFO:bench.app:pulling ni_dark_theme
From https://github.com/RandyLowery/ni_dark_theme
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
.well-known does not exist

Could not figure out where to start looking to debug this one…
Thanks

update on some poking around:

“bench update --requirements” works fine
“bench update --pull” works fine
“bench update --patch” fails as above.

any way to get more verbose output on bench update --patch?

Does not seem to be something related to bench

Quite correct, apparently I need to take better notes when doing my admin duties :slight_smile:

For anyone else that hits this (which is unlikely), what happened was:

I was updating some ssl certs on the same server via letsencrypt, and made a misstep or two during the setup and it put a directory in ~/frappe-bench/ called ‘.well-known’ which is used for verification purposes. I was unaware of that directory, and when running update, it tried to migrate it as an actual site, but the site was not listed, so threw that error.

Thanks for your note Eric I hit the same snag while upgrading to v11.

I moved that directory out of the way as I used DNS rather than HTTP challenge

frappe@ubuntu:~/frappe-bench$ find . -name .well-known | xargs ls -al
total 12
drwxr-xr-x 3 root   root   4096 Feb 28 16:54 .
drwxr-xr-x 6 frappe frappe 4096 May 17 10:54 ..
drwxr-xr-x 2 root   root   4096 Feb 28 16:54 acme-challenge