WordPress.org

Ready to get started?Download WordPress

Forums

iQ Block Country
Error occured: Could not download the GeoIP database (38 posts)

  1. PhilEsq
    Member
    Posted 2 years ago #

    Error occured: Could not download the GeoIP database from http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz.
    Please download this file yourself and unzip this file to

    http://wordpress.org/extend/plugins/iq-block-country/

  2. schteev
    Member
    Posted 2 years ago #

    exactly the same here. It doesnt show the directory to download and instal to either.. so seems like a bug

    I thought it just might be permissions?

  3. PhilEsq
    Member
    Posted 2 years ago #

    It's weird because the link works but the plug-in is not downloading the file. It would have been nice if the message indicated where to upload the file. However, I found the folder where it is stored. It is simply in the plug-ins folder at:
    plugins/iq-block-country

    It would be a lot nicer to figure out why the plug-in is not automatically downloading the file.

  4. ozeclick
    Member
    Posted 2 years ago #

    chmod (change permissions) the plugins/iq-block-country folder to 0757 (writable by the app) - it will then download.

  5. PhilEsq
    Member
    Posted 2 years ago #

    Do you mean 757? I already have it set to 755 and I get the error message.

  6. PhilEsq
    Member
    Posted 2 years ago #

    I temporarily changed the permissions to 777 and tried again but still got the same error.

  7. PhilEsq
    Member
    Posted 2 years ago #

    I guess I found the problem. My server is not letting me change the permissions beyond 755. They said that on their server, it should work if I change it to 644. For some reason, filezilla will not let me change it at all so they are doing it for me. I will post here if I find it works.

  8. PhilEsq
    Member
    Posted 2 years ago #

    My hosting service changed the permissions to 757 but I still receive the same error.

  9. Don
    Member
    Posted 2 years ago #

    This plugin is broke. I attempted several different permission changes and I received the same message as Phil posted above.

    Time to deactivate it and move on.

  10. PhilEsq
    Member
    Posted 2 years ago #

    Did you update? It was just updated on May 16 and is working now. I was just going to thank Pascal for updating.

  11. Don
    Member
    Posted 2 years ago #

    I just got the most recent info and download files:

    On the FAQ page there is a link to download the latest database file:

    http://wordpress.org/extend/plugins/iq-block-country/faq/

    Here is the actual link:

    http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz

    Place the unzipped GeoIP.dat file in the root of the iq-block-country folder.

    I tweeted Pascal but someone else chimed in on another post.

  12. PhilEsq
    Member
    Posted 2 years ago #

    There is an update of iQ Block Country which fixed the download button in the dashboard so you don't have to go to maxmind.

  13. Don
    Member
    Posted 2 years ago #

    Ugh!

    Well I followed those instructions and the upload failed. Repeat and rinse, same result.

    I'm not sure if I wish to spend any more time on this. The original geoip file was readable in notepad, the new geoip file (date.file) is not.

    The this is a dat file vs. a txt file? Is this the problem with the upload to the server files? Not sure.

    One thing I am noticing is the zip file is downloading to my hard drive as a "gz" and not showing up in the download file up I attempt to upload to the server and extract from there. I fixed this by right clicking and placing it in a container file on downloads but still no go uploading to the server and extracting.

    I extracted with an unzip tool and uploaded the "dat" file and that's when I received the upload error.

  14. PhilEsq
    Member
    Posted 2 years ago #

    When it wasn't working, I was able to download the GeoIP.dat file and manually upload.

    download the GeoIP database from http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz.

    download file, unzip an upload to /plugins/iq-block-country/

    However, with the new update it is working now. Do you have Version 1.0.6 installed?

  15. Don
    Member
    Posted 2 years ago #

    I did that but the upload was showing "failed" in my server. I uploaded the unzipped file from the host into the IQ Block Country folder and yes, I have 1.0.6 version.

    I uploaded the zipped file and extracted it in the IP Block Country folder also and that didn't work either.

    In either case when I return to the plugin in my WP admin area the download button still shows "error...."

    I've even deleted the whole thing and started over. I've got plenty of experience with WordPress, this is not my normal experience.

    One more try later and that's it, I have other Internet fish to fry. I'd like this to work as I need to block some specific countries because of serious hacking attempt lately. I've manually denied IPs but that too is time consuming.

  16. PhilEsq
    Member
    Posted 2 years ago #

    You could ask your hosting service to take a look and see if it has anything to do with them. I just had a problem with a different plugin which turned out to be some security settings by my hosting service. They turned it off and my problem went away.

    Another solution is to try this script which I bookmarked a long time ago. I have never tried it. If you try it, I would love to know what you think.
    http://www.12scripts.com/scripts.php?scripts.id=2

  17. Don
    Member
    Posted 2 years ago #

    Phil, I got it to work this morning. Here is a post on another thread I left.

    Although I'm getting a "failed" response after downloading/uploading the dat file to the server the file still appears in the folder. Go figure.

    Now, this morning I went through the exercise in my WP admin, hit the download button "Download New GEO IP Database" and it worked. No error message.

    Pascal mentions in his FAQ notes the GEOIP Lite may only allow a certain number of downloads from servers in a 24 hour period as follows:

    Why does downloading the GeoIP.dat.gz fail?

    For instance Maxmind limits the number of downloads per day. They probably do this by IP address so if you or somebody else who has a site at the same server your site is running on already downloaded the new database you may be blocked for 24 hours by MaxMind. No worries try a day later again.

    So something having to do with download excess may have been the problem with my host. I had the problem with the first download so it wasn't too many downloads on my side, except after attempting to make it work several times.

    So waiting over night seems to have worked. Now the question - I have a number of sites on the same server. Will this problem occur again? If it does than implementing the fresh database to this plugin on multiple sites may take many days.

    Regardless, the problem must have been related to Pascal's post on downloads.

    Thanks for your help, it's appreciated.

  18. PhilEsq
    Member
    Posted 2 years ago #

    I also have several running on the same server. I have not run into a problem but I don't know if I ever tried to download the new file on several sites on the same day. If it's a problem, you can just do it on different days.

  19. Don
    Member
    Posted 2 years ago #

    I just went through the first six sites and on that last one I received the error message. So I'll return tomorrow to update.

    There isn't a problem to at least have the plugin installed and working regardless prior to updating the database file.

    It's been my experience that new IPs sometimes only add a few new ones over a period of time.

    i.e. I had to block the entire range for Amazon's cloud on a site on it's own server to block a hacker. They are in the US so I can't use the IP Block Country plugin. Amazon has updates or adds new IPs but it hasn't been a lot at any one time.

    Isn't this all fun - work like a plow horse and continue to swat your tail to keep the flies off. It's a never ending battle. Except we're fighting two-legged cockroaches.

  20. Pascal
    Member
    Plugin Author

    Posted 2 years ago #

    Perhaps time for some feedback :-)

    As this not being to able to download it directly from MaxMind may appear
    more often. Especially if you are on a busy server with a few WordPress installations that actually use my plugin... And if a fellow user on the same server presses the download button several times MaxMind will block you for 24 hours.

    How can I make clear that this is not a plugin problem?

    Is there a way I can explain better the "do-it-yourself" method of downloading it from your home (or business) address and uploading it via FTP/SFTP?

    Should I perhaps include a copy of the GeoIP database with the plugin?

    Something else?

    Feedback is appreciated :-)

  21. PhilEsq
    Member
    Posted 2 years ago #

    It's working for me after you fixed it. If I find the download fails, I'd rather just wait till the next time I get spammed before downloading and uploading manually.

    I don't have a dedicated IP address with most of my sites but I have not had a problem. I suppose the solution for Don could be to get a dedicated IP address.

    I have most of my sites under one account at Site5.com with the HostPro+Turbo. They say they give you a dedicated IP address which they did but then they moved my account to another service during an "upgrade" and never told me that I no longer had a dedicated IP address. Now, they want me to get an SSL certificate before giving me back a dedicated IP address. If I start having a frequent problem downloading from MaxMind, I will try that.

    Prior to the last update, the download button simply stopped working. Now that it's fixed, I'm happy. Thank you very much!

    By the way, I listed iQ Block Country in two places on my blog. One at
    http://www.top10googleresults.com/best-wordpress-plugins/

    I also listed it on my post about reducing CPU usage.

  22. Pascal
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for your feedback.

    The link on the iQ Block country entry of your post seems to go to commentluv and not to either the official wordpress plugin site or http://www.redeo.nl :-)

  23. PhilEsq
    Member
    Posted 2 years ago #

    Thanks. I just fixed that link. It was originally on my CPU usage page and just decided to also add it to my Best WordPress PlugIns page by copying and pasting. Somehow, it copied the wrong url. I also checked my other page but it was correct there.

  24. Don
    Member
    Posted 2 years ago #

    OK, I wrote a feedback reply earlier in the day and it's gone - POOF!

    In a nutshell, referring back to my experience in my last post above - I went through some more sites today, well after a 24 hour period and had success downloading without the error message for 5 sites. On the 6th site the error in download started up.

    So when on the same server I suppose you're indeed allotted so many downloads then you must wait.

    I'm only guessing it's the server but could it be the IP I'm working off of locally which is static. Either way for me the 24-hour limit is five downloads. I never double clicked on one site if that question comes up. Once the first error initiated I moved on until a fresh day begins.

    The plugin works well and I'm grateful. The only hitch for me is the download issue since I have numerous sites to protect - yes, numerous.

  25. PhilEsq
    Member
    Posted 2 years ago #

    Strange, I received that post in an e-mail but it's not here now. You could get different dedicated IP addresses for your websites. I also have a lot of websites but it has never been a problem for me. I only download a new database from MaxMind every few months. Two or three times a year is probably sufficient.

  26. Don
    Member
    Posted 2 years ago #

    Thanks Phil - BTW, if you see that missing post hanging around let me know. ;)

  27. PhilEsq
    Member
    Posted 2 years ago #

    Really strange. I just got an e-mail with your last message, which is not here, about CloudSafe365. I have that listed on one of my websites at http://www.top10googleresults.com/best-wordpress-plugins/
    I have approximately 400 websites including one with multisite using 16 databases so I don't know if I can use that. However, this is getting off-topic for this thread but you can send me your e-mail address through http://www.1888drugcrimes.com/modules/feedback/message_priority.php (I just noticed that my contact form is not working on any of my WP sites).

  28. Pascal
    Member
    Plugin Author

    Posted 2 years ago #

    I too get the notifications of these posts but they do not show up here in this thread.

    Perhaps contact the admins about why they are gone?

  29. Pascal
    Member
    Plugin Author

    Posted 2 years ago #

    Next version will have better detection if it hits the rate limit (and you have to wait 24 hours) or other download failures.

  30. Don
    Member
    Posted 2 years ago #

    Thank you Pascal - I appreciate your attention to this matter. (Hopefully this post sticks ;))

    Will the new version show as a notification in our Admin-->>Plugin area?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic