How to fix 'ffmpeg server returned 403 forbidden (access denied)? - node.js

I'm writing a website to convert youtube videos using NodeJS. I am using a package to convert them (horizon-youtube-mp3). The package works, however, I'm having problems converting. Whenever I try to convert a youtube link, it will return 'server returned 403 forbidden access'.
This error happens in 95% of the links. Some links actually work and convert correctly, but only a few.
I tried running the script on 3 different computers running 3 different OS's. My VPS, my laptop and my home PC. I looked on the web but couldn't find anything useful.
So yeah, I completely suck since I really don't understand why one video would convert, and the other won't. Even if the region of the video is the same.
Any help would be highly appreciated!

Related

Discord.js bot not loading image urls in MessageEmbeds(), was previously

So one of my bots has a majority of it's commands contain imagery via the Discord.MessageEmbed() function, which has worked since I first tried it. Now, however, out of nowhere, the images no longer load in, however with my meme command (I have it set to log the image link) it does log the correct link. It is with all of my commands that contain imagery, as stated.
I have tried re-installing each of the packages the bot uses, and it still doesn't work. I tried looking it up online, however nothing applied to me
There seems to be an issue with the whole discord system at the moment. If you try sending a link, there won't be an embed either.
The discord team is actively working to fix the issue at the moment.

Trivial Node.js via Passenger on DreamHost - Permission Denied

I tried setting up a do-nothing Node app, and it failed.
I developed some Node.js code offline in containers. I now want to try deploying it on DreamHost. I am doing it incrementally, adding features one by one. Starting with “Hello World” and going from there.
I set up a new subdomain and enabled Passenger. I was able to serve up an index.html file. I followed https://help.dreamhost.com/hc/en-us/articles/360029083351-Installing-a-custom-version-of-NVM-and-Node-js and installed Node and nvm (using the versions recommended in that artcle). I then installed a few packages I plan to use (most notably Express, the rest won’t come into play until later).
With just a Hello World app, that failed. The error message is below. But, I checked all the relevant files and they all have global read and execute permissions. I’m wondering if it is something else. I tried multiple Hello World examples for app.js, copied directly from different tutorials, none of which worked (but they do work locally). My more complex code also does not work, but that is the next step.
What am I missing? I followed the directions exactly. What other landmines do I have to look forward to? I really don’t want to spend time wrestling with infrastructure, I want it to “just work”, ideally.
An error occurred while starting the web application. It exited before signalling successful startup back to Phusion Passenger. Please read this article for more information about this problem.
Raw process output:
*** ERROR ***: Cannot execute /home/<user name>/.nvm/versions/node/v12.16.3: Permission denied (13)
Unclear what solved the issue.
Ran through changing the permissions on the files, as would seem obvious. Changed '/home/<user name>/.nvm/versions/node/v12.16.3' to '/home/<user name>/.nvm/versions/node/v12.16.3/bin/node' in the .htaccess file. Neither of those seemed to solve it.
Repeated the process again later. Followed it by `touch <webapp directory>/tmp/restart.txt' and it started working. I had been editing files in the web app's directory, so it isn't clear what touching that file did.

Getting error server unable to read htaccess file, denying access to be safe. My server keeps changing back to permission 710 automatically

So I've been using a VPS server from namecheap for the past 2 yrs or so and I use it to host some of my clients websites and dashboards to manage mobile apps. Since yesterday around noon all my websites & dashboards started loading the following error:
Forbidden
You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I contacted my hosting support and they said my home folder for my server was set to permission 710 and using SSH on my WHM dashboard they changed to 711, right after that all my websites, dashboards and even mobile apps came back online and started working, then around 15 minutes later it happened again, I again contacted hosting support and they did the same process and everything came back online, I started to see a pattern here so I asked if they could explain how they changed permissions to 711 on SSH so I can do this myself if needed.
Well its been around 10hrs now and my websites, dashboards & mobile apps keep doing the same thing they go offline and cannot be accessed (For mobile apps they don't load any information) until I access WHM and change my home folder to permission 711.
So I know it has something to do with an htaccess file but have no idea which one or even why its automatically being changed every 15 minutes or so. One of the possibilities mentioned by hosting support was that I may have malware (Wouldn't know how) or one of my scripts uploaded has issues causing my whole server to keep crashing.
I already deleted the 2 scripts uploaded in the last two days but that didn't seem to fix anything, and hosting support takes so long to give me just the most basic answers but most importantly they are just giving me temporary fixes and say they have no idea why this is happening.
I am considering downloading each one of my scripts one by one until im only left with my main site and then start uploading them again one by one to see if I can locate the script causing all of this.
If you have any other ideas on why this could be happening I would really appreciate it if you guys can point me in the right direction.
Thanks!

Which files required for qt 5.4 qwebchannel linux deployment?

All,
Have a QtWebEngine based application which uses all local html and javascript files. When deploying this to a test environment the Web page comes up and is navigable, but, webchannel based things aren't working. Everything is fine on development. Problem only happens on deployment to test machine.
This is a self contained .deb which installs creating a user and is meant to bring everything along with it. While it is running on a desktop, there is no network connection, everything is inside.
That said, if "everything" was inside the webchannel would be working. Does anyone have a link identifying what external pieces webchannel requires? There are only two oddities starting up on the target.
[0629/132921:WARNING:resource_bundle.cc(286)] locale_file_path.empty()
[0629/132921:WARNING:resource_bundle.cc(286)] locale_file_path.empty()
Trust me, I've surfed for that. There are thousands of posts flagging resource_bundle.cc throwing local_file_path.empty() errors at all kinds of lines and nothing offered as a solution. I am making the grand assumption when webchannel supporting files are identified and placed/pointed to, these will go away and life will be good.
qwebchannel.js is deployed, but, maybe there is an environment variable I need to set? the index.html file references qwebchannel.js exactly where it is.
Anyone have the list/link of what files are required when deploying something using qwebchannel.js? It isn't throwing up an error which identifies much.
Thanks,

Codeigniter - No Data Received - Not Chrome related

I've found plenty of versions of this questions, but neither seem to go further than an apparent Google Chrome bug.
What happens is that whenever I copy a codeigniter setup to a new folder on my server, to start a new project based on it, I get "no data received" in any browser I try it on.
The strange part is that the problem is solved if I go into each file that gets include()-d, add or change something irrelevant (like a blank space) and save the file. I don't know why, but this makes that specific include() work. Otherwise, the script stops before it.
There's nothing logged in the server's access or error logs so I can't figure out what the problem might be.
Needless to say this has been driving me crazy. Any suggestions?
Thanks!
My sysadmin figured it out. It was related to system wide APC cache. I used apc_clear_cache() at the top of index.php and everything works like a charm!

Resources