File permission flags are being lost when uploaded to volume through Filebrowser

I am trying to upload some files that my Browserless image needs to access to a volume via Filebrowser, but I am running into issues. They need 755 permissions and I think that when I upload them to the volume with Filebrowser, its losing that (I've modified these on my computer before uploading). I tried modifying the permissions through the start command but it got stuck on "deploying".
110 Replies
Brody
Brody5mo ago
it got stuck on deploying either because railway's ongoing issue or your start command was wrong and filebrowser never started
celebrations
celebrationsOP5mo ago
my start command was chmod 755 /usr/src/app/chrome-extensions/chrome-extension (I forgot to mention that after i uploaded the folder to the volume, i disconnected it and reconnected it to the browserless instance at /usr/src/app/chrome-extensions) The big picture issue is getting the files onto that volume with the correct permission flags I was able to make a custom start command with ls -l dir in front of teh real start command to see the permissions, and they were in fact unchanged (correct). I'm now trying to find what the issue is.
Brody
Brody5mo ago
what is the actual error you are getting though
celebrations
celebrationsOP5mo ago
I have a chrome extension that i am trying to use with a Browserless puppeteer instance. It is working when I run it locally using chrome on my laptop with the extension. It is also working when i use browserless with the extension added on a Browserless docker image. It isn't working when I pushed it to railway and have teh extension loaded onto the volume. im not receiving a specific error, the extension just isnt working. Previous issues ive run into that have had this same result is the extension not having drwxr-xr-x permissions, however i've confirmed that it has this on the volume.
Brody
Brody5mo ago
are you aware the template deploys browserless v1?
celebrations
celebrationsOP5mo ago
no i was not so would the best solution be to deploy the browserless instance myself and try? is there an advantage to sticking with v1?
Brody
Brody5mo ago
they dropped support for some library so i feel like that makes the template limited in its use if i went with v2 are you running v2 locally?
celebrations
celebrationsOP5mo ago
yes as opposed to another approach to hosting it.
Brody
Brody5mo ago
is using v1 out of the question for you?
celebrations
celebrationsOP5mo ago
it is due to the fact that I cannot figure out how i would fix this issue of extensions not working. I want to try and isolate the problem as much as i can
Brody
Brody5mo ago
use v1 locally and get extensions working?
celebrations
celebrationsOP5mo ago
that’s another option yes but i would prefer to not limit myself to new features as many of them would be useful for my project and they’re only available on v2. if i have to find workarounds that’s also fine
Brody
Brody5mo ago
have you taken a look at repo that browserless deploys from?
celebrations
celebrationsOP5mo ago
yes and that’s what i’m gonna try and deploy
Brody
Brody5mo ago
thats already what is deploying
celebrations
celebrationsOP5mo ago
i thought it was deploying v1
Brody
Brody5mo ago
it is
celebrations
celebrationsOP5mo ago
GitHub
GitHub - browserless/browserless: Deploy headless browsers in Docke...
Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses. - browserless/browserless
celebrations
celebrationsOP5mo ago
im talkin ab that repo which is the updated one
Brody
Brody5mo ago
you will lose support for private networking
celebrations
celebrationsOP5mo ago
ooh thats a good point theres still the token authenticaiton so other than latency security wont be an issue i dont think
Brody
Brody5mo ago
egress fees
celebrations
celebrationsOP5mo ago
oh ic but do you think they would be less than if i just hosted on a vps? and i dont think that it would take much bandwidth
Brody
Brody5mo ago
i think you should use v1, if you have a good enough usecase for v2, i will make you a v2 template
celebrations
celebrationsOP5mo ago
i definitely dont think ill need a v2 tempate
Brody
Brody5mo ago
me neither
celebrations
celebrationsOP5mo ago
i can always use teh docker image and deploy that for v2 if needed
Brody
Brody5mo ago
you will lose private networking support
celebrations
celebrationsOP5mo ago
right but other than a small increase in egress fees it won't be an issue right and i wasnt planning on using private networking for the code anyways actualy since i was gonna use cloud run
Brody
Brody5mo ago
never say small egress
celebrations
celebrationsOP5mo ago
because i dont need it to be running 24/7 and its within the free tier i believe
Brody
Brody5mo ago
use app sleeping on railway then
celebrations
celebrationsOP5mo ago
i need it to scale though
Brody
Brody5mo ago
replicas
celebrations
celebrationsOP5mo ago
idk how to use those 😭 but its an equivalent? i can def use them
Brody
Brody5mo ago
scale in what direction?
celebrations
celebrationsOP5mo ago
horizontally
Brody
Brody5mo ago
why is that
celebrations
celebrationsOP5mo ago
because of the ohh shoot by using browserless i dont need to anymore previously it was because of how it wasnt good to run puppteer scripts that would have concurrent runs on one environment but browserless may have removed the need for that either way i need to fix this issue with extensions first
Brody
Brody5mo ago
run v1 locally, get extensions working
celebrations
celebrationsOP5mo ago
thats what ill do if this doenst work i just want to try and get it working as easily as possible first
Brody
Brody5mo ago
v1 locally is the way to go for sure
celebrations
celebrationsOP5mo ago
okay just because of how important that egress fee is?
Brody
Brody5mo ago
it could be pennys, it could be dollars, i dont want to see another help thread saying my egress is high can i have a refund 😆
celebrations
celebrationsOP5mo ago
lmao aight why can't i use private networking just on the docker container
Brody
Brody5mo ago
browserless itself does not support ipv6
celebrations
celebrationsOP5mo ago
gotcha ooooh its working i think yep its working
Brody
Brody5mo ago
v1 locally?
celebrations
celebrationsOP5mo ago
no v2 docker ima do this now the reason im hesitatnt though is because it is doing it in the v2 version using chromium's default way to use extensions, so i'm not sure what other possible way there would be to do it if that doesnt work. Browserless definitely doesn't have support for that. it could be the way that the launch args are sent to the browserless instance though..
Brody
Brody5mo ago
if you cant make it work with v1 locally i will make you a browserless v2 template but please try with v1 first
celebrations
celebrationsOP5mo ago
alright
Brody
Brody5mo ago
do we got a deal?
celebrations
celebrationsOP5mo ago
yep thats actually great because i think you'll be able to help me find out how to do this in v1 very quickly
Brody
Brody5mo ago
sounds good, keep me updated never done this before
celebrations
celebrationsOP5mo ago
have you seen --args been used with chromium before in any capacity
No description
celebrations
celebrationsOP5mo ago
whether its selenium or puppeteer or anything else
celebrations
celebrationsOP5mo ago
No description
Brody
Brody5mo ago
yes, you need those to run as root
celebrations
celebrationsOP5mo ago
right so in v2 i use dynamic launch args to pass those over and specify the extension location
celebrations
celebrationsOP5mo ago
Launch Options | Browserless.io
Currently, Browserless V2 is available in production via two domains: production-sfo.browserless.io and production-lon.browserless.io
celebrations
celebrationsOP5mo ago
No description
celebrations
celebrationsOP5mo ago
& they are added to the end of the wss endpoint i need to find out how to do this in the first version
Brody
Brody5mo ago
does v1 even support that?
celebrations
celebrationsOP5mo ago
i dont think they do using dynamic launch args
celebrations
celebrationsOP5mo ago
because 1. it didnt work (and it does on v2 without changing the code) and 2. theres this text on the docs page.
No description
celebrations
celebrationsOP5mo ago
im gonna look into it thuogh i found something related to building browserless that i dont understand, you might though since you made the template
celebrations
celebrationsOP5mo ago
GitHub
GitHub - browserless/browserless at v1
Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses. - GitHub - browserless/browserless at v1
celebrations
celebrationsOP5mo ago
#Webdriver (selenium)
Brody
Brody5mo ago
I didn't build anything
celebrations
celebrationsOP5mo ago
No description
celebrations
celebrationsOP5mo ago
okay well the reason i don't understand this code is that in browserless, you dont use selenium or anything. you just connect to the WS actually i think thats how it would be done in selenium
Brody
Brody5mo ago
selenium is just another library like puppeteer
celebrations
celebrationsOP5mo ago
right yeah ive used it im gonna keep looking into how to specify those args DEFAULT_LAUNCH_ARGS is something i came across that was deprecated in v2 it probably won't be in v1 im gonna try it
celebrations
celebrationsOP5mo ago
Okay you might be able to help with this part. Its passed in alongside an array of strings args. Will it matter if i just put this array in the environmental variable editor, will it be parsed as a string?
No description
Brody
Brody5mo ago
yeah that should work fine
celebrations
celebrationsOP5mo ago
alr i have to go for a bit but i really appreciate it
Brody
Brody5mo ago
no problem!
celebrations
celebrationsOP5mo ago
I think it will work. I can’t try it right now because i’m on my phone but it’s marked as deprecated on the v2 migration
celebrations
celebrationsOP5mo ago
GitHub
browserless/MIGRATION-2.0.md at main · browserless/browserless
Deploy headless browsers in Docker. Run on our cloud or bring your own. Free for non-commercial uses. - browserless/browserless
Brody
Brody5mo ago
oh yeah
Drop support for Selenium and Webdriver.
thats why im still using v1
celebrations
celebrationsOP5mo ago
aight im about to try it It's accepting the launch arguments but the chrome extension isnt being loaded it acknowledges them in the info statement when the browserless service starts
celebrations
celebrationsOP5mo ago
someone else identified the issue previously for v1 and a solution was never posted: https://github.com/browserless/browserless/issues/799
GitHub
Support Chrome Extensions · Issue #799 · browserless/browserless
Is your feature request related to a problem? Please describe. I want to be able to install chrome extensions in the running chrome browser. Describe the solution you'd like I would like to be ...
Brody
Brody5mo ago
well that's unfortunate
celebrations
celebrationsOP5mo ago
yeah ive been trying for ab 4 hours now lmk if u make a v2 temp
Brody
Brody5mo ago
good timing
celebrations
celebrationsOP5mo ago
whys that
Brody
Brody5mo ago
working on it right now
celebrations
celebrationsOP5mo ago
amazing
Brody
Brody5mo ago
let me know if there are any issues
celebrations
celebrationsOP5mo ago
private endpoitns are supposed to work right?
Brody
Brody5mo ago
yes private networking is supported
celebrations
celebrationsOP5mo ago
apparently not its crashing
celebrations
celebrationsOP5mo ago
this error which is caused by a ws not workign correctly
No description
Brody
Brody5mo ago
are those logs from your app, or the browserless service
celebrations
celebrationsOP5mo ago
No description
celebrations
celebrationsOP5mo ago
app let me make sure its using the env varibale rq cuz i have it on a gh branch
Brody
Brody5mo ago
that error doesnt really even look like it has anything to do with browserless
celebrations
celebrationsOP5mo ago
im testing it using the public endpoint but im 90% sure that this is just what happens when its a bad endpoint
Brody
Brody5mo ago
what client lib?
celebrations
celebrationsOP5mo ago
puppeteer wait hmm its happenign with public as well this is really weird 1 sec
Brody
Brody5mo ago
okay well to be fair i didnt test it
celebrations
celebrationsOP5mo ago
im gonna test it with the v1 endpoint Okay it works when i use v1 public so its def an issue with the endpoint somehow
Brody
Brody5mo ago
okay ill test the v2 template with puppetter
celebrations
celebrationsOP5mo ago
v1 public & private work v2 public & private dont work
Brody
Brody5mo ago
got it working, the browserless docs are outdated so therefor the BROWSER_WS_ENDPOINT variable the template came with was wrong for v2 hard refresh your browser and deploy the browserless v2 template again
celebrations
celebrationsOP5mo ago
aight preciate it
Brody
Brody4mo ago
let me know if it still doesn't work @celebrations - did the template work for you?
celebrations
celebrationsOP4mo ago
yep its workign great
Brody
Brody4mo ago
awsome
Want results from more Discord servers?
Add your server