Jump to content

NextCloudPi on Armbian ( tested odroid HC1 )


Recommended Posts

 

 

NextCloudPi has different variants. There is a docker version, there's the curl installer (the one included in softy), and the SD card versions (and the x86 VM).  

 

I Try both it looks like that the Curl installer doesn't work docker version works for me  

 

 

if there is no support for your board, or even better, you can help me support yet another board

ok I will look your link, of course I'm ready to help you for support Orange Pi Pc + 

 

 

 

Link to comment
Share on other sites

@yogui  @esbeeb @Igor and the rest

 

The curl installer (and softy) should be fixed now. Still testing it but if you want to try it out and confirm that would be great.

Also generating an image for the OrangePi Zero Plus 2, should be uploaded to ownyourbits.com/downloads/testing shortly

 

I managed to have Sury provide a php7.2-redis package for armhf, so it shouldn't break again ;)

Looking for somebody to test the banana pi image (I don't own one), and if you guys want images for any board not yet supported just tell me.

Link to comment
Share on other sites

1 hour ago, nachoparker said:

@yogui  @esbeeb @Igor and the rest


The curl installer (and softy) should be fixed now. Still testing it but if you want to try it out and confirm that would be great.

Ok I will try it asap and give you a feedback

 

Quote


and if you guys want images for any board not yet supported just tell me.

If some other peaple need an image for OrangePi PC+ why not but if I'm the only one who use this board for NCP it is not necesary, it's to much job for one guy :)

 

Link to comment
Share on other sites

I completely re-installed Armbian using the latest Armbian_5.65_Nanopineocore2_Debian_stretch_next_4.14.78.7z.  Now my resolv.conf is looking much better (and no longer contains a pesky "nameserver 8.8.8.8" line at the start), it now contains:

# Generated by NetworkManager
search fritz.box
nameserver 192.168.0.254

Before running the NCP installer from softy, this time around I was smart enough to:

  1. Set the timezone within armbian-config
  2. Update the system clock, using: sudo ntpdate -s ntp.ubuntu.com
  3. Change the hostname to "nextcloudpi" in armbian-config, then reboot.
  4. Make sure "host nextcloudpi" and "host nextcloudpi.fritz.box" both resolved properly, and they did.
Link to comment
Share on other sites

@nachoparker, during the nc-init, I saw the output generated:

System config value trusted_domains => 1 set to string 192.168.0.137
System config value trusted_domains => 5 set to string nextcloudpi.local
System config value trusted_domains => 7 set to string nextcloudpi
System config value trusted_domains => 8 set to string nextcloudpi.lan

It would be nice if the trusted_domains also set "nextcloudpi.fritz.box", having seen "search fritz.box" in my /etc/resolv.conf

Link to comment
Share on other sites

Yay, the Nextcloud install worked really well.  The trick was to completely reflash the MicroSD card with the latest Armbian first

 

After the NCP installation was all done successfully, when I visited the URL with no FQDN (just https://nextcloudpi and https://nextcloudpi:4443), then it all worked well.

 

Edit: I was able to get my FQDN working well with the following command, as root:

sudo -u www-data /var/www/nextcloud/occ config:system:set trusted_domains 9 --value=nextcloudpi.fritz.box

 

Link to comment
Share on other sites

I have installed Armbian 5.86, stable and installed NCP through Softy.  However, when I connect to IPADDR:4443 or https://nextcloudpi there is nothing to be found or connection refused.  Is there some magic sauce used to get NCP working on Armbian?  I even went back into Softy and reinstalled it but it keeps the * next to it as it's already installed.  T_T 

Link to comment
Share on other sites

Hello there,

struggeled to get ncp running on armbian odroidHc2 and had no luck.
My skills are not good enough for that.
Do You have any idea when

# curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | bash will be working again? untill now it ends with

Installing NextCloudPi...
ERROR: distro not supported:
Debian Buster with Armbian Linux \l

Would really aprecheate Your help

Link to comment
Share on other sites

Hello, I'm trying to install NextCloud on Armbian Stretch , using armbian-config. The board is Cubietruck.

It fails on installation:

Quote

Reading state information... Done

ca-certificates is already the newest version (20161130+nmu1+deb9u1).
sudo is already the newest version (1.8.19p1-2.1).
wget is already the newest version (1.18-5+deb9u3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
/tmp/nextcloudpi.2y1pVz /home/ubuser
/home/ubuser

Installing NextCloudPi...
ERROR: distro not supported:
Debian GNU/Linux 9 \n \l

 Softy - Armbian post deployment scripts, https://www.armbian.com

So, this is impossible now?

I've tried to install it on Armbian Buster before, but got some errors too. I'll try once more and post log there, any help is appreciated.

Link to comment
Share on other sites

On Armbian Buster install process lasts for a long time and finishes with some errors:

Quote

Setting up dphys-swapfile (20100506-5) ...
Job for dphys-swapfile.service failed because the control process exited with error code.
See "systemctl status dphys-swapfile.service" and "journalctl -xe" for details.
invoke-rc.d: initscript dphys-swapfile, action "start" failed.
* dphys-swapfile.service - dphys-swapfile - set up, mount/unmount, and delete a swap file
   Loaded: loaded (/lib/systemd/system/dphys-swapfile.service; disabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-09-18 14:05:31 MSK; 104ms ago
     Docs: man:dphys-swapfile(8)
  Process: 651 ExecStart=/sbin/dphys-swapfile setup (code=exited, status=0/SUCCESS)
  Process: 683 ExecStart=/sbin/dphys-swapfile swapon (code=exited, status=255/EXCEPTION)
 Main PID: 683 (code=exited, status=255/EXCEPTION)

Sep 18 14:05:31 cubietruck systemd[1]: Starting dphys-swapfile - set up, mount/unmount, and delete a swap file...
Sep 18 14:05:31 cubietruck dphys-swapfile[651]: computing size, want /var/swap=4040MByte, restricting to config limit: 2048MBytes, generating swapfile ... of 2048MBytes
Sep 18 14:05:31 cubietruck dphys-swapfile[683]: swapon: /var/swap: swapon failed: Invalid argument
Sep 18 14:05:31 cubietruck systemd[1]: dphys-swapfile.service: Main process exited, code=exited, status=255/EXCEPTION

Sep 18 14:05:31 cubietruck systemd[1]: dphys-swapfile.service: Failed with result 'exit-code'.
Sep 18 14:05:31 cubietruck systemd[1]: Failed to start dphys-swapfile - set up, mount/unmount, and delete a swap file.
dpkg: error processing package dphys-swapfile (--configure):
 installed dphys-swapfile package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for systemd (241-7~deb10u1) ...
Errors were encountered while processing:
 dphys-swapfile

E: Sub-process /usr/bin/dpkg returned an error code (1)
Running nc-init
Setting up a clean Nextcloud instance... wait until message 'NC init done'
Setting up database...
Setting up Nextcloud...
Nextcloud was successfully installed
Set mode for background jobs to 'cron'
System config value tempdirectory set to string /var/www/nextcloud/data/tmp
System config value mysql.utf8mb4 set to boolean true
System config value trusted_domains => 11 set to string 178.57.XX.XX
System config value trusted_domains => 1 set to string 178.57.XX.XX
System config value trusted_domains => 5 set to string nextcloudpi.local
System config value trusted_domains => 7 set to string nextcloudpi
System config value trusted_domains => 8 set to string nextcloudpi.lan
System config value mail_smtpmode set to string sendmail
System config value mail_smtpauthtype set to string LOGIN
System config value mail_from_address set to string admin
System config value mail_domain set to string ownyourbits.com
cp: cannot stat '/var/www/ncp-app': No such file or directory
 Softy - Armbian post deployment scripts, https://www.armbian.com

I do not know if these are critical errors or not. I have activated 4GB swap partition /dev/sda2 on the hard drive in /etc/fstab.

The final status is "Nextcloud was successfully installed", but http://ip or http://ip/nextcloud redirects to https and shows "Not Found. The requested URL / was not found on this server."

I don't know what to do next, help please.

Link to comment
Share on other sites

2 hours ago, nachoparker said:

@Ubuser what is the filesystem in `/var`?

Quote

ubuser@ncp:~$ df -h /var
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       145G  1.2G  142G   1% /
 

ubuser@ncp:~$ df -T
Filesystem     Type     1K-blocks    Used Available Use% Mounted on
udev           devtmpfs    959996       0    959996   0% /dev
tmpfs          tmpfs       205844    9236    196608   5% /run
/dev/sda1      btrfs    151552000 1257916 148334596   1% /
tmpfs          tmpfs      1029208       0   1029208   0% /dev/shm
tmpfs          tmpfs         5120       4      5116   1% /run/lock
tmpfs          tmpfs      1029208       0   1029208   0% /sys/fs/cgroup
tmpfs          tmpfs      1029208       4   1029204   1% /tmp
/dev/mmcblk0p1 ext4       7532668  971984   6456680  14% /media/mmcboot
/dev/sda2      ext4       4596980 2115676   2228072  49% /media/swap
/dev/zram0     ext4         49584    1024     44976   3% /var/log
tmpfs          tmpfs       205840       0    205840   0% /run/user/1000
 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines