Everything I try to do in nextcloud snap v15 stable I get the same error!

  1. I tried to change mimetypes files (both of them). Made copies for both mimetypealiases and mimetypemapping .json files from “/snap/nextcloud/current/htdocs/resources/config” and placed those copies to “/var/snap/nextcloud/current/nextcloud/config”. Then I tried loading those files.
    I cd to “/snap/nextcloud/current/htdocs” then run
    sudo -u www-data php occ maintenance:mimetype:update-js
    Error is “App directory “/snap//current/htdocs/apps” not found! Please put the Nextcloud apps folder in the Nextcloud foder or the folder above. You can also configure the location in the config.php file.”
  2. Furthermore, everything I try to do with sudo -u www-data php occ output the same error. HELP please!
  3. I also tried sudo -u www-data php nextcloud.occ maintenance:mimetype:update-js. Same error