PhilM
Is anyone using or attempting to use Nextcloudpi on a quadra? I realize it might be a little light for heavy small office use, but for home, just me and my wife, it might work with a fan-and-stand?
 
mod81
Another user on this forum posted they had set up nextcloud on one of these boxes and it appeared to be running OK. See their post below

https://forum.inovato.com/post/t95-mini-overheating-issue-work-around-12549049?pid=1334548935
Reply 0 0
adneblett
Hello all,
 
I have been using my T95Max with the quadra firmware, for the past few weeks, as a Nextcloud and Home Assistant Server. My device has the heat sink firmly glued to the SoC and I haven't been able to lift it and reinstall it (I fear I may damage it if I apply some force) to improve the temperature issues, so I had to reduce the cpu use to 3 to avoid overheating and shutdowns.
 
My nextcloud server does feel a little bit slow, but it is stable. Possibly because the upload speed from my ISP is not great. I purchased a 1TB pen drive from Aliexpress (for like $7 + shipping) and I am awaiting its arrival to use it with nextcloud. I plan to use nextcloud to backup pictures from my cellphone and my wive's. Home Assistant is also pretty neat to keep track and control devices at home.
 
To install Nextcloud, I used the web installation script and folllowed the instructions on this site:
 
You basically install dependencies (which include Apache, PHP, MariaDB and a few others), create a MySQL DB for nextcloud, create a folder accesible from the web, give nextcloud the necessary permissions, download the installation script and then point your browser to the script. Note that if you want to use an external memory as the main storage for nextcloud, you have to mount it first (before installing nextcloud) assign the permissions to the www-data user and then install nextcloud on that drive.
 
Hope my experience with NC is of any help to you guys.
 
-Alexander
Reply 0 0
mod81
 
adneblett wrote:
 
I purchased a 1TB pen drive from Aliexpress (for like $7 + shipping)
 
 
Be VERY wary of USB drives, SSDs, SD cards etc that claim large storage amounts and are very cheap on Aliexpress as they are usually fakes, so your 1TB drive might only have 32GB or at best 64GB storage that has been hacked to report it as 1TB to the operating system, but once you filled up the actually storage it just begins to overwrite the older files. https://www.youtube.com/watch?v=tPHYVJHN6LY
I would run one of the apps listed on here https://www.raymond.cc/blog/test-and-detect-fake-or-counterfeit-usb-flash-drives-bought-from-ebay-with-h2testw/ to test to see if the drive is fake before you rely on it to store your data.
Reply 1 0
adneblett
Great piece of advice @mod81. Will definitely test first.
Reply 0 0
adneblett
mod81 wrote:
 
Be VERY wary of USB drives, SSDs, SD cards etc that claim large storage amounts and are very cheap on Aliexpress as they are usually fakes, so your 1TB drive might only have 32GB or at best 64GB storage that has been hacked to report it as 1TB to the operating system, but once you filled up the actually storage it just begins to overwrite the older files.
 
Yep, the USB drive was fake, it did not pass the tests. Pretty naive of me to purchase something as fishy as a $7 1 TB usb drive. I just hope this thread helps others to avoid committing the same mistake.
 
Back to the topic of this discussion, my nextcloud server keeps running fine on a 32 GB SD card (from a reputable non-Aliexpress brand).
Reply 0 0
tonyg123in603
Nextcloudpi as an image won't function properly on quadra, as the firmware is very different, and it's designed for a Raspberry Pi SBC. HOWEVER.. In addition to Alexander's excellent post, if you're like me and not the best at LAMP/LEMP stack ins and outs (or if it's too much of a hassle), I can offer you yet another alternative to run NC on quadra/T95 On my quadra,I have it running syncing my phone (photos, videos, calendar), with a few users.. CPU temp is at about 50 C at about 20% of RAM without a fan (although full disclosure, I do have it standing on end next to my SATA enclosure, all of which is 2 feet from a drafty window)
 
TLDR - I was able to get NC running on a quadra with an external SATA enclosure running an old 1TB HDD. I did it using Docker and Docker Compose (bind-mounting the external drive). It saved me the steps of setting up a LAMP/LEMP and it doesn't suck (the overhead of the docker daemon wasn't a show-stopper). For those who would like to know more about my adventure (and maybe try it out yourself), read on for details.
 
I have a domain name with my DNS name servers at Cloudflare using their free tier. I'm using Cloudflare Zero Trust tunnel daemon (cloudflared) to act as a reverse proxy (I'm happy to share how to set that up with anyone who needs it).
 
1. I installed docker engine. Docker website has a convenient install script if you wish to use it
$ curl -fsSL  https://get.docker.com  -o  get-docker.sh 
$ sudo sh ./ get-docker.sh  --dry-run
2. Used fdisk-l to locate the HDD partition (/dev/sda1), mounted it.
$ sudo mkdir -p /media/hdd && sudo chmod 775 /media/hdd && sudo mount /dev/sda1 /media/hdd

3. Created the directories I would need to run Nextcloud, and the Docker Compose file
$ cd /media/hdd
$ mkdir -p nextcloud data db apps config
$ nano compose.yml
4. I wrote the following Docker Compose that you can use if you wish
services:
  db:
    image: mariadb:10.6
    restart: always
    command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - /media/hdd/db:/var/lib/mysql:z
    environment:
      - MARIADB_AUTO_UPGRADE=1
      - MARIADB_DISABLE_UPGRADE_BACKUP=1
      - MYSQL_ROOT_PASSWORD=<root-password>
      - MYSQL_PASSWORD=<db-password>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  redis:
    image: redis:alpine
    restart: always
  app:
    image: nextcloud:latest
    container_name: nextcloud
    restart: always
    ports:
      - 8080:80 # The left number is the port that is visible to the proxy/LAN and can be modified to suit your needs. If using cloudflare tunnel, use this port number to specify this service (localhost:8080) The right number should not be changed.
    depends_on:
      - db
      - redis
    volumes:
      - /media/hdd/nextcloud:/var/www/html:z
      - /media/hdd/apps:/var/www/html/custom_apps
      - /media/hdd/config:/var/www/html/config
      - /media/hdd/data:/var/www/html/data
    environment:
      - MYSQL_PASSWORD=<db-password>
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - NEXTCLOUD_TRUSTED_DOMAINS= nextcloud.example.com  <ip address if necessary> localhost 172.0.0.1 inovato.local #list all the ways you would call up this instance
      - OVERWRITEPROTOCOL=http #for reverse proxy
 
5. Run sudo docker compose up -d.
6. **known "issue" with cron and background jobs**. By default, background jobs in nextcloud are set to ajax - which is less than ideal. It's recommended to use a system cron service to call "cron.php" as user "www-data". You CAN try to do it using systemd and make a service like nextcloudcron.service and nextcloudcron.timer, but I found it much easier to use systrem cron. To schedule a cron using the container user "www-data", run
$ sudo crontab -e
Then add the cron entry at the bottom of the file. This passes the user option through the docker command. At 5 minute  intervals, the system will run a docker command on the nextcloud container, telling the container to execute the file "cron.php"  as the webserver user.
*/5 * * * * docker exec -u www-data nextcloud php -f /var/www/html/cron.php
7. You may get notification in your administrative settings warning you that your using an http port and that HSTS is not set. If you are using cloudflare tunnel or a reverse proxy such as nginx proxy manager, the SSL/https is handled by those services. 
 
8. Enjoy the rest of the adventure with your nextcloud instance. To update nextcloud, go to the directory where you saved your compose.yml file. run
$ sudo docker pull nextcloud:latest
 
Remove the containers and old application image (your data is preserved in the bind mounts in the "nextcloud" "db" "apps" "config" directories)
$ sudo docker compose down && sudo docker image prune
Power it all back up with
 
$ sudo docker compose up -d
 
Reply 0 0
tonyg123in603
One thing I accidentally left out, to edit the /etc/fstab file after mounting the external drive. I used 
$ sudo nano /etc/fstab
and for the references in my prior post, added the /dev/partition to the /media/mountpoint with the filesystem (ext4) and default options. This was added to the end of the file.
/dev/sda1  /media/hdd  ext4  defaults 0  0
 
Reply 0 0
Reply