RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Skyscraper cache relocation

    Scheduled Pinned Locked Moved Help and Support
    skyscraper
    11 Posts 3 Posters 435 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      flifpront
      last edited by

      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

      muldjordM 1 Reply Last reply Reply Quote 0
      • muldjordM
        muldjord @flifpront
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • F
          flifpront
          last edited by

          Thanks I’ll try that 🙂

          1 Reply Last reply Reply Quote 1
          • F
            flifpront
            last edited by flifpront

            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

            F 1 Reply Last reply Reply Quote 0
            • F
              flifpront @flifpront
              last edited by

              [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"
              
              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @flifpront
                last edited by mitu

                @flifpront Did you check the permissions on the cache folder ? Can you write to it, as the pi user (assuming you're running Skyscraper as the pi user) ?

                1 Reply Last reply Reply Quote 0
                • F
                  flifpront
                  last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by

                    @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 the pi user - and see if you get an error ? How are you mounting your NAS folder on the Pi ?

                    1 Reply Last reply Reply Quote 0
                    • F
                      flifpront
                      last edited by flifpront

                      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
                      
                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @flifpront
                        last edited by

                        @flifpront Try changing the mount line to

                        sudo 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.

                        1 Reply Last reply Reply Quote 1
                        • F
                          flifpront
                          last edited by

                          that worked. thanks both of you @mitu @muldjord

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post

                          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.