Download remote images to local server


(Henryk Heisig) #1

Hi. I install Discourse forum with dokker and enable ‘download remote images to local’ option with ‘download remote images max days old’ set to 10000 day.

Now import data from smf2 forum. All its ok but only some images is copied to local server. (i think its less than 5%) Images is located on another hosting.

Logs show a lot of:

default: There was an error while downloading 'http://serwer1332159.home.pl/uploader/uploads/1396215399_2.png' locally for post: 17031
default: There was an error while downloading 'http://serwer1332159.home.pl/uploader/uploads/1396215420_3.png' locally for post: 17031
default: There was an error while downloading 'http://serwer1332159.home.pl/uploader/uploads/1396215437_4.png' locally for post: 17031

On my forum in posts all images is loaded correctly but from remote server.

When I use “rake posts:rebake” i have “more” images on my local server but this is only a few images. I have ~170GB free space. How to fix it?

Sorry for my english.