failed to initialise the auth provider
kavol opened this issue · comments
Describe the bug
After providing the workspace name, opening the browser and logging in, the browser stays open and I get an error after a few minutes.
To Reproduce
Steps to reproduce the behavior:
- ./slackdump -download -export dump id
Expected behavior
conversation exported into dump
Output
Slackdump dev (commit: placeholder) built on: 2077
? Enter Slack Workspace Name: ourworkspacename
Please login in the browser...
BEWARE: your OS is not officially supported by Playwright; downloading fallback build.
2023/12/21 15:43:14 failed to initialise the auth provider: Timeout 300000.00ms exceeded.
Desktop (please complete the following information):
- OS: Fedora 39
Additional context
It worked until some web layout change (adding a sidebar).
Hey @kavol,
I can see the playwright (that slackdump uses to login) is complaining about the OS, it may be too new for it, and this is what might be causing it. Were you ever able to use slackdump since you upgraded to Fedora 39?
have you tried with an alternative browser?
For example:
./slackdump -download -browser chromium -export dump id
The command above will use chromium instead of Firefox.
Hey, can you also try the v2.4.7? It has the updated browser driver.
I can see the playwright (that slackdump uses to login) is complaining about the OS, it may be too new for it, and this is what might be causing it. Were you ever able to use slackdump since you upgraded to Fedora 39?
well, yes, I've upgraded on 2023-10-09 and my dumps seem to have stopped working after 2023-11-10 ... this is a month, and since Slack needs relogin every two weeks (which I'm constantly forgetting about :-( ) I must have logged in succesfully on F39 at least once
have you tried with an alternative browser?
For example:
./slackdump -download -browser chromium -export dump id
the thing is that it starts Firefox in this case too ... looks like another issue
Hey, can you also try the v2.4.7? It has the updated browser driver.
I've pulled from git, ran make, now I can try -browser-reinstall which downloads chromium if specified, but still it runs Firefox instead
As you seem to have the dev environment correctly setup, to help me diagnose this, could you do the following?
In the local clone of the slackdump repo, run the following:
- Checkout the i251-take2 branch:
git fetch && git checkout i251-take2
- Run auth-reset:
go run ./cmd/slackdump -auth-reset
- Run the following command:
go run ./cmd/slackdump -w <your workspace name> -list-users -browser-reinstall -browser chromium -v
It will try and list the users in the workspace specified in -w
flag, attempt to reinstall the browser, and will use chromium. -v
enables the verbose output.
Could you please copy and paste the output in this thread, up until retrieving data
message, i.e.:
[9:32:29] 0:wp/_github/slackdump (i251-take2)> go run ./cmd/slackdump -w ora600 -list-users -browser-reinstall -browser chromium -v
Slackdump dev (commit: placeholder) built on: 2077
2023/12/23 09:32:32 Reinstalling chromium
2023/12/23 09:32:32 client.go:251: reinstalling browser: chromium
2023/12/23 09:32:32 client.go:256: removing /Users/rustam/Library/Caches/ms-playwright-go/1.40.1
2023/12/23 09:32:32 client.go:262: reinstalling /Users/rustam/Library/Caches/ms-playwright-go/1.40.1
2023/12/23 09:32:32 Downloading driver to /Users/rustam/Library/Caches/ms-playwright-go/1.40.1
2023/12/23 09:32:36 Downloaded driver successfully
2023/12/23 09:32:36 Downloading browsers...
2023/12/23 09:32:37 Downloaded browsers successfully
2023/12/23 09:32:37 client.go:57: browser=chromium, timeout=300000.000000
2023/12/23 09:32:40 client.go:126: opening browser URL=https://ora600.slack.com
2023/12/23 09:33:10 slackdump.go:116: > checking user cache...
2023/12/23 09:33:10 dump.go:182: retrieving data...
feel free to remove all PII, such as workspace name, and your home directory name, I'm just wondering at what point the browser is going to be reset — I'm wondering if that's the fallback behaviour, because when I request chromium, it opens Chromium.
bad luck ... but now it opens Chromium at least
$ go run ./cmd/slackdump -w workspace -list-users -browser-reinstall -browser chromium -v
Slackdump dev (commit: placeholder) built on: 2077
2024/01/02 13:19:05 Reinstalling chromium
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu20.04-x64.
2024/01/02 13:19:52 client.go:122: opening browser URL=https://workspace.slack.com
2024/01/02 13:25:01 failed to initialise the auth provider: timeout:Timeout 300000.00ms exceeded.
exit status 1
oh, right after copying the output, I have noticed that the checkout went wrong
error: pathspec 'i251-take2' did not match any file(s) known to git
well ... after updating to latest master, it works for me again ... I guess this could be closed then?
Yes, I merged i251-take2 into master. Thanks for the feedback on master, I was actually wondering if it works on other machines, but mine - replaced playwright with rod library.