akitaonrails / manga-downloadr

download mangas from MangaReader.net and compile Kindle optimised PDFs
MIT License
89 stars 17 forks source link

download fails #2

Open NARKOZ opened 9 years ago

NARKOZ commented 9 years ago
Massive parallel download of all page images 
~~/lib/ruby/2.1.0/fileutils.rb:250:in `mkdir': Permission denied @ dir_s_mkdir - /vagrant (Errno::EACCES)
        from ~~/lib/ruby/2.1.0/fileutils.rb:250:in `fu_mkdir'
        from ~~/lib/ruby/2.1.0/fileutils.rb:224:in `block (2 levels) in mkdir_p'
        from ~~/lib/ruby/2.1.0/fileutils.rb:222:in `reverse_each'
        from ~~/lib/ruby/2.1.0/fileutils.rb:222:in `block in mkdir_p'
        from ~~/lib/ruby/2.1.0/fileutils.rb:208:in `each'
        from ~~/lib/ruby/2.1.0/fileutils.rb:208:in `mkdir_p'
        from ~~/gems/manga-downloadr-1.0.1/lib/manga-downloadr.rb:107:in `block (3 levels) in fetch_images!'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/request/callbacks.rb:129:in `call'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/request/callbacks.rb:129:in `block in execute_callbacks'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/request/callbacks.rb:128:in `map'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/request/callbacks.rb:128:in `execute_callbacks'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/request/operations.rb:35:in `finish'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/easy_factory.rb:105:in `block in set_callback'
        from ~~/gems/ethon-0.7.1/lib/ethon/easy/response_callbacks.rb:65:in `call'
        from ~~/gems/ethon-0.7.1/lib/ethon/easy/response_callbacks.rb:65:in `block in complete'
        from ~~/gems/ethon-0.7.1/lib/ethon/easy/response_callbacks.rb:65:in `each'
        from ~~/gems/ethon-0.7.1/lib/ethon/easy/response_callbacks.rb:65:in `complete'
        from ~~/gems/ethon-0.7.1/lib/ethon/multi/operations.rb:148:in `check'
        from ~~/gems/ethon-0.7.1/lib/ethon/multi/operations.rb:161:in `run'
        from ~~/gems/ethon-0.7.1/lib/ethon/multi/operations.rb:43:in `perform'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/hydra/runnable.rb:15:in `run'
        from ~~/gems/typhoeus-0.6.9/lib/typhoeus/hydra/memoizable.rb:51:in `run'
        from ~~/gems/manga-downloadr-1.0.1/lib/manga-downloadr.rb:124:in `fetch_images!'
        from ~~/gems/manga-downloadr-1.0.1/bin/manga-downloadr:55:in `<top (required)>'
        from ~~/gems/bin/manga-downloadr:23:in `load'
        from ~~/gems/bin/manga-downloadr:23:in `<main>'
        from ~~/gems/bin/ruby_executable_hooks:15:in `eval'
        from ~~/gems/bin/ruby_executable_hooks:15:in `<main>'
akitaonrails commented 9 years ago

The error is "Permission denied " Seems like you need to point it to somewhere where you do have access to write. Use the "-d" option to point to somewhere else.

NARKOZ commented 9 years ago

I've used -d option. Here is the full command:

manga-downloadr -n breaker -u http://www.mangareader.net/530/the-breaker.html -d ~/Downloads/manga

Directory exists. Same error with absolute path.

NARKOZ commented 9 years ago

Fixed by removing /tmp/breaker.yml and running again.

akitaonrails commented 9 years ago

Ah, sorry about that, I should have documented that. If you don't put the -d it picks a default value and then it reload it from the tmp file. I will fix that.