Which distro/image to choose to run Nextcloud on Raspberry Pi 3?

for benchmarking can you setup the same configuration on a raspi 2 and raspi 1 :P?

Well, i do have a raspi 1 B+ but i donā€™t see any interest of making this test. We donā€™t really need tools to see that itā€™s faster on raspi 3. :slight_smile:

If you ask because you want to know if itā€™s worth to buy a 3 instead of 1 or 2 for nextcloud, i can say yes, it worth, without any doubt. My configuration were different on raspi 1 but so slow that i bought a 3 after 2 days.

the question is not whether is it faster, but how much is it.

Iā€™m interested whether nextcloud can run without problems on such a small device with the right server configuration. Iā€™m running owncloud on pi B and it is slow. Maybe it is worth to switch from apache to nginx or lighttpd.

It can

No need.


Not with apache and mysql

I need this information

Yes, the snap created for ownCloud ran very well when tuned to run on low powered devices. The key is not to run a different web server, but to use PHP-FPM. There is no need to use anything else than Apache unless you have the expertise to configure NGINX per example.

Once the Nextcloud snap is released for the Pi3, youā€™ll be able to run it yourself.

I am not talking about the pi3 but the pi1ā€¦

Youā€™re right, I misread your comment. When you mentioned ā€œcan run without problems on such a small deviceā€, I assumed you were talking about the Pi3.

My comment still stands though, on a Pi2 or Pi3, NC runs well, so it would be best to upgrade instead of trying to make it work on a device which doesnā€™t have enough RAM and CPU power.

EDIT: I donā€™t want to sound insensitive. I respect the fact that for some people a P1 or C.H.I.P might be the only option, but devices with 512MB of RAM will really struggle with NC and offer a poor experience.

So you better start topic for P1?

Get a PI3 for 37ā‚¬ :wink:

I have OC running on a PI2@Jessie@PHP7@Nginx@1ghz and its pretty ok with the file app opening in ~2seconds

If I buy another PI my PI1 will be obsolete because I have no other use-case for it. I mean there are several other cloud services which are running on the pi1 but they donā€™t have so much features like nextcloud. Thatā€™s why I was asking about the benchmark for the pi1 :stuck_out_tongue:

If I have enough time I will play around a little bit. Maybe I can speed up my server configuration.

Idea: User your Pi1 to add a local mailserver and install nagios to monitor all your own devices and services.

I just happened to create a video yesterday on how to install Nextcloud on a Raspberry Pi 3 using UBOS, a rollling-release Arch Linux derivative Iā€™ve been working on that can install web apps like Nextcloud in a single command. UBOS has the goal to take the drudgery out of installing and maintaining web apps.

While the video is fairly long, thatā€™s because it goes through every single step from downloading UBOS, writing to SD Card, connecting wires, etc.

The actual Nextcloud install is just one command with a few answers to be provided. Hereā€™s a transcript.

> sudo ubos-admin createsite
App to run: nextcloud9 
Downloading packages...
Hostname (or * for any): ubos-raspberry-pi2.local 
App nextcloud9 suggests context path /nextcloud
Enter context path:
Any accessories for nextcloud9? Enter list: 
Site admin user id (e.g. admin): admin
Site admin user name (e.g. John Doe): admin
Site admin user password (e.g. s3cr3t): 
Site admin user e-mail (e.g. foo@bar.com): test@ubos.net

This will download Nextcloud, MySQL, configure Apache virtual host, create the Nextcloud config files etc. When the command has finished executing, that hostname will have Nextcloud running. (The hostname is the default mDNS/Avahi that UBOS advertises in this case; can be changed of course)

Full-stack software updates are also just one command, as is backup and restore.

Hereā€™s the link to the video: http://ubos.net/blog/2016/07/15/nextcloud-raspberry-pi3-install-video.html.

Let me know what you think!

3 Likes

Spending time checking how much faster an RPI1 is versus RPI3 is a complete waste of time. It is not recommended to run SQL databases on RPi1, itā€™s just way too slow.

@j12t it sounds like a nice script for UBOS. But on a RPi3, using Apache and MySQL is the slowest option based on the posts I have read in this forum and others. As mentioned above there are faster alternatives like NGINX and MariaDB.

I would love to see a guide on Nextcloud.com for noobs on how to install NextCloud on a Debian based system in such a way it will be light and fast. From what I understand I have to install PHP7, NGINX, MariaDB before installing NextCloudā€¦ but how to do all this, no idea.

@zilexa: all depends on what your goals are. Obviously any RPi is not suitable to run your companyā€™s Nextcloud installation on. For easy evaluation, however, why not? The problem is actually less the RPi than the SD Cards. They are slow, and have a habit of failing more often than one would like for valuable data.
Note that UBOS runs on all sorts of hardware, including x86 PCs and cloud. The one-command installation process is the same for all, see http://ubos.net/quickstart/ .
Of course, as usual, the installation process ā€“ UBOS or not ā€“ is the easy part; keeping a system up and running is harder and more time-consuming. Thatā€™s really where UBOS shines.

Carsten Rieger did a really good job in that way :

Have a look on his blog !

2 Likes

Now also Nextcloud 10, see http://ubos.net/blog/2016/11/09/ubos-beta9-available.html

Just wanted to update my thread.
Nextcloud is working well in version 11 on my Pi3 and I am just happy.

Now its your turn. Christmas is awaiting you, tinkers!

Hello Smaig,

Did you find any guide which explains how to install on a PI3: Jessie light with php 7.0.7-5 / nginx 1.10.1/ mariaDB 10.0.24 and Nextcloud 11?
I did read and work through a lot of guides (I am a noob when it comes to servers so I really need guides), but none of them had this particular combination as far as I could find.

Do you have any suggestions on which guides to combine otherwise?

I can recommend DietPi for running any server on the Pi. It is lightweight, easy to handle and already contains lots of optimizations for the Pi running on a SD card. For example keeping the logs in the ram to minimize write access to the SD card. And there is a preconfigured nextcloud.