Install Nextcloud from dietpi-software, reboot and login to the web interface
_This application enables a pop-up window when a user first logs into Nextcloud. This window welcomes new users to Nextcloud, and contains links to the standard desktop client, Android app, and the iOS app. The window also shows a link for accessing Nextcloud via WebDAV. At any time, the first run wizard button can be opened again via the link on the personal page. The First run wizard can be customized to meet specific design goals, or to change links and messages. Create an appropriate theme following the Theming documentation, and changes to the look and feel of this Wizard are simple. More information is available in the First run wizard documentation, as well as the theming documentation._
There is no first run wizard link on the personal page. All I need to do is select my mounted external drive to be the main nextcloud storage and I don't have that option.
The install itself went smoothly with no perceptible errors. Installed several times with same results.
@minnux
@MichaIng 's answer is better ๐ https://github.com/Fourdee/DietPi/issues/2359#issuecomment-449563163
Hi,
DietPi install of Nextcloud automates the initial setup with user + password as set during 1st run of system setup.
The default data directory is:
/mnt/dietpi_userdata/nextcloud_data
There is no first run wizard link on the personal page. All I need to do is select my mounted external drive to be the main nextcloud storage and I don't have that option.
In DietPi we have a system called userdata (https://dietpi.com/phpbb/viewtopic.php?f=8&t=478). Nextcloud data directory can be moved by moving the DietPi userdata directory.
@minnux
That is the expected behaviour on our install.
The first run wizard is to setup database and admin user, but we already do this for you during our software config step. Simply log in via "admin" "dietpi", respectively the global password you chose on DietPi first run or dietpi.txt. Check out: https://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=3026#p3026
This prevents you from setting up the database and allows us to do further setup of memory caching, file locking and other things.
This application enables a pop-up window when a user first logs into Nextcloud.
What you mention there is not the first run setup wizard, but the login prompt. This however should appear also when installing via DietPi. Report back, if it is missing as well, but just tested locally and it appears here.
About userdata: You can move the Nextcloud data directory also via /DietPi/dietpi.txt to a location outside of the DietPi global userdata, if desired. But this needs to be done prior to running the installation.
Hello and thank you for the reply. These are the steps I have tried so far.
Nextcloud errors out during install and fails to install.
Nextcloud directory still shows EMMC being used as data directory when using web interface.
What should be my next option? I can provide exact error messages when I get home.
@minnix
Nextcloud directory still shows EMMC being used as data directory when using web interface.
Note that userdata is moved via symlink, so Nextcloud does not know that the actual location is on external drive.
Many users did already report the issue to install Nextcloud when userdata was already moved. We were still not able to reproduce the issue. It was the MariaDB install that actually failed, right?
โฌ: Just tried it again:
Your external drive is attached via USB, I guess, and which file system + GPT/MBR did you use to format?
And is it powered via dedicated power supply or only via USB?
I will now change the install procedure so that MariaDB is first installed to the default directory and then moved+symlinked to userdata afterwards, which should resolve the issue... But still since the solution is not very clean and creates unnecessary writes to SDcard first + addition step/risk when copying everything to external drive, I would like to find out under which circumstances it fails. I even installed it our current way on real device: RPi2 with external docking station attached via USB, moving userdata there, then installing Nextcloud afterwards. It was a fresh install, however the database files did already exist on external drive, since I just ported an existing instance of Nextcloud+database to newly setup system.
I'm sorry it's the holidays and I don't have much time but wanted to at least get back to you with some info since you've been so kind as to help me so far and for providing this wonderful software.
External HDD is powered by external power and is 2 TB Western Digital formatted as ext4, GBT, and I formatted using entire disk instead of partition using drive_manager. Maybe using partition option instead will make a difference?
It's connected via USB 3 on rockpro64, the error messages were definitely pertaining to MariaDB you are correct.
I'm sorry I can't give you more data at this time as I'm away from home and don't have access to my machine via SSH, but I will provide more info as soon as I get back.
@minnux
No worries, enjoy holidays ๐!
The info was already helpful, so default FS+partition table.
I will retry to format the whole drive as well, but AFAIK there is no difference, as long as you use a single partition anyway. Formatting whole drive will create a new partition table with one single partition.
On VM I used USB1 due to lack of VBox extension package, but will retry with it, just to be sure. Also I will switch tests to a real x86 notebook. I always forget that I have one left for testing ๐.
Ok sorry for the delayed reply. I started over, reinstalled dietpi, and reformatted the HDD. I noticed that (I think) partition or whole drive option was missing now in the drive manager when I reformatted, and (I think) mariadb loads before php when installing Nextcloud. It was going by so fast that I didn't have time to take notice. Whatever changed though, it seems to have worked. Everything is up and running smoothly. The only problem I had was when trying to install Nextcloud Talk through dietpi-software, I got the error message that spreed could not install, but I was successfully able to install Talk through the Nextcloud web interface.
@minnux
I also recognized the issue with Nextcloud Talk. It is due to installing apps via occ
command requires Redis to run and we start MariaDB only. Fixed with: https://github.com/Fourdee/DietPi/pull/2333/commits/d0f5827ca8e2e749eb0eb2feadc2f7b881f1f131
Great that it finally worked. How did you do it now, move userdata before or after Nextcloud install?
I booted a fresh install of dietpi, went through the menus, but didn't install anything, then exited dietp-launcher at which point it says it will reboot . After reboot I used drive_manager to format the external drive to ext4 gpt, rebooted again, after startup I then moved userdata to external drive, tested data throughput, looked good so rebooted again (I voluntarily rebooted quite a bit just because I wanted no mistakes). Next I installed Nextcloud, rebooted, then certbot and configured through let's encrypt, rebooted, logged into nextcloud via web and everything was great. So far so good. Thanks again for the help.
@minnux
Okay great. It leaves the question open for me, why MariaDB in some cases fails to install with moved database. I am still thinking about switching the install procedure as mentioned above, but actually would love to find out the root cause.
Reboot after drive formt and moving userdata should be not required. However it does not hurt either and for sure is more failsafe ๐.
Yes I figured I went overboard with the reboots but I was so tired of re-installing I didn't want any f ups this time lol.
Mark as closed due to general cleanup. Question answered, this particular issue solved.
Most helpful comment
Yes I figured I went overboard with the reboots but I was so tired of re-installing I didn't want any f ups this time lol.