wkentaro / gdown

Google Drive Public File Downloader when Curl/Wget Fails
MIT License
4.33k stars 350 forks source link

Gdown does not download when called asynchronously (EC2 Ruby on Rails) #348

Closed Kaushik-Iyer-skima closed 7 months ago

Kaushik-Iyer-skima commented 7 months ago

Provide environment information

Python3.8.10

What OS are you using?

Ubuntu 20.04.6

Describe the Bug

When I call a sidekiq job through my ruby on rails application synchronously, the file gets downloaded (I run gdown --fuzzy --id {file_id} -O {file_name}). The same job, with same parameters, in the same machine, when called asynchronously (perform_async), gdown doesnt download, neither is an error being thrown.

Expected Behavior

Downloading should happen even when called asynchronously

To Reproduce

Create a job in ruby on rails that performs system call to gdown download anything. Call it synchronously and asynchronously and see changes

Kaushik-Iyer-skima commented 7 months ago

i get 'gdown not found' when I run async, no errors when i run the same command in sync

Kaushik-Iyer-skima commented 7 months ago

The issue was that I performed pip install without sudo, so sidekiq could not get the local user installation of gdown. After installing using sudo, this is no longer an issue now