Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. NextCloud Re-scan

NextCloud Re-scan

Scheduled Pinned Locked Moved Solved Nextcloud
6 Posts 3 Posters 502 Views 3 Watching
  • 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.
  • L Offline
    L Offline
    lilian
    wrote on last edited by
    #1

    Hello everyone,
    I'm in trouble, I lost user files, luckily I had them aside.
    I just put them back directly into the user folder.
    On the other hand, when I try to do a re-scan so that it works under nextcloud I get this error.

    https://docs.cloudron.io/apps/nextcloud/#rescan-files

    sudo -u www-data php -f /app/code/occ files:scan myuser
    sudo: php: command not found

    At what point did I make a mistake?
    Thank you so much

    1 Reply Last reply
    0
    • andreasduerenA Offline
      andreasduerenA Offline
      andreasdueren
      wrote on last edited by
      #2

      Simply open the web terminal and enter occ files:scan. Nothing else should be needed.

      1 Reply Last reply
      0
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote on last edited by
        #3

        Yes sudo -u www-data php -f /app/code/occ should just work in the webterminal into that app instance.

        1 Reply Last reply
        0
        • nebulonN nebulon marked this topic as a question on
        • L Offline
          L Offline
          lilian
          wrote on last edited by lilian
          #4

          Hi, @andreasdueren

          If I just do:
          occ files:scan
          I have this error:
          Command 'occ' not found, but there are 22 similar ones.

          @nebulon
          If I do
          sudo -u www-data php -f /app/code/occ
          I have this error:
          sudo: php: command not found

          In which folder should I do the manipulation?
          I'm lost, sorry

          1 Reply Last reply
          0
          • nebulonN Away
            nebulonN Away
            nebulon
            Staff
            wrote on last edited by
            #5

            are you sure you run this inside a webterminal into the app in question? https://docs.cloudron.io/apps/#web-terminal

            1 Reply Last reply
            1
            • L Offline
              L Offline
              lilian
              wrote on last edited by
              #6

              Hi and thank you!
              In stress, I read half...

              It works well through the cloudron web terminal.

              Thank you for your quick responses!

              1 Reply Last reply
              1
              • nebulonN nebulon has marked this topic as solved on
              • J joseph moved this topic from Support on
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search