Skip to content

Commit 6acd1f3

Browse files
authored
docs: add libsecret-1.so.0 troubleshooting (Azure#530)
* docs: add libsecret-1.so.0 troubleshooting
1 parent 566fb37 commit 6acd1f3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/www/docs/contribute/99-troubleshooting.md

+19
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,23 @@ sidebar_position: 99
1010
This page lists frequently-asked questions and solutions to help troubleshoot common issues that may be encountered when building or testing the project.
1111
:::
1212

13+
## `libsecret-1.so.0: cannot open shared object file: No such file or directory`
14+
15+
### Context
16+
17+
When using `swa login`, the flag `--use-keychain` is enabled by default because we encrypt and store your credentials in your native Keychain (aka. the built-in password manager of your operating system). This operation depends on a system dependency called `libsecret`. If your system doesn't come bundled `libsecret` (most systems do provide it by default), you will then encounter this error.
18+
19+
### Why do I need to `swa login`?
20+
21+
In order to be able to automatically deploy your app to your Azure Static Web Apps instance, we need a Deployment Token. To automate that operation and avoid asking the users to manually find that deployment token, which can take several steps, we provide a built-in and convenient option to do that: `swa login`.
22+
23+
### Solutions
24+
25+
In order to avoid this issue, you have a few options:
26+
1. [Manually install](https://www.google.com/search?q=instal+libsecret) `libsecret` by adding it to your Docker image or your system (recommended)
27+
2. Disable Keychain access using `--no-use-keychain`. Doing so won't store and remember your credentials anymore, and you will have to interactively log in again each time you run `swa login`
28+
3. Manually provide the Deployment Token for your current project (see [SWA CLI docs](https://azure.github.io/static-web-apps-cli/docs/use/deploy#51-deployment-token)). You will also need to provide `--app-name` and `--resource-group-name`
29+
4. Manually provide `--client-id`, `--client-secret`, `--app-name` and `--resource-group-name`.
30+
31+
1332
---

0 commit comments

Comments
 (0)