Girbons / comics-downloader

tool to download comics and manga in pdf/epub/cbr/cbz from a website
MIT License
484 stars 53 forks source link

Permission Errors #3

Closed bashfulrobot closed 5 years ago

bashfulrobot commented 5 years ago

Ok, I have attempted to use the app in the following way:

cd ~/Downloads && mkdir comics
mv /path/to/comics-downloader ~/home/Downloads/comics
~/home/Downloads/comics
./comics-downloader --url=https://www.comicextra.com/captain-marvel-2016/chapter-10/full

This then resulted in the following error(s):

ERRO[0001] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/1.jpgGet http://localhost/images/manga/captain-marvel-2016/10/1.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0001] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/2.jpgGet http://localhost/images/manga/captain-marvel-2016/10/2.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0001] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/3.jpgGet http://localhost/images/manga/captain-marvel-2016/10/3.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0002] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/4.jpgGet http://localhost/images/manga/captain-marvel-2016/10/4.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0002] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/5.jpgGet http://localhost/images/manga/captain-marvel-2016/10/5.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0002] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/6.jpgGet http://localhost/images/manga/captain-marvel-2016/10/6.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0002] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/7.jpgGet http://localhost/images/manga/captain-marvel-2016/10/7.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0003] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/8.jpgGet http://localhost/images/manga/captain-marvel-2016/10/8.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0003] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/9.jpgGet http://localhost/images/manga/captain-marvel-2016/10/9.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0003] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/10.jpgGet http://localhost/images/manga/captain-marvel-2016/10/10.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0004] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/11.jpgGet http://localhost/images/manga/captain-marvel-2016/10/11.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0004] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/12.jpgGet http://localhost/images/manga/captain-marvel-2016/10/12.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0004] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/13.jpgGet http://localhost/images/manga/captain-marvel-2016/10/13.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0004] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/14.jpgGet http://localhost/images/manga/captain-marvel-2016/10/14.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0005] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/15.jpgGet http://localhost/images/manga/captain-marvel-2016/10/15.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0005] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/16.jpgGet http://localhost/images/manga/captain-marvel-2016/10/16.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0005] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/17.jpgGet http://localhost/images/manga/captain-marvel-2016/10/17.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0006] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/18.jpgGet http://localhost/images/manga/captain-marvel-2016/10/18.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0006] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/19.jpgGet http://localhost/images/manga/captain-marvel-2016/10/19.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0006] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/20.jpgGet http://localhost/images/manga/captain-marvel-2016/10/20.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0007] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/21.jpgGet http://localhost/images/manga/captain-marvel-2016/10/21.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0007] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/22.jpgGet http://localhost/images/manga/captain-marvel-2016/10/22.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0007] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/23.jpgGet http://localhost/images/manga/captain-marvel-2016/10/23.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0007] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/24.jpgGet http://localhost/images/manga/captain-marvel-2016/10/24.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0008] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/25.jpgGet http://localhost/images/manga/captain-marvel-2016/10/25.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0008] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/26.jpgGet http://localhost/images/manga/captain-marvel-2016/10/26.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
ERRO[0008] Something went wrong with url: http://readcomics.io/images/manga/captain-marvel-2016/10/27.jpgGet http://localhost/images/manga/captain-marvel-2016/10/27.jpg: dial tcp 127.0.0.1:80: connect: connection refused 
 100% |████████████████████████████████████████|  [8s:0s]ERRO[0008] There was an error while making the PDF: Get http://localhost/images/manga/captain-marvel-2016/10/1.jpg: dial tcp 127.0.0.1:80: connect: connection refused 

INFO[0008] Download failed...

And the permissions on the directoies are:

ls -al ../comics/
total 8136
drwxrwxr-x 3 dustin dustin    4096 Dec 21 12:26 .
drwx------ 4 dustin dustin    4096 Dec 21 12:26 ..
drwxrwxr-x 3 dustin dustin    4096 Dec 21 12:26 comics
-rwxrwxr-x 1 dustin dustin 8312682 Dec 21 12:23 comics-downloader

Am I missing something?

bashfulrobot commented 5 years ago

Oh. wait. Why is it trying to download from localhost? i.e. - Get http://localhost/images/manga/captain-marvel-2016/10/6.jpg: dial tcp 127.0.0.1:80: connect: connection refused

bashfulrobot commented 5 years ago

Ok - error likely related to the URL itself. Tried with a new one, and had the following output:

./comics-downloader --url=https://www.comicextra.com/batman-2016/chapter-60/full
 100% |████████████████████████████████████████|  [1s:0s]
INFO[0002] Download Completed                           
INFO[0002] Download failed...

But with that being said, the PDF was created and looks ok.

Girbons commented 5 years ago

Hey @bashfulrobot

Oh. wait. Why is it trying to download from localhost? i.e. - Get 
http://localhost/images/manga/captain-marvel-2016/10/6.jpg: dial tcp 127.0.0.1:80: connect: 
connection refused

That's happening because of readcomics.io which is unreachable, I don't know why it tries with localhost.

Ok - error likely related to the URL itself. Tried with a new one, and had the following output:

./comics-downloader --url=https://www.comicextra.com/batman-2016/chapter-60/full
 100% |████████████████████████████████████████|  [1s:0s]
INFO[0002] Download Completed                           
INFO[0002] Download failed...
But with that being said, the PDF was created and looks ok.

Solved, I just uploaded new binary files under the 0.4.1.

bashfulrobot commented 5 years ago

Confirmed!