[fixed] No folder for cms_pico in /home/nextcloud/data/appdata_ID/

Hi,

I tried to install CMS-pico on Nextcloud. I had some problems configuring it and after lot of try, I wanted to do a clean install of it again. I first removed the app in Nextcloud and then I removed folder in the system (/var/www/nextcloud/apps/cms_pico and /home/nextcloud/data/appdata_ID/cms_pico)

After reinstalling the app in Nextcloud (via “Applications” menu in my Nextcloud and via Nextcloud App Store website), the folder in /var/www/nextcloud/apps/ is correctly created but not in /home/nextcloud/data/appdata_ID/. I can’t create new website in CMS-pico because of missing files in appdata_ID.

I tried to scan and repair with occ but nothing.

After reading some websites, I understood (too late) that I didn’t have to touch anything in the folder appdata_ID.

I’m looking for a way to repair my error. How can I do to reinstall cms_pico correctly ?

Thanks for your help.
Mainmain

Hi,

  1. disable and remove the app cms_pico from the Apps menu on the web GUI as admin user
  2. if you made manual changes to the file structure carefully undo them (if you know how)
  3. follow this installation guide: [Beta] [Needs Testing] Pico CMS for Nextcloud v1.0.0

You would need to download that exact package linked in the post (not from the app store for now).
It is beta but working pretty good. If you don’t want to install apps in beta state, I suggest to wait a few more days until this app will come with an update (version 1.0) in the app store.

Thank you very much for your reply and your help.

I downloaded and installed CMS_pico 1.0.0 as explain in your link but when I want to enable it, I get this error :

[settings] Error: OCP\Files\NotFoundException: /appdata_ID/cms_pico at <>

  1. /var/www/nextcloud/apps/cms_pico/lib/Files/StorageFolder.php line 164
    OC\Files\Utils\Scanner->scan(“/appdata_ID/cms_pico”, true)
  2. /var/www/nextcloud/apps/cms_pico/lib/Migration/AppDataRepairStep.php line 113
    OCA\CMSPico\Files\StorageFolder->sync()
  3. /var/www/nextcloud/apps/cms_pico/lib/Migration/AppDataRepairStep.php line 93
    OCA\CMSPico\Migration\AppDataRepairStep->syncAppDataFolder()
  4. /var/www/nextcloud/lib/private/Repair.php line 101
    OCA\CMSPico\Migration\AppDataRepairStep->run(OC\Repair {})
  5. /var/www/nextcloud/lib/private/legacy/app.php line 974
    OC\Repair->run()
  6. /var/www/nextcloud/lib/private/Installer.php line 150
    OC_App::executeRepairSteps(“cms_pico”, {step: "OCA\CMS … "})
  7. /var/www/nextcloud/settings/Controller/AppSettingsController.php line 447
    OC\Installer->installApp(“cms_pico”)
  8. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 166
    OC\Settings\Controller\AppSettingsController->enableApps([“cms_pico”], )
  9. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 99
    OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\Cont … {}, “enableApps”)
  10. /var/www/nextcloud/lib/private/AppFramework/App.php line 126
    OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\Cont … {}, “enableApps”)
  11. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“OC\Settings\C … r”, “enableApps”, OC\AppFramework\ … {}, {_route: "settin … "})
  12. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: "settin … "})
  13. /var/www/nextcloud/lib/private/Route/Router.php line 297
    undefinedundefinedcall_user_func(OC\AppFramework\ … {}, {_route: "settin … "})
  14. /var/www/nextcloud/lib/base.php line 975
    OC\Route\Router->match(“/settings/apps/enable”)
  15. /var/www/nextcloud/index.php line 42
    OC::handleRequest()

POST /settings/apps/enable
from IP by mainmain at 2019-09-09T21:57:22+02:00

The only thing I did is to remove cms_pico folder and its content in appdata_ID, I don’t know how to restore that…

Thanks for your help.

Hi,

Can you send me the full path to you /appdata_ID folder and furthermore the output of
ls -l
from your nextcloud installation folder? There is nothing sensible there. I only need it for the correct user ownership and permissions and I’ll send you the commands to execute.

The full path is /home/nextcloud/data/ (owner is nextcloud:www-data)

The ls -l on the nextcloud installation folder result:
$ ls -l /var/www/nextcloud/
total 148
drwxr-x— 32 nextcloud www-data 4096 août 19 13:32 3rdparty
drwxr-x— 60 nextcloud www-data 4096 sept. 9 19:56 apps
-rw-r----- 1 nextcloud www-data 12063 août 19 13:32 AUTHORS
drwxr-x— 2 nextcloud www-data 4096 août 19 13:33 config
-rw-r----- 1 nextcloud www-data 3805 août 19 13:32 console.php
-rw-r----- 1 nextcloud www-data 34520 août 19 13:32 COPYING
drwxr-x— 23 nextcloud www-data 4096 août 19 13:32 core
-rw-r----- 1 nextcloud www-data 4986 août 19 13:32 cron.php
drwxr-x— 5 nextcloud www-data 4096 mai 8 20:53 data
-rw-r----- 1 nextcloud www-data 156 août 19 13:32 index.html
-rw-r----- 1 nextcloud www-data 3172 août 19 13:32 index.php
drwxr-x— 6 nextcloud www-data 4096 août 19 13:32 lib
-rw-r----- 1 nextcloud www-data 283 août 19 13:32 occ
drwxr-x— 2 nextcloud www-data 4096 août 19 13:32 ocm-provider
drwxr-x— 2 nextcloud www-data 4096 août 19 13:32 ocs
drwxr-x— 2 nextcloud www-data 4096 août 19 13:32 ocs-provider
-rw-r----- 1 nextcloud www-data 2951 août 19 13:32 public.php
-rw-r----- 1 nextcloud www-data 5139 août 19 13:32 remote.php
drwxr-x— 4 nextcloud www-data 4096 août 19 13:32 resources
-rw-r----- 1 nextcloud www-data 26 août 19 13:32 robots.txt
drwxr-x— 12 nextcloud www-data 4096 août 19 13:32 settings
-rw-r----- 1 nextcloud www-data 2232 août 19 13:32 status.php
drwxr-x— 3 nextcloud www-data 4096 août 19 13:32 themes
drwxr-x— 2 nextcloud www-data 4096 avril 8 21:23 updater
-rw-r----- 1 nextcloud www-data 362 août 19 13:32 version.php

I didn’t explain a point : I moved data folder to /home/nextcloud to get more space (/home folders are in a bigger partition than /) as edxplained in the doc of nextcloud :slight_smile:

Hi, I sent you a private message.

1 Like

Thank you @Schmu. With your archive to restore cms_pico in the appdata folder, I was able to get CMS-pico working again :slight_smile:

Have a nice evening.

1 Like