Skyscraper cache relocation
-
i there
I tried to tweak skyscraper config.ini to relocate cache folder to my NAS
Everything looks ok but when I begin scrapping I get an error message telling me it can write on the folder “ can’t write on cache folder, not enough space? ”
The nas has plenty of space, I guess it’s more an write authorisation issue.
Retropie has write credentials and I don’t understand where I’m supposed to give that credential, if it’s really the problem
Red the GitHub but couldn’t find anything related to this issue.
Thanks a lot
-
@flifpront Yeah, there are issues with calculating free disk space on certain network mounts. You can disable the check with:
[main] spaceCheck="false"
It's documented here in case you want to read more about it.
-
Thanks I’ll try that 🙂
-
added
spaceCheck="false"
but I still get :
Warning! Couldn't add resource to cache. Have you run out of disk space?
Error writing file: '/home/pi/RetroPie/roms/cache/n64/videos/screenscraper/XXXXX.mp4' to cache. Please check permissions.
I
-
[main] ##Setting input, gamelist or media folder here, will automatically append '/[platform]' to path. ##If you need better control, use the same variables under a [<platform>] section instead. #inputFolder="/home/pi/RetroPie/roms" #excludeFiles="*[BIOS]*" #includeFiles="Super*" #gameListFolder="/home/pi/RetroPie/roms" #gameListBackup="false" #mediaFolder="/home/pi/RetroPie/roms" cacheFolder="/home/pi/RetroPie/roms/cache" #cacheResize="false" #nameTemplate="%t [%f], %P player(s)" #jpgQuality="95" #cacheCovers="true" #cacheScreenshots="true" #cacheWheels="true" #cacheMarquees="true" #importFolder="/home/pi/.skyscraper/import" #unpack="false" #frontend="emulationstation" #emulator="" #launch="" #videos="false" #videoSizeLimit="42" #videoConvertCommand="ffmpeg -i %i -y -pix_fmt yuv420p -t 00:00:10 -c:v libx264 -crf 23 -c:a aac -b:a 64k -vf scale=640:480:force_original_aspect_ratio=decrease,pad=640:480:(ow-iw)/2:(oh-ih)/2,setsar=1 %o" #videoConvertExtension="mp4" #symlink="false" #brackets="true" #maxLength="10000" #threads="2" #pretend="false" #unattend="false" #unattendSkip="false" #interactive="false" #forceFilename="false" #verbosity="1" #skipped="false" #maxFails="30" #lang="en" #region="wor" #langPrios="en,de,es" #regionPrios="eu,us,ss,uk,wor,jp" #minMatch="0" #artworkXml="artwork.xml" #relativePaths="false" #addExtensions="*.zst" #hints="false" #subdirs="true" spaceCheck="false" #scummIni="/full/path/to/scummvm.ini"
-
@flifpront Did you check the permissions on the cache folder ? Can you write to it, as the
pi
user (assuming you're runningSkyscraper
as thepi
user) ? -
Hi,
Yes I use pi to run Skyscraper
tried a
sudo chmod -R a+rwx /home/pi/RetroPie/roms/cache
to give R W and Execute permisson which seemed to work then rebooted
but the problem is still there
-
@flifpront said in Skyscraper cache relocation:
sudo chmod -R a+rwx /home/pi/RetroPie/roms/cache
That's a bad idea - don't use
sudo
or 777 permissions.
Can you try to write a file to the cache folder - as thepi
user - and see if you get an error ? How are you mounting your NAS folder on the Pi ? -
you are right
pi@retropie:~/RetroPie/roms/cache $ touch fichier.txt touch: cannot touch 'fichier.txt': Permission denied
I don't really know how to give properly pi the permission (found my previous sudo chmod in a linux forum)
Nas is mounted in autostart.sh
sudo mount -t cifs -o username=XXX,password=XXXX //192.168.X.X/home/jeux/RetroPie /home/pi/RetroPie
-
@flifpront Try changing the
mount
line tosudo mount -t cifs -o username=XXX,password=XXXX,uid=pi //192.168.X.X/home/jeux/RetroPie /home/pi/RetroPie
then reboot and see if you can create files in the
cache
folder. -
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.