Sn0wCrack / ExHen-Archive

System for crawling/archiving and viewing ExHen galleries
The Unlicense
89 stars 8 forks source link

 . #10

Closed ghost closed 7 years ago

Sn0wCrack commented 7 years ago

Well give n the error message, you don't have Virtual Box installed, didn't really think about adding it to the setup guide after all.

You can download it here: https://www.virtualbox.org/wiki/Downloads

Sn0wCrack commented 7 years ago

If you don't know what you're doing with that plugin, as it seems old and outdated and may no longer be compatible, it also requires manual compilation, I would recommend to not even trying it, and just simply setting up VirtualBox as, the only endorsed way to use VMWare currently with Vagrant is through a payed add-on from Vagrant's creators.

Sn0wCrack commented 7 years ago

Since you changed the port you need to access the site via "https://localhost:444/" now

Sn0wCrack commented 7 years ago

You don't need to change those paths, you need to actually now download those archives as this does not happen automatically as specified here: https://github.com/Sn0wCrack/ExHentai-Archive/blob/master/setup/Vagrant-Setup.md#archiving

Sn0wCrack commented 7 years ago

You are also able to ssh into the vagrant instance and run the "php TaskRunner.php Archive" command yourself

Sn0wCrack commented 7 years ago

Yes you need to press add to archive and then run the Archive task, and you don't drag and drop the userscript as is, it must be configured with your servers values first before placing it into Tampermonkey, you also don't drag it onto the page, but onto a new tab or use File -> Open as described in the guide.

Sn0wCrack commented 7 years ago

Alright, I need to see what you've edited the user script too in Tampermonkey to actually ensure you've set that part up correctly, you can find your scripts in tampermonkey by clicking on the icon and then going to dashboard.

Sn0wCrack commented 7 years ago

Yes, from the video it looked like an error with your userscript, and those errors are normal. It seems there may be an issue with connecting to the virtual machine, I'll need to take a further look into this.

Sn0wCrack commented 7 years ago

Okay, I've narrowed down the issue to seemingly be that sphinx search for some reason runs into an issue with opening it's own pid file, seemingly stemming from searchd starting multiple times after its installation.

Sn0wCrack commented 7 years ago

Okay, I appear to have resolved the issue. You'll need to redownload the repository, and re-run the vagrant setup. If you're running it in the same folder, delete the .vagrant before running vagrant up again.

All should work as expected hopefully.

Sn0wCrack commented 7 years ago

The issue currently seems to lie in getting the download link for the galleries. I'd double check your config file is correct (mainly the cookie section), if it is incorrect, you will need to run "vagrant destroy" and then "vagrant up" after having edited it, as it is only copied over upon the creation of the vagrant box.

SPV and MPV are just the viewer modes, single page viewer and multi page viewer, meaning how many to display at the same time.

EDIT: Looking over your setup you seem to have done everything correctly, I cannot say for certain as to why it's failing to grab the archive links for you as I ran the exact same setup and have managed to get it to work. Only thing I might suggest is copying your own uconfig and perks cookies over the ones in the config.json.linux file.

Sn0wCrack commented 7 years ago

Actually just as a test, after visiting that task runner page and attempting to download a gallery, could you upload a .html file to pastebin or something, you can find them under "archive/page" in the ExHentai-Archive directory, the error seems to be coming from not finding the download link in that file.

Sn0wCrack commented 7 years ago

Well I think I see what the issue is, just to confirm, if you change the files extension to .jpg, is it now a picture of a Sad Panda?

Sn0wCrack commented 7 years ago

The error wouldn't be from an ISP block, as you can see the Sadpanda, the Sadpanda is from not having a logged in cookie, it's interesting to see this happen, as you can seemingly access the site perfectly fine, but via ExHentai-Archive you cannot, I've tried myself with the same config file from the repo (using my own ipb password and username) and it appears to work perfectly fine.

It could be DNS related? As VirtualBox uses your main adapter settings (So the Ethernet one in this case). Perhaps try setting it to 8.8.8.8 and 8.8.4.4 (the Google DNS) and try again (it may require a restart to fully take effect).

TBH: this is an interesting issue.

Sn0wCrack commented 7 years ago

I'll note down that e-hentai cookies are what's required rather than the exhentai ones for the future, didn't think there was any difference tbh.

As for that error, it's more than likely due to the fact you don't have enough Credits or GP on exhentai to actually download the archive, the error is misleading and I've corrected this in the in the last update. Check the gallery's "Archive Download" link to see the cost of said download.

Sn0wCrack commented 7 years ago

Your current issue with this software is still seemingly about not having GP or Credits to download as far as I can tell, you'll need to do anything else yourself.

You can check the currencies here: https://e-hentai.org/exchange.php?t=gp