Owncloud installation fail on raspberry pi

Dear all, I run into the same error each time I try ton install owncloud app through the Web interface.
I searched on the forum and did not find any clues about similar issue.
Can you help me?
Here is the log displayed (starting where it seems curious, before that there are only success instructions…

+ sudo su -c 'php ow-setup --adminlogin=admin --adminpass=ImvADIDaW6McnI2bjcchRNTB --directory=/home/yunohost.app/owncloud/data --dbtype=mysql --dbuser=owncloud --dbpass=ImvADIDaW6McnI2bjcchRNTB --dbname=owncloud --dbhost=localhost --trusted_domain=admin.roisdemajorque.com' owncloud
	
		
		
		ownCloud		
		
		
		
		
		
		
		
					
					
					
					
					
					
					
					
					
					
					
					
					
							
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
					
	
		
	
		
			This application requires JavaScript for correct operation. Please enable JavaScript and reload the page.		
	
		
			
									
						
							
								
									ownCloud								
							
							
						
					
								
		

		Error

				
							Can't create or write into the data directory /home/yunohost.app/owncloud/data					
			
			

		Create an admin account

		
			
				placeholder="Username"
				value="admin"
				autocomplete="off" autocapitalize="off" autocorrect="off" autofocus required>
			Username
			
		
		
			
				placeholder="Password"
				value="ImvADIDaW6McnI2bjcchRNTB"
				autocomplete="off" autocapitalize="off" autocorrect="off" required>
			Password
			
			
			
			
		
	
		

		Storage & database 

	
		

		
			Data folder
			
				placeholder="/var/www/owncloud/data"
				value="/home/yunohost.app/owncloud/data"
				autocomplete="off" autocapitalize="off" autocorrect="off">
		
	
		

				Configure the database

		
						
			Only MySQL/MariaDB is available.			Install and activate additional PHP modules to choose other database types.
			
				For more details check out the documentation. ↗
		
		
						
	
				

		
			
				Database user
				
					placeholder="Database user"
					value="owncloud"
					autocomplete="off" autocapitalize="off" autocorrect="off">
			
			
				
					placeholder="Database password"
					value="ImvADIDaW6McnI2bjcchRNTB"
					autocomplete="off" autocapitalize="off" autocorrect="off">
				Database password
				
				
			
			
				Database name
				
					placeholder="Database name"
					value="owncloud"
					autocomplete="off" autocapitalize="off" autocorrect="off"
					pattern="[0-9a-zA-Z$_-]+">
			
						
				Database host
				
					placeholder="Database host"
					value="localhost"
					autocomplete="off" autocapitalize="off" autocorrect="off">
			
		
		
	
			

			Performance warning

			
SQLite will be used as database.
			
For larger installations we recommend to choose a different database backend.
			
Especially when using the desktop client for file syncing the use of SQLite is discouraged.
		
	
	
		
		Need help?		See the documentation ↗
	
				
			
		
		
			
				ownCloud – web services under your control			
		
	
+ sudo sed -i 's@public static function checkInstalled() { return;@public static function checkInstalled() {@g' /var/www/owncloud/lib/base.php
+ sudo rm -f /var/www/owncloud/ow-setup
+ cd /var/cache/yunohost/from_file/owncloud_ynh-79666fc25925fb60c770565eae2f2075cdc8d76b/scripts
+ sleep 2
+ mysql -u owncloud -pImvADIDaW6McnI2bjcchRNTB owncloud -e 'select * from oc_appconfig;'
+ echo 'Owncloud is not properly installed'
Owncloud is not properly installed
+ exit_properly

Thanks for your time

From my point of view, the database is not created because the instruction with php displays a form instead of creating the database… Is it supposed to do this ? maybe a new step in owncloud installation process which is not handled by yunohost moulinette ?
Please help me, the main reason why I installed yunohost was the good integration of the apps with sso, it was supposed to set up automatically and since the beginning, the installation is a pain ;-(

I just attempted the installation with the moulinette... here is the (failed, obviously) result :smile:
     admin@raspberrypi:/home$ sudo yunohost app install owncloud                                                                                                                                                                                                                                 
   [...]                                                                    
    + sudo apt-get update -qq                                                                                                                                     
    W: GPG error: http://http.debian.net wheezy-backports Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKE
    Y 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010                                                                                                                 
 [...]                                                                    
    + gpg --import ../sources/owncloud.asc                                                                                                                        
    gpg: WARNING: unsafe permissions on configuration file `/home/admin/.gnupg/gpg.conf'                                                                          
    gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/admin/.gnupg/gpg.conf'                                                      
    gpg: key F6978A26: "ownCloud <info@owncloud.com>" not changed                                                                                                 
    gpg: Total number processed: 1                                                                                                                                
    gpg:              unchanged: 1                                                                                                                                
    + gpg --verify ../sources/owncloud-8.2.0.tar.bz2.asc ../sources/owncloud-8.2.0.tar.bz2                                                                        
    gpg: WARNING: unsafe permissions on configuration file `/home/admin/.gnupg/gpg.conf'                                                                          
    gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/admin/.gnupg/gpg.conf'                                                      
    gpg: Signature made Mon 19 Oct 2015 15:29:31 CEST using RSA key ID F6978A26                                                                                   
    gpg: Good signature from "ownCloud <info@owncloud.com>"                                                                                                       
    gpg: WARNING: This key is not certified with a trusted signature!                                                                                             
    gpg:          There is no indication that the signature belongs to the owner.                                                                                                                                                                 
[...]
    + sudo su -c 'php ow-setup --adminlogin=admin --adminpass=w08FRg6KlZSth7KIgh09h8MH --directory=/home/yunohost.app/owncloud/data --dbtype=mysql --dbuser=ownclo
    ud --dbpass=w08FRg6KlZSth7KIgh09h8MH --dbname=owncloud --dbhost=localhost --trusted_domain=admin.roisdemajorque.com' owncloud                                 
    <!DOCTYPE html>                                                                                                                                               `indent preformatted text by 4 spaces`                                                
            <head data-requesttoken="e0f5bc3e168f66ae94343ab66040688ab805f67fb39816cf837f49525a9d429f|gWfSYFZCLa1A6BuH|4be3536dccd8078e3273db04bdf42e86a99d5fb0fad
    4913d6f38cd42d24a137bd6f2b120e59fe2e26b2fbe2d172999b44f5c7574e1dbdc964fe45ef2d4725cf5:4zuAFn4P7F">                                                            
                    <meta charset="utf-8">                                                                                                                        
                    <title>ownCloud </title>                                                                                                              

[…]

[…]





This application requires JavaScript for correct operation. Please enable JavaScript and reload the page.









ownCloud













Error


Can’t create or write into the data directory /home/yunohost.app/owncloud/data




Create an admin account



Username




Password







Storage & database



Data folder




Configure the database


Only MySQL/MariaDB is available. Install and activate additional PHP modules to choose other database types.


For more details check out the documentation. :arrow_upper_right:








Database user




Database password




Database name



Database host




 


Performance warning

SQLite will be used as database.


For larger installations we recommend to choose a different database backend.


Especially when using the desktop client for file syncing the use of SQLite is discouraged.



            <p class="info">                                                                                                                                      
                    <span class="icon-info-white svg"></span>                                                                                                     
                    Need help?              <a target="_blank" href="https://doc.owncloud.org/server/8.2/go.php?to=admin-install">See the documentation ↗</a>     
            </p>
    </form>  
                                    <div class="push"></div><!-- for sticky footer -->                                                                            
                            </div>                                                                                                                                
                    </div>                                                                                                                                        
                    <footer role="contentinfo">                                                                                                                   
                            <p class="info">                                                                                                                      
                                    <a href="https://owncloud.org" target="_blank" rel="noreferrer">ownCloud</a> – web services under your control                
            </p>                                                                                                                                                  
                    </footer>                                                                                                                                     
            </body>                                                                                                                                               
    </html>                                                                                                                                                       
    + sudo sed -i 's@public static function checkInstalled() { return;@public static function checkInstalled() {@g' /var/www/owncloud/lib/base.php                
    + sudo rm -f /var/www/owncloud/ow-setup                                                                                                                       
    + cd /var/cache/yunohost/from_file/owncloud_ynh-79666fc25925fb60c770565eae2f2075cdc8d76b/scripts                                                              
    + sleep 2                                                                                                                                                     
    + mysql -u owncloud -pw08FRg6KlZSth7KIgh09h8MH owncloud -e 'select * from oc_appconfig;'                                                                      
    + echo 'Owncloud is not properly installed'                                                                                                                   
    Owncloud is not properly installed                                                                                                                            
    + exit_properly                                                                                                                                               
    + set +e                                                                                                                                                      
    ++ sudo cat /etc/yunohost/mysql                                                                                                                               
    + root_pwd=fawDLwHwuP                                                                                                                                         
    + mysql -u root -pfawDLwHwuP -e 'DROP DATABASE owncloud ; DROP USER owncloud@localhost ;'                                                                     
    + sudo rm -f /etc/php5/fpm/pool.d/owncloud.conf                                                                                                               
    + sudo killall php5-fpm                                                                                                                                       
    + sudo service php5-fpm start                                                                                                                                 
    + sudo userdel owncloud                                                                                                                                       
    + sudo rm -Rf /var/www/owncloud                                                                                                                               
    + exit 1                                                                                                                                                      
    ++ exit_properly                                                                                                                                              
    ++ set +e                                                                                                                                                     
    +++ sudo cat /etc/yunohost/mysql                                                                                                                              
    ++ root_pwd=fawDLwHwuP                                                                                                                                        
    ++ mysql -u root -pfawDLwHwuP -e 'DROP DATABASE owncloud ; DROP USER owncloud@localhost ;'                                                                    
    ERROR 1008 (HY000) at line 1: Can't drop database 'owncloud'; database doesn't exist                                                                          
    ++ sudo rm -f /etc/php5/fpm/pool.d/owncloud.conf                                                                                                              
    ++ sudo killall php5-fpm                                                                                                                                      
    ++ sudo service php5-fpm start                                                                                                                                
    ++ sudo userdel owncloud                                                                                                                                      
    userdel: user 'owncloud' does not exist                                                                                                                       
    ++ sudo rm -Rf /var/www/owncloud                                                                                                                              
    ++ exit 1                                                                                                                                                     
    Error: Installation failed