Thumbnail generation issues

For urgent and private issues, open a support ticket instead of posting: https://secure.installatron.com/tickets
Post Reply
jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Thumbnail generation issues

Post by jhawkins002 » Thu Nov 07, 2013 1:03 pm

Hi there! Hate to open a ticket on this, if there is a simple solution that can be provided.

Our users are seeing 403 errors on the application 'thumbnails' in Installatron. We are definitely certain this is due to the fact we are running this particular Installatron environment on a (dev) server which has Apache configured to deny incoming connections from IP's not on the local network. When we disable the respective deny rule in Apache, the thumbnails generate normally.

So this begs the question, are the thumbnails being generated from a 'snapshot' script hosted somewhere at installatron.com? We would love to just have an IP or range of IP's we could allow in Apache to get thumbnails working - if possible. We already have the following to addresses allowed, but that does not seem to help:

Code: Select all

  Allow from 74.63.201.28 # Installatron 1
  Allow from 173.192.90.98 # Installatron 2
Thanks for any help or advice!

Josh
Staff
Posts: 131
Joined: Wed Jul 07, 2010 3:53 pm
Location: USA

Re: Thumbnail generation issues

Post by Josh » Fri Nov 08, 2013 4:00 am

Greetings,

The snapshot program is hosted by us on each of our official mirrors. Allowing incoming HTTP access for the first mirror listed in /usr/local/installatron/etc/settings.ini should get this fixed (the "mirrorgeo" line).

Let us know if there are any questions.

Best regards,
Josh

jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Re: Thumbnail generation issues

Post by jhawkins002 » Fri Nov 08, 2013 11:33 am

Josh wrote:Greetings,

The snapshot program is hosted by us on each of our official mirrors. Allowing incoming HTTP access for the first mirror listed in /usr/local/installatron/etc/settings.ini should get this fixed (the "mirrorgeo" line).

Let us know if there are any questions.

Best regards,
Josh
Thanks for the reply! We entered in the respective address but still saw the 403 on the thumbnail snapshot. Went ahead and dug through our logs to find the correct IP, which is different from those listed in settings.ini - not sure if its ok to post here, but happy to if you think it would be beneficial for any other users who might encounter a similar issue.

Phil
Staff
Posts: 490
Joined: Tue Jun 19, 2007 6:06 am

Re: Thumbnail generation issues

Post by Phil » Fri Nov 08, 2013 4:24 pm

Hello,

A ping to the address of the first mirror listed under the "mirrorgeo" line should reveal the correct IP. If you're still experiencing any problems let us know.

Thanks,
Phil
Phillip Stier
Installatron Co-Founder

jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Re: Thumbnail generation issues

Post by jhawkins002 » Fri Nov 08, 2013 5:43 pm

Phil wrote:Hello,

A ping to the address of the first mirror listed under the "mirrorgeo" line should reveal the correct IP. If you're still experiencing any problems let us know.

Thanks,
Phil
Thanks! I meant to say that we were surprised to discover the thumbnails are not being generated by any of the IP's/servers listed under "mirrorgeo"; After whitelisting all noted servers from settings.ini to no avail, we finally discovered the actual IP by combing through our 403 error logs in Apache. It is very close to the IP for one of the servers listed under "mirrorgeo" - but not an exact match.

Phil
Staff
Posts: 490
Joined: Tue Jun 19, 2007 6:06 am

Re: Thumbnail generation issues

Post by Phil » Fri Nov 08, 2013 9:29 pm

Hello,

I understand now, but I'm having trouble making sense of why that worked as each mirror has its own IP address. What's the IP address that worked?

Thanks,
Phil
Phillip Stier
Installatron Co-Founder

jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Re: Thumbnail generation issues

Post by jhawkins002 » Mon Nov 11, 2013 11:24 am

The IP that we found in our Apache logs which ended up being the golden ticket was 74.63.201.26. The IP's from mirrorgeo are:

Code: Select all

74.63.201.28
173.192.90.98
23.229.123.207
50.63.85.70
192.241.121.166

jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Re: Thumbnail generation issues

Post by jhawkins002 » Fri Feb 21, 2014 4:59 pm

Wanted to post an update! So the IP has now changed, as our thumbnails are broken again with 403 errors. Had to dig out the correct address from our logs.

Is there a dns name for the thumbnail capture server/service that we could whitelist so this doesnt keep breaking when the IP rotates?

New thumbnail service IP:

Code: Select all

50.63.85.70

Josh
Staff
Posts: 131
Joined: Wed Jul 07, 2010 3:53 pm
Location: USA

Re: Thumbnail generation issues

Post by Josh » Sat Feb 22, 2014 1:49 am

Greetings,

There's actually a number of IP addresses it can connect to for thumbnail generation. This is controlled by the "mirrorgeo=" setting in /usr/local/installatron/etc/settings.ini

When a 403 error is encountered it should re-try a different IP address. Are there any entries in the /var/installatron/logs/fetch_log file for these failures?

If you'd like to always force Installatron to use a specific IP address for this, add this line to /usr/local/installatron/etc/settings.ini:

Code: Select all

mirror=50.63.85.70
Best regards,
Josh

jhawkins002
Posts: 9
Joined: Sun Oct 25, 2009 6:44 pm

Re: Thumbnail generation issues

Post by jhawkins002 » Sat Feb 22, 2014 9:00 pm

Hi Josh,

Actually, this was totally a blunder on my part! I forgot to check and make sure this was one of the mirrorgeo IP's prior to posting here haha. Our previous problem was that we had to whitelist an IP that was not in mirrorgeo, and I assumed this was the same problem - which it wasnt.

Thank you for the quick response!

Post Reply