ghostboard / ghost-purge-images

CLI tool to display & purge the uploaded images, video and audio files that currently are not used in any post, page or meta data
MIT License
90 stars 4 forks source link

Site URL issue? #1

Closed stevepmitchell closed 5 years ago

stevepmitchell commented 5 years ago

I'm trying to use ghost-purge-images to clean up a test site, and am getting the following error:

ghost-purge-images display key=XXX url https://ghost.sailbits.comghost/api/v2/content/settings/?key=XXX ❌ Error: Error: getaddrinfo ENOTFOUND ghost.sailbits.comghost ghost.sailbits.comghost:443

Note that I've replaced my key with XXX but am using a normal key.

The site URL is https://ghost.sailbits.com/ but for some reason it is adding a "ghost" in the middle of the hostname.

Maxszik commented 5 years ago
dburgos commented 5 years ago

A fix is available: 1 - Please update to the latest version 2.0.3 running npm i -g ghost-purge-images 2 - Then try again with ghost-purge-images display key=XXX

ghost-purge-images-issue-1

Sorry for the inconvenience and thanks for your patience 👍

Maxszik commented 5 years ago

Still not working, comrade. Installing is fine, running the display command is good, but when trying to do the actual purging I get `❌ content/images/2019/02/toshkent-logo-en_o.png Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/toshkent-logo-en_o.png' ❌ content/images/2019/02/tran-station-dog_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/tran-station-dog_o.jpg' ❌ content/images/2019/02/trans-siberian-crew_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/trans-siberian-crew_o.jpg' ❌ content/images/2019/02/transsib-crew_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/transsib-crew_o.jpg' ❌ content/images/2019/02/vereshyagin_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/vereshyagin_o.jpg' ❌ content/images/2019/02/volgo-don_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/volgo-don_o.jpg' ❌ content/images/2019/02/we-sail-at-night_o.jpg Error:Error: EACCES: permission denied, unlink 'content/images/2019/02/we-sail-at-night_o.jpg'

📊 Summary:

🎁 Open source tool by David Burgos from https://ghostboard.io ghost-mgr@ghost-caucasusandmercury:/var/www/ghost$ `

dburgos commented 5 years ago

@Caucasus-and-Mercury It looks like another issue related to files permission in your server, but not the tool itself. Please try: