Owncloud shows a completely white page

Hi everybody,
After a complete re-installation of dietpi, I tried to instal also Owncloud following the steps suggested on this page https://dietpi.com/docs/software/cloud/#owncloud.
The problem is that, after all the steps went well (I have an external drive and for this reason, after the Owncloud installation I went straight to the “ Create a MySQL database and user:”) trying to reach the server a blank page appear without any message or error to refer to.
Can someone help me to solve the issue?
Thanks in advance.
Alex

after the Owncloud installation I went straight to the “ Create a MySQL database and user:”)

This point I don’t understand. There is no need to create any Database or Database user. Using dietpi-software will configure everything needed and Owncloud should be working ootb.

Since I was using an external drive (the raid1 created following this tutorial: Create a RAID volume on Raspberry Pi) I followed the steps suggested where they say

Note: If you’re mounting an external hard drive for additional storage capacity skip this step and continue to Create a MySQL database then Mounting and Setting up an external hard drive underneath.

And this worked when I installed it some time ago on my first dietpi installation…
Maybe the raid volume is not considered an external drive, since it is created with mdadm software?

Sorry I’ve missed a step.
this tutorial says, in case the browser does not show the owncloud page, to use this command rm /var/www/owncloud/config/config.php in order to delete the config file.
After this, I’m able to see the first configuration screen.

The problem is solved.

Now the question is: how can I check if owncloud is using the raid or not?

Have a look into your config.php for the line ‘datadirectory’ => ',:

cat /var/www/owncloud/config/config.php

Change the path, if it’s not the path to your mounted RAID.

more info:
https://doc.owncloud.com/server/next/admin_manual/configuration/server/config_sample_php_parameters.html#define-the-directory-where-user-files-are-stored

Guys, there is no need to do any configuration. dietpi-software will setup OwnCloud completely.

ghezzia why do you belive you would need to create a database? Are you following any guide from internet? Don’t do this. OwnCloud data directory should be configured inside /boot/dietpi.txt before doing an installation.

# - Optional data directory, default is "/mnt/dietpi_userdata/owncloud_data" respectively "/mnt/dietpi_userdata/nextcloud_data", applied during install
SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data

Changing SOFTWARE_OWNCLOUD_DATADIR into /mnt/ownclouddrive/ should utilize the Raid right from beginning.

OK it think he has a drive with the dietpi installation and want to use the RAID for the data he stores on his owncloud?!

nope he is right at the beginning to try to install a new instance of Owncloud. I guess.

Honestly I followed the official guide found here: Cloud and Backup Systems Software Options - DietPi.com Docs
And here it says that if you are using an external drive, you should create a database before.
Anyway now looks like it is working… I’ve just to understand if the data are stored in the raid or not.

I’ve deleted the file because (as indicated in the topic’s title) I was not seeing the Owncloud configuration page. This was suggested in the tutorial indicated before.
So how can I check if the data are stored in the raid volume?

again, what guide you are following? Because this is not needed (usually). Can you share the exact section/link where this is stated “a database would need to be created”? Because our docs did not contain such a section. :thinking:

Bc I’m also interested in this, I searched a while for this string online :rofl:

Note: If you’re mounting an external hard drive for additional storage capacity skip this step and continue to Create a MySQL database then Mounting and Setting up an external hard drive underneath.

and I’m assuming he used this tutorial:

I guess the author of the blog didn’t get the point of purpose of DietPi at all…

No need to do this that complicated like the Mods mentioned before. You can mount external drives easily with dietpi-drive_manager and config owncloud like mentioned and shown before in the official owncloud documentation.

But I’m glad to hear it’s working for you now.
Another mystery is the deleted config.php, but it guess owncloud just generated a new one by itself.

Oh my goodness. The guide is pretty old and outdated. Based on Debian Stretch + DietPi 6.17. Stretch we ever did not support anymore and actual version is 8.2. Next to this, the guide is full of useless/obsolete thinks.

And I guess I know what happen with the empty page. Creating the database, as stated within the guide, will basically work against the configuration we do on our installation and you will damage it.

I will make sure to remove the YouTube video from our online docs.

hi again and thanks for the support. As most of you already know I’m really bad with this kind of thing but I really love making my hands dirty in order to understand.

OK, I followed an old and useless guide to implement Owncloud. Owncloud that now is working. At the same time, I would like to do everything in the best way.

What do you suggest? to re-install Owncloud from the beginning taking the risk that some action already made does not permit to re-install properly it, or keeping it as it is after having checked the raid is the right storage?

Or maybe is it enough to do some change to the actual installation? If this is the case, how can I delete/change/fix the mistakes done?

Looking better in Owncloud admin settings I suppose it is not saving data on the raid, since it shows me 2,8 GB in use with a yellow bar charged near 75% (see attached screenshot)… my raid should have 1gb of storage capacity.

before doing anything further, can you share following

cat /var/www/owncloud/config/config.php | grep datadirectory
cat /boot/dietpi.txt | grep SOFTWARE_OWNCLOUD_DATADIR

here it is:

root@DietPi:~# cat /var/www/owncloud/config/config.php | grep datadirectory
  'datadirectory' => '/var/www/owncloud/data',
root@DietPi:~# cat /boot/dietpi.txt | grep SOFTWARE_OWNCLOUD_DATADIR
SOFTWARE_OWNCLOUD_DATADIR=/mnt/dietpi_userdata/owncloud_data

it is not the raid, isn’t it?

ok do following

  1. as most important step, delete the bookmark to the guide you are following and don’t use it again

dietpi-software uninstall 47


3. ```text
rm -Rf /var/www/owncloud/

rm -Rf /mnt/dietpi_userdata/owncloud_data


5. ```text
G_CONFIG_INJECT 'SOFTWARE_OWNCLOUD_DATADIR=' 'SOFTWARE_OWNCLOUD_DATADIR=/mnt/ownclouddrive/' /boot/dietpi.txt

dietpi-software install 47


Thats it. This should install OwnCloud directly into /mnt/ownclouddrive/

ok, I’ll follow all the steps suggested.
just the last question before starting: are we sure my raid is mounted on /mnt/ownclouddrive/?
How can I check this?

thats the mount point you told us the whole time

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
df -h