FlareSolverr: Error - Unsupported platform: freebsd

Instruction on how to enable debug and html trace

(Applicable to Docker only?)

Environment

FlareSolverr Version: v1.2.3

Docker: No

OS: FreeBSD 11.4 (Jail under TrueNAS Core 12.0-U2.1 (FreeBSD 12.2))

Last Working FlareSolverr Version: N/A

Are you using a proxy or VPN?: Yes - VPN (at router level)

Using Captcha Solver: No

If using captcha solver, which one: N/A

Mono Version: 6.8.0.105 Jackett Version: v0.17.617 Node Version: v15.5.1 npm Version: 6.14.8

Description

Installed node & npm through native pkg commands. npm install fails. Missing fsevents. Might be other major issues here? Forced installation with -f. npm run build, then, npm start. Successfully connects from jackett, however, all related indexer tests fail due to Unsupported platform Error.

Logged Error Messages

root@:/usr/local/share/flaresolverr # npm start

flaresolverr@1.2.3 start /usr/local/share/flaresolverr node ./dist/index.js

2021-03-05T03:00:19.003Z INFO REQ-0 FlareSolverr v1.2.3 listening on http://0.0.0.0:8191 2021-03-05T03:00:28.295Z INFO REQ-1 Incoming request: POST /v1 2021-03-05T03:00:28.296Z INFO REQ-1 Params: {“maxTimeout”:60000,“cmd”:“request.get”,“url”:“https://www.7torrents.cc/search?query=+&sort=created",“userAgent”:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”} Error: Unsupported platform: freebsd at Object.assert (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/helper.js:29:15) at BrowserFetcher.setPlatform (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/BrowserFetcher.js:119:22) at new BrowserFetcher (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/BrowserFetcher.js:103:14) at resolveExecutablePath (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/Launcher.js:488:28) […]

2021-03-05T03:20:02.126Z INFO REQ-47 Incoming request: POST /v1 2021-03-05T03:20:02.127Z INFO REQ-47 Params: {“maxTimeout”:60000,“cmd”:“request.get”,“url”:“https://apibay.org/precompiled/data_top100_recent.json",“userAgent”:"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36”} Error: Unsupported platform: freebsd at Object.assert (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/helper.js:29:15) at BrowserFetcher.setPlatform (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/BrowserFetcher.js:119:22) at new BrowserFetcher (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/BrowserFetcher.js:103:14) at resolveExecutablePath (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/Launcher.js:488:28) at ChromeLauncher.launch (/usr/local/share/flaresolverr/node_modules/puppeteer/lib/Launcher.js:57:53) at async PuppeteerExtra.launch (/usr/local/share/flaresolverr/node_modules/puppeteer-extra/dist/index.cjs.js:129:25) at async Object.create (/usr/local/share/flaresolverr/dist/session.js:49:27) at async browserRequest (/usr/local/share/flaresolverr/dist/routes.js:138:11) at async request.get (/usr/local/share/flaresolverr/dist/routes.js:189:9) at async Object.Router [as default] (/usr/local/share/flaresolverr/dist/routes.js:202:16) 2021-03-05T03:20:02.127Z ERROR REQ-47 Unsupported platform: freebsd

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (14 by maintainers)

Most upvoted comments

And here it is:

https://gist.github.com/Zamana/68060da614909ed3531acbda6154f67d

It took me HOURS to discover the trick that makes FlareSolverr works: the double installation of puppeteer. Ignore it and see what happens…

If anybody find out why this is necessary, please, post here.

I’m also open to suggestions regarding my guide. Feel free to send them.

By the way, English is not my native idiom, so I’m open to grammar and spelling corrections too.

Enjoy.

image

Feel free to create and paste my instructions in the Wiki if you wish.

I’m glad you like it.

I can’t believe that I did this, but yes: I guess that I build FlareSolverr in a TrueNAS Core jail, right now, by following 3 or 4 instructions gathered here and there around the internet.

Anyway I needed to install chromium in my jail. 157 (one hundred and fifty seven) packages installed, ladies and gentleman. I’m feeling like using an atomic bomb just to kill an ant. One ant.

Tomorrow I’ll compile and post here my recipe to let others know how I did it.

Thanks for all the info.

@Zamana Thank you! I invited you to the @FlareSolverr/collaborators team so you can edit the wiki if required. @ilike2burnthing thank you for all! You are maintainer now just in case someone shoots me or something like that. 😄

@Zamana What TrueNAS version is your jail on? I’m running into the exact same problem as @CraXyOW3.

TrueNAS-12.0-U7

I’ll try to document how I did this weekend.

I was able to install/run FlareSolverr in a TrueNAS Core jail with this (csh environment):

pkg install node14 npm-node14 git-tiny # Be prepared for 157 packages!!! pkg install chromium

cd /usr/local/share git clone https://github.com/FlareSolverr/FlareSolverr.git cd FlareSolverr

npm install puppeteer npm install jest npm install

setevnv PUPPETEER_EXECUTABLE_PATH /usr/local/bin/chrome setenv HOST 0.0.0.0 npm start

I’ll try to build again in the next few days in order to filter what’s really necessary.

Anyway FlareSolverr is unable to bypass 1337x CloudFare shield, which was the only reason that brought me here…

Apologies; I never got notified about your comments or tags for some reason. Here is a rough edit with the above suggestions: https://github.com/FroggMaster/FlareSolverr/wiki/Installing-FlareSolverr-in-FreeBSD,-FreeNAS-or-TrueNAS-jail

And here it is:

https://gist.github.com/Zamana/68060da614909ed3531acbda6154f67d

It took me HOURS to discover the trick that makes FlareSolverr works: the double installation of puppeteer. Ignore it and see what happens…

If anybody find out why this is necessary, please, post here.

I’m also open to suggestions regarding my guide. Feel free to send them.

By the way, English is not my native idiom, so I’m open to grammar and spelling corrections too.

Enjoy.

Just when i was thinking about giving up and just wait until Scale becomes mature. This comes along, THANKS and GJ!

Thanks Zamana! I got FlareSolverr working and creating FreeNAS plugin for it.

I will do some testing and push it to the iocage-plugin-index repo

Running this command from the FreeNAS command line will install and setup FlareSolverr plugin.

iocage fetch -P flaresolverr -g https://github.com/SumGuyV5/iocage-plugin-testing.git --update

@Zamana What TrueNAS version is your jail on? I’m running into the exact same problem as @CraXyOW3.

Was lazy and did a “winmerge”, compared them and i had an identical setup filewise. I had to add npm run build also for building the “dist” folder that i was missing, now i am getting “unsupported platform” again on puppeteer. Even tried to edit the build-binaries file and add/replace so that freebsd was in there as someone said on puppeteer repo. But to no result 😕