Closed Samir-Rashid closed 2 months ago
Hello I am having the same issue.
What I tried:
sudo sysctl -w kernel.unpriveleged_userns_clone=1
and:
checked that user.max_user_namespaces
has non zero value
neither of these worked
What I will try: Setting up a VM running openSUSE or some other distro with a different kernel and trying to run from there
@kyle-sutherland before I install the VM, have you had any luck reproducing this on another OS?
Works on my
Linux rpi5 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
I'll see if there's rod update available.
I just stumbled on to this on current 24.04; I don't quite understand the issue, but had different output between the sudo and non-sudo attempts I will share modifed exerpts below
`$ ./slackdump -f -export 240705_std.zip -export-type standard Slackdump 2.5.8 (commit: 8bcedfa247d4b93480c04dac3510082b8e206813) built on: 2024-04-07T09:46:00Z 2024/07/06 10:14:29 failed to initialise the auth provider: browser automation error: failed to launch: [launcher] Failed to get the debug url: [113626:113626:0706/101428.173713:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
Crash keys: "switch-22" = "--user-data-dir=/tmp/rod/user-data/4e8b7f94106ce74e" "switch-21" = "--use-mock-keychain" "switch-20" = "--remote-debugging-port=0" "switch-19" = "--no-startup-window" "switch-18" = "--no-first-run" "switch-17" = "--metrics-recording-only" "switch-16" = "--force-color-profile=srgb" "switch-15" = "--enable-automation" "switch-14" = "--disable-sync" "switch-13" = "--disable-renderer-backgrounding" "switch-12" = "--disable-prompt-on-repost" "switch-11" = "--disable-popup-blocking" "switch-10" = "--disable-ipc-flooding-protection" "switch-9" = "--disable-hang-monitor" "switch-8" = "--disable-dev-shm-usage" "switch-7" = "--disable-default-apps" "switch-6" = "--disable-component-extensions-with-background-pages" "switch-5" = "--disable-client-side-phishing-detection" "switch-4" = "--disable-breakpad" "switch-3" = "--disable-backgrounding-occluded-windows" "switch-2" = "--disable-background-timer-throttling" "switch-1" = "--disable-background-networking" "num-switches" = "24" "commandline-disabled-feature-2" = "TranslateUI" "commandline-disabled-feature-1" = "site-per-process" "commandline-enabled-feature-2" = "NetworkServiceInProcess" "commandline-enabled-feature-1" = "NetworkService" "osarch" = "x86_64" "pid" = "113626" "ptype" = "browser" ` Using sudo avoided the crash and pulled down a local chromium snapshot;
$ sudo ./slackdump -f -export 240705_std.zip -export-type standard [sudo] password for imac: Slackdump 2.5.8 (commit: 8bcedfa247d4b93480c04dac3510082b8e206813) built on: 2024-04-07T09:46:00Z [launcher.Browser]2024/07/06 10:16:39 Download: https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1131657/chrome-linux.zip [launcher.Browser]2024/07/06 10:16:39 Progress: 00% [launcher.Browser]2024/07/06 10:16:40 Progress: 18% [launcher.Browser]2024/07/06 10:16:41 Progress: 42% [launcher.Browser]2024/07/06 10:16:42 Progress: 62% [launcher.Browser]2024/07/06 10:16:43 Progress: 89% [launcher.Browser]2024/07/06 10:16:43 Unzip: /root/.cache/rod/browser/chromium-1131657 [launcher.Browser]2024/07/06 10:16:43 Progress: 00% [launcher.Browser]2024/07/06 10:16:44 Progress: 30% [launcher.Browser]2024/07/06 10:16:45 Progress: 68% [launcher.Browser]2024/07/06 10:16:46 Downloaded: /root/.cache/rod/browser/chromium-1131657 2024/07/06 10:16:47 failed to initialise the auth provider: browser automation error: failed to launch: [launcher] Failed to get the debug url: [113726:113726:0706/101646.256670:ERROR:zygote_host_impl_linux.cc(100)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
I have an older headless 23.10 instance I can use for the time being if my provider.bin is still valid. But I am not keen to roll over the 30 day history without a backup if that does not work.
Is there an auth method / option combo that works around this issue on 24.04? (Assuming not, but please post if so).
@ianbmacdonald
Merged the update into v2
branch. Are you able to compile and try and run it, or would you rather wait until I fix other stuff and release v2.5.9?
I'll try to compile and run that. Thanks a bunch
On Sun, Jul 7, 2024, 00:56 Rustam @.***> wrote:
Merged the update into v2 branch. Are you able to compile and try and run it, or would you rather wait until I fix other stuff and release v2.5.9?
— Reply to this email directly, view it on GitHub https://github.com/rusq/slackdump/issues/293#issuecomment-2212345945, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARC7IKVTK5NTZ2UDVA23UJDZLDRA5AVCNFSM6AAAAABJ5JS7ZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJSGM2DKOJUGU . You are receiving this because you were mentioned.Message ID: @.***>
Not paying attention, dropped my comment on https://github.com/rusq/slackdump/pull/298
Okay, it works on the v2 branch with -legacy-browser
@kyle-sutherland thanks for checking! So, it works with -legacy-browser
but doesn't work with the rod one?
@Samir-Rashid, just read in your initial message - you can't go with just the token, unless it's the legacy/application/bot token, xoxc-
token will always require -c
parameter to be set, as client tokens don't work without cookies.
I also had success with the v2 branch using -legacy-browser. I did accidentally clone the v3/master initially, and it did not work using -legacy-browser
So, looks like legacy is not so legacy, after all, huh? 😂
Could someone on the problematic OS confirm that -legacy-browser=false also works please (uses rod)?
If it works, I'll push v2.5.9
Releasing 2.5.9
Describe the bug The tool fails to launch auth on Ubuntu 24.04. It works on 22.04.4. No authentication method works as the browser will not launch.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the tool to work as it does on Ubuntu 22.
Output
The relevant info is on the first line of the error.
Desktop:
Additional context Some additional things which did not work: According to slackdump -h,
but the default behavior is using chromium and
./slackdump -browser=firefox
still tries to launch chromium.When using
-legacy-browser
, firefox launches but the puppeteer automation does not work at firefox remains on a blank page and I cannot navigate.Furthermore, trying to set the token does not work.
-t
and settingSLACK_TOKEN=...
still try to do interactive auth process. These try to launch the browser, which crashes as described above.