Nextcloud Snap users, please list the issues you're facing

snap

#62

Actually, I am not really aware of the limitations. Regarding to the official guide, there seem to be none. How does the snap compare to the official VM? Would the VM be more flexible? Thanks, by the way.


#63

The VM is much more flexible and comes with more apps. The snap puts Nextcloud on a read-only partition and cant be integrated with some tools like Collabora Online or Nextant.


#64

Snap on Ubuntu Server installs in, well… , a snap! I’ve had no issues getting it up and running.

I’m still tinkering with a manual install on a NC Box.


How to change path "localhost"
#65

It installs easily, no doubt. Question was more about how does it run once installed. Seems to have a lot of limitations.


#66

I have Nextcloud Snap running on my Pi3 with Ubuntu Core. Everything works fine on my local network, but I’d like to set up dynamic DNS so I can access my Nextcloud over the internet. The curl command is not installed in Ubuntu Core by default, so cron jobs that use curl don’t work. I’ve installed the consul snap and healthcheck-tool-box example snap, which has the curl command, but I haven’t figured out how to get the snaps to talk to one another.


#67

So just for my understanding again… when using the Snap, we are unable to install any plugins because the snap directories are not writable from “the outside”?

Is there a complete list of all limitations/restrictions of the Snap?


#68

No, you can install apps from the app store, but these can’t used external services such as Spreed, Solr or Collabora Online.
The main limitations are:

  • No tuning of Apache, PHP or MYSQL configurations
  • Rolling releases
  • No advanced features such as SMB or LDAP

Https enabled and now cant connect
#69

i don’t know how to troubleshoot my problem with my nextcloud box. since a couple of days it just stopped working - i’m unable to access it through browser, caldav sync (thunderbird) or nextcloud sync client (linux desktop and mobile). davdroid on android says “500 internal server error”. however, i can still ssh into the box, and have updated repositories and upgraded the available packages.

i started a thread, hopefully in the right subsection?


#70

Hi. I have installed nextcloud as snap and it is very easy. It only took me a few minutes with ssl configured. You need the ports 80 and 443 free before, so you should have configured your ports in apache if you run another services.

The files of user are in /var/snap/nextcloud/common/nextcloud/data/. But I need to configure the files in other partition. If I can not to modify the apache configuration, how can I do this?


#71

Ok… so my box crashed. Don’t ask me why I was not there. However taking the SD card out and fscking it on another machine seemed to do the trick but left me with loads of nextcloud errors. So I left it while I had other things to do. I login today and wow… Nextcloud was updated automatically and no more errors! Neat. That is the advantaged of snaps I guess.

However, I am still a little perturbed I cannot install tinc via snaps in fact there seem to be no real progress on snap development at all for things like duplicity or anything else to sync backups with,

Is it just me or has development on the nextcloud box stalled? I still don’t see an official RPi3 image and wondering what the hell is taking the time. I mean I explained how I installed it on a RPi3 so you cannot tell me it cannot be done. So why is everyone dragging their feet?

I am having mixed feelings about the nextcloud box now. I was under the impression it was under active development. Now it is feeling a bit more like an after thought.


#72

Themes and Email Templates. The only theme listed is “example” and I can edit the HTML but get an error when trying to save it. - “Could Not Create Directory” (that’s because it is a read only file system)

Also, how do you back up the Nextcloud Snap?
Can’t rsync the read only file system.

Is anyone working on Nextcloud Snap specific documentation
(things do work a bit differently when installed as a snap)


#73

Moving an existing Let’s Encrypt Certificate

My Nextcloud is running fine using the snap. A Let’s Encrypts Certificate was easily obtained with help of the nextcloud.enable-https script.

It’s for the moment a theoretical question, but I am curious nonetheless.

How to move and reuse an existing Let’s Encrypt Certificate from a snap to a new fresh nextcloud snap environment?

  • Use somehow the custom option of the nextcloud.enable-https script ?
  • Simply copy the certficiate data from var/snap/nextcloud/current/certs/certbot/config to the same folder at the new snap environment and run the nextcloud.enable-https script with the lets-encrypt option ?
  • Something else ?

#75

snap.nextcloud.apache.service failed to start any idea how to fix tried the following:

reboot
disabled and re-enabled snap.nextcloud.apache.service
restarted snap.nextcloud.apache.service
stopped and started snap.nextcloud.apache.service just encase reboot and restart was too fast.


#76

Hi,
I get this error when entering sudo snap install nextcloud :

error: cannot communicate with server: Post http://localhost/v2/snaps/nextcloud: dial unix /run/snapd.socket: connect: no such file or directory

#77

File encryption

Hi there ! I’ve tried to encrypt my files as I would do in a non-snap install but I discovered that,although no I have no error messages, the files are not encrypted (nor on external storage, nor on home directory (when activated).
I guess, it’s probably due to the fact that the snap installation changes the location of the datas.
Has someone else experienced this ?

EDIT : 24/10 : Everything is actually working for the files uploaded after the enabling of encryption as written in the fine manual


#78

@Oddyza enabling encryption in the Nextcloud snap works for me. I’m confused by your mentioning the “home directory” though. Why would the snap be putting anything there? Are you talking about syncing?

Note that once you enable encryption, it only matters for files you upload afterward-- it does nothing with the files that are already there.


#79

@kyrofa you are right : everything is working. Confusion came from the fact that encryption was enabled after the server was loaded with user files. My mistake.
(home directory was a bad and unhappy shortcut to refer to files on the nextcloud server and not external)


#80

The nextcloud snap renders its own update impossible, because the MySQL database fills all available disk space.
Recently, I wondered, why my nextcloud snap does not update to the recent version. It turned out that snapd tried to do the update but failed. Investigation of the problem showed, that snapd always keeps the last three versions of the snap on disk (including the data below /var/snap/…). During update of the snap the contents of the current directory get copied (I saw the “cp” command running in top).
The mysql database of my nextcloud snap is 19GB. It turned out that on my root partition there was only 2,2 GB of empty space.
The solution seemed clear: extend root partition to have at least 19GB of free space, so that the snap could be copied during update. That’s what I did. I shrank “/home” and increased “/” to have about 30GB of free space. The snap successfully upgraded to the last version after that.

All well? Well, not. After the update I saw “mysqld” running wild on my disk. The process ran for about two days, then stopped and guess what now? There’s again only 2,2 GB of free space on my root partition. The database filled up all of the disk space I added! Since there’s now only 2,2 GB of space, the next update of the nextcloud snap will inevitably fail again, and there’s nothing I can do. I can’t add disk space with each update.

This seems like a serious problem with the nextcloud snap.
How can I change the MySQL config to not eat up all disk space??


#81

Yikes, how much data do you have? My Nextcloud snap instance is managing over 1TB of data and my entire MySQL directory is 312MB.

You’re right that snapd keeps three backups for rollback capability. However, if you feel comfortable only having the current one and the one before, you can ask snapd to remove specific revisions (e.g. the oldest one you have) like this:

$ sudo snap remove nextcloud --revision <revision>

#82

Hi Kyle,
thanks for your answer – that’s important information for me. I don’t have a second nextcloud instance to compare to, so it’s important to know that 19 GB database size (20 GB as of today) is wrong. I have tried to investigate the cause of the problem and highly appreciate help & ideas. Here’s what I found:

  • My nextcloud used to manage roughly 1TB of data, most of them located on external storage (external disks attached to my server).

  • External storage was included through nextcloud’s “external storage” app as “Local”.

  • The mysql database is located on my root device below /var/snap/nextcloud/current/…

  • I have found that almost all of the 20GB is located in a single table, the file cache:

    root@helge:~# ls -lh /var/snap/nextcloud/current/mysql/nextcloud/oc_filecache.*
    -rw-r----- 1 root root 21K Jan 8 2017 /var/snap/nextcloud/current/mysql/nextcloud/oc_filecache.frm
    -rw-r----- 1 root root 19G Nov 27 15:17 /var/snap/nextcloud/current/mysql/nextcloud/oc_filecache.ibd

  • This file seems to grow and grow, but never shrinks.

  • I have since removed all external storage from my nextcloud instance:

    root@helge:~# nextcloud.occ files_external:list --all
    No mounts configured

  • The data managed by my nextcloud instance is now only 4,3 GB (compared to 1 TB before). Surely this should reduce the file cache?

  • I have called “files:scan” and “files:cleanup”, but to no effect:

    root@helge:~# nextcloud.occ files:cleanup
    0 orphaned file cache entries deleted

Here’s something I don’t understand: there should be thousands of orphaned entries now that most of the data is gone!

=> I suspect that my file cache table is somehow broken, but I don’t know how to fix it. I believe I should clear the table and reproduce it, but I do not know how to do that. I am not well versed with databases. Can you assist me with that?

Help & comments appreciated,
cheers, Rüdiger