-
-
Notifications
You must be signed in to change notification settings - Fork 261
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
Error during migration (Espanso v2.1.4-beta running on Ubuntu 20.04) #1051
Comments
Hey @mattnolan001, I'm sorry you experienced this problem! Could you please post the output of Also, it would be super helpful if you could run Cheers :) |
Log: 16:07:21 [service(22084)] [INFO] reading configs from: "/home/matt/.config/espanso" I saw the same thing running from the command line. I've since manually recreated the folder structure for v2.1.4beta and everything runs fine. Fantastic program by the way! Matt |
@mattnolan001 Thanks! It seems espanso is unable to find your document directory. Could you please run the following in a terminal and post the output here? :)
Related code: https://github.com/federico-terzi/espanso/blob/master/espanso/src/cli/migrate.rs#L181 |
Neither returns anything. |
@mattnolan001 I see! thanks Could you please try running the following command (make sure to double-check the Documents directory I've inserted below):
|
@federico-terzi Thanks for the tip!
I am having the same issue, so I tried this, but it gave the same error message. I did not have a |
Same error on Arch $ ls -ld ~/Documents
drwxr-xr-x 1 n8henrie n8henrie 16 May 19 2021 /home/n8henrie/Documents
$ espanso migrate
ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
$ espanso log
20:04:46 [ INFO] espanso version 0.7.3
20:04:46 [ INFO] using config path: /home/n8henrie/.config/espanso
20:04:46 [ INFO] using package path: /home/n8henrie/.local/share/espanso/packages
20:04:46 [ INFO] spawning worker process...
20:04:46 [ INFO] Binded to IPC unix socket: /home/n8henrie/.local/share/espanso/espanso.sock
20:04:46 [ INFO] initializing worker process...
20:04:46 [ INFO] Binded to IPC unix socket: /home/n8henrie/.local/share/espanso/worker.sock
20:04:46 [ INFO] worker is running!
20:04:46 [ INFO] watching for changes in path: /home/n8henrie/.config/espanso
07:51:31 [migrate(25796)] [INFO] reading configs from: "/home/n8henrie/.config/espanso"
07:51:31 [migrate(25796)] [INFO] reading packages from: "/home/n8henrie/.local/share/espanso/packages"
07:51:31 [migrate(25796)] [INFO] using runtime dir: "/home/n8henrie/.local/share/espanso"
07:51:31 [migrate(25796)] [WARN] espanso is reading the configuration using compatibility mode, thus some features might not be available
07:51:31 [migrate(25796)] [WARN] you can migrate to the new configuration format by running 'espanso migrate' in a terminal
07:51:31 [migrate(25796)] [INFO] --- MIGRATION STARTED ---
07:51:31 [migrate(25796)] [ERROR] thread 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:51:31 [migrate(25796)] [ERROR] ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:51:52 [migrate(25880)] [INFO] reading configs from: "/home/n8henrie/.config/espanso"
07:51:52 [migrate(25880)] [INFO] reading packages from: "/home/n8henrie/.local/share/espanso/packages"
07:51:52 [migrate(25880)] [INFO] using runtime dir: "/home/n8henrie/.local/share/espanso"
07:51:52 [migrate(25880)] [WARN] espanso is reading the configuration using compatibility mode, thus some features might not be available
07:51:52 [migrate(25880)] [WARN] you can migrate to the new configuration format by running 'espanso migrate' in a terminal
07:51:52 [migrate(25880)] [INFO] --- MIGRATION STARTED ---
07:51:52 [migrate(25880)] [ERROR] thread 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:51:52 [migrate(25880)] [ERROR] ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:55:15 [migrate(27459)] [INFO] reading configs from: "/home/n8henrie/.config/espanso"
07:55:15 [migrate(27459)] [INFO] reading packages from: "/home/n8henrie/.local/share/espanso/packages"
07:55:15 [migrate(27459)] [INFO] using runtime dir: "/home/n8henrie/.local/share/espanso"
07:55:15 [migrate(27459)] [WARN] espanso is reading the configuration using compatibility mode, thus some features might not be available
07:55:15 [migrate(27459)] [WARN] you can migrate to the new configuration format by running 'espanso migrate' in a terminal
07:55:15 [migrate(27459)] [INFO] --- MIGRATION STARTED ---
07:55:15 [migrate(27459)] [ERROR] thread 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:55:15 [migrate(27459)] [ERROR] ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:55:50 [migrate(27701)] [INFO] reading configs from: "/home/n8henrie/.config/espanso"
07:55:50 [migrate(27701)] [INFO] reading packages from: "/home/n8henrie/.local/share/espanso/packages"
07:55:50 [migrate(27701)] [INFO] using runtime dir: "/home/n8henrie/.local/share/espanso"
07:55:50 [migrate(27701)] [WARN] espanso is reading the configuration using compatibility mode, thus some features might not be available
07:55:50 [migrate(27701)] [WARN] you can migrate to the new configuration format by running 'espanso migrate' in a terminal
07:55:50 [migrate(27701)] [INFO] --- MIGRATION STARTED ---
07:55:50 [migrate(27701)] [ERROR] thread 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:55:50 [migrate(27701)] [ERROR] ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:57:09 [migrate(28497)] [INFO] reading configs from: "/home/n8henrie/.config/espanso"
07:57:09 [migrate(28497)] [INFO] reading packages from: "/home/n8henrie/.local/share/espanso/packages"
07:57:09 [migrate(28497)] [INFO] using runtime dir: "/home/n8henrie/.local/share/espanso"
07:57:09 [migrate(28497)] [WARN] espanso is reading the configuration using compatibility mode, thus some features might not be available
07:57:09 [migrate(28497)] [WARN] you can migrate to the new configuration format by running 'espanso migrate' in a terminal
07:57:09 [migrate(28497)] [INFO] --- MIGRATION STARTED ---
07:57:09 [migrate(28497)] [ERROR] thread 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
07:57:09 [migrate(28497)] [ERROR] ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
$ XDG_DOCUMENTS_DIR=/home/n8henrie/Documents espanso migrate
ERROR: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181
$ uname -a
Linux machine 5.17.1-arch1-1 #1 SMP PREEMPT Mon, 28 Mar 2022 20:55:33 +0000 x86_64 GNU/Linux |
After going down a bit of a rabbit hole with the Footnotes |
@n8henrie Thank you for the investigation! I'd say we should try falling back to another directory if that one is not available, I'll add it to the roadmap |
To be clear, that directory was available the whole time, but the crate you're depending on didn't know how to find it without those additional steps. |
I'm also seeing this on Ubuntu 18.04 and none of the suggestions above seem to help. |
Given this Issue is now quite old, and I hope most people have migrated to v2, can it be closed as we're unlikely to do further work on it? |
Probably reasonable. Can always point people to this issue for the workaround (at least for arch). |
When I start the new Espanso (v2.1.4-beta running on Ubuntu 20.04) and then choose 'Backup and migrate' I receive an error. The log reads: 'main' panicked at 'unable to generate backup directory': espanso/src/cli/migrate.rs:181'. When I continue running v2.1.4 in compatibiltiy mode it seems to run fine.
The text was updated successfully, but these errors were encountered: