Problem to access owncloud

So you commented out the redirect, restarted your webserver and tried the ip again and it's the same error?

What does the log say at /var/www/owncloud/data/owncloud.log

The file is located on an external hd connected to the raspberry, the path then is: /home/username/data/owncloug.log

GNU nano 2.2.6 File: owncloud.log

{"reqId":"ByO5wqgsFP+BfRDbLJKJ","remoteAddr":"79.26.194.145","app":"core","message":"Trusted domain error. \"79.26.194.145\" tried to access using \"79.26.194.145\" as host.","leve$
{"reqId":"6ktBErQSjS8Lr4n+roin","remoteAddr":"79.26.194.145","app":"core","message":"Trusted domain error. \"79.26.194.145\" tried to access using \"79.26.194.145\" as host.","leve$
{"reqId":"Ec71TsECt8ZEe7TunOdY","remoteAddr":"79.26.194.145","app":"core","message":"Trusted domain error. \"79.26.194.145\" tried to access using \"79.26.194.145\" as host.","leve$
{"reqId":"rf1z1Jud3k47Lh+O3tqv","remoteAddr":"192.168.1.13","app":"no app in context","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Me$
{"reqId":"CDJHSFo17pYG92nDgXvd","remoteAddr":"192.168.1.13","app":"no app in context","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Me$
{"reqId":"ghXZXqI8ASenCPwsEE7e","remoteAddr":"192.168.1.13","app":"no app in context","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Me$
{"reqId":"ZG13xwgqkr+DG+FDN65V","remoteAddr":"192.168.1.13","app":"no app in context","message":"Exception: {\"Exception\":\"Doctrine\\DBAL\\Exception\\DriverException\",\"Me$
{"reqId":"AbdMhijTBRsfM5HaeUoo","remoteAddr":"91.252.218.189","app":"core","message":"Login failed: 'neno' (Remote IP: '91.252.218.189')","level":2,"time":"2017-02-26T11:16:06+00:0$
{"reqId":"NT6QwU09HRHuBzyqmWIo","remoteAddr":"91.252.218.189","app":"core","message":"Login failed: 'neno' (Remote IP: '91.252.218.189')","level":2,"time":"2017-02-26T11:16:29+00:0$
{"reqId":"MwWR\/f8DpstlwXY6p5B7","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/L$
{"reqId":"MwWR\/f8DpstlwXY6p5B7","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exte$
{"reqId":"JFSSm1bxujpcVsCuXCVO","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/Li$
{"reqId":"JFSSm1bxujpcVsCuXCVO","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exter$
{"reqId":"Rx6VvAwGTBlVJUL9rik0","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/Li$
{"reqId":"Rx6VvAwGTBlVJUL9rik0","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exter$
{"reqId":"d92EQTFYvR9BLdwznnN1","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/Li$
{"reqId":"d92EQTFYvR9BLdwznnN1","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exter$
{"reqId":"PsE2YOsI32tCrKKX1ym2","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/Li$
{"reqId":"PsE2YOsI32tCrKKX1ym2","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exter$
{"reqId":"UC\/EAWuYVw+WHMlOgtok","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): connect() failed: No route to host at \/var\/www\/owncloud\/apps\/files_external\/lib\/L$
{"reqId":"UC\/EAWuYVw+WHMlOgtok","remoteAddr":"192.168.1.13","app":"PHP","message":"stat(): stat failed for ftp:\/\/xxx:xxx@192.168.1.11\/ at \/var\/www\/owncloud\/apps\/files_exte$
{"reqId":"fcXqDHEBhjkmssiR\/1B5","remoteAddr":"192.168.1.27","app":"PHP","message":"Undefined index: files at \/var\/www\/owncloud\/apps\/files_trashbin\/ajax\/undelete.php#31","le$
{"reqId":"Oy0RSjRKrU+flNqDixhM","remoteAddr":"192.168.1.34","app":"core","message":"Login failed: 'enza' (Remote IP: '192.168.1.34')","level":2,"time":"2017-03-04T09:48:58+00:00","$
{"reqId":"m85vDzjAJFCc9b3Mc9aQ","remoteAddr":"37.119.115.102","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\/1.1 400 I caratteri di 4 byte non sono supportati nei nomi$
{"reqId":"W2YiLvNV6v77SoqxN4lZ","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"yHFGu5qbC1rtL+5UzI96","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"VQyp114SobtqFmmck3rY","remoteAddr":"192.168.1.56","app":"core","message":"Login failed: 'consu' (Remote IP: '192.168.1.56')","level":2,"time":"2017-03-10T11:05:25+00:00",$
{"reqId":"veioAZ6hWOSFasVeQxIA","remoteAddr":"192.168.1.56","app":"core","message":"Login failed: 'consu' (Remote IP: '192.168.1.56')","level":2,"time":"2017-03-10T11:05:34+00:00",$
{"reqId":"6ZhPsOTBAZbtIDjKybY8","remoteAddr":"37.119.115.102","app":"core","message":"Login failed: 'milf' (Remote IP: '37.119.115.102')","level":2,"time":"2017-03-10T12:03:38+00:0$
{"reqId":"G\/9oAehxSOUUpWYIiNLZ","remoteAddr":"37.119.115.102","app":"core","message":"Login failed: 'milf' (Remote IP: '37.119.115.102')","level":2,"time":"2017-03-10T12:03:47+00:$
{"reqId":"8AKRELMHdhm5sduRG4ss","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"ZVWOpvi1SvN5SZVSRoqa","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"Om088dP7L3hsF3SRxEjJ","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"nyPIYr8ua5J1aWcNv+Ks","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"0tw6vLvofn2FWTcFhTSN","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"tPMsQSVwYfimUQlYshwR","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"QwtpMsm88ZOX\/PVNYKTN","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03$
{"reqId":"QNZS57ezdwvdTHezojIE","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03-$
{"reqId":"9tPyhFKQSOcrOG\/9Hc3c","remoteAddr":"37.119.115.102","app":"files","message":"Upload error: 3 - Il file \u00e8 stato caricato solo parzialmente","level":3,"time":"2017-03$
{"reqId":"bn3oHqG\/lDwqpXhVsgrE","remoteAddr":"192.168.1.58","app":"PHP","message":"POST Content-Length of 1153502063 bytes exceeds the limit of 947912704 bytes at Unknown#0","leve$
{"reqId":"i69iyNQjPdn6C336hyHx","remoteAddr":"192.168.1.58","app":"PHP","message":"Maximum execution time of 30 seconds exceeded at Unknown#0","level":3,"time":"2017-03-11T13:28:34$
{"reqId":"kzkamJP1pmHviEAvZZ+e","remoteAddr":"192.168.1.58","app":"PHP","message":"POST Content-Length of 1153502063 bytes exceeds the limit of 947912704 bytes at Unknown#0","level$
{"reqId":"hSuiLTqO7OhwzENAd90f","remoteAddr":"192.168.1.58","app":"PHP","message":"Maximum execution time of 30 seconds exceeded at Unknown#0","level":3,"time":"2017-03-11T13:37:36$
{"reqId":"f\/u75CgZALF++OU\/S8Gy","remoteAddr":"192.168.1.58","app":"PHP","message":"POST Content-Length of 1153502063 bytes exceeds the limit of 947912704 bytes at Unknown#0","lev$
{"reqId":"7OdE+3zNZyLOlE9cm4la","remoteAddr":"192.168.1.58","app":"PHP","message":"Maximum execution time of 30 seconds exceeded at Unknown#0","level":3,"time":"2017-03-11T15:24:43$
{"reqId":"NvvyN8lk7Ky4sM79uVFx","remoteAddr":"192.168.1.58","app":"PHP","message":"POST Content-Length of 1153502063 bytes exceeds the limit of 947912704 bytes at Unknown#0","level$
{"reqId":"sqtivPxt0+uQMUtxEXeS","remoteAddr":"192.168.1.11","app":"PHP","message":"Maximum execution time of 30 seconds exceeded at Unknown#0","level":3,"time":"2017-03-11T15:44:46$
{"reqId":"gyVpCHPvhWaq3FIdIP5e","remoteAddr":"5.168.206.47","app":"PHP","message":"Argument 8 passed to OC\Core\Controller\AvatarController::__construct() must implement interfa$
{"reqId":"gDLQFKeJO3cTCnf3aG7\/","remoteAddr":"5.168.206.47","app":"PHP","message":"Argument 8 passed to OC\Core\Controller\AvatarController::__construct() must implement interf$
{"reqId":"h+T1x6YcyNro6iUhnitF","remoteAddr":"37.119.115.102","app":"core","message":"Login failed: 'milf' (Remote IP: '37.119.115.102')","level":2,"time":"2017-03-12T00:35:48+00:0$
{"reqId":"mnwgsozqPsEPM9SgEtpz","remoteAddr":"37.119.115.102","app":"PHP","message":"POST Content-Length of 956610872 bytes exceeds the limit of 947912704 bytes at Unknown#0","leve$

I edited the file /etc/apache2/sites-enabled/000-default.conf:


# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    Redirect permanent / https://example.com/

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf

vim: syntax=apache ts=4 sw=4 sts=4 sr noet

when I connected to the cloud (with http) I get this:

Okay, so you have changed your data directory then?

This means that you have to add your IP ( from what you are accessing ownCloud ) to the trusted domains in your config php

comment out that entire line.

like this

# Redirect permanent / https://example.com/

I was writing it: P getting you # I get the error 404

when you type in your browser the IP of your raspberry pi you get a 404?

now the config.php file...

<?php
$CONFIG = array (
'updatechecker' => false,
'instanceid' => 'ocwderuhvut8',
'passwordsalt' => 'Qal8OANXbv7ZpQjVKxjbN2Wdif8SET',
'secret' => '1jGe0VMtuTnpw/iXfzxeKI7a0TFTQo5Hn3tOU/jzpmksLDlT',
'trusted_domains' =>
array (
0 => '192.168.1.9',
1 => 'zweisamkeit.hopto.org',
2 => '',
),
'datadirectory' => '/home/nemo/data',
'overwrite.cli.url' => 'http://192.168.1.9/owncloud',
'dbtype' => 'mysql',
'version' => '9.1.6.2',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'gianluca',
'dbpassword' => 'hope87',
'logtimezone' => 'UTC',
'installed' => true,
'memcache.local' => '\OC\Memcache\APC',
'mail_smtpmode' => 'smtp',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
);

I changed the line:
'overwrite.cli.url' => 'http://192.168.1.9/owncloud',

Okay, can you try accessing your web Server, to see if that works.

Just type in your servers IP, you should see the default Apache Site.

If that works try adding /owncloud to the IP.

For now, try without https.

I would also comment out the overwrite.cli.url.

Also you need to add your IP to the Trusted domains array

typing only the IP I leave the message that apachi 2 is running

IP changed it during installation, and it is always the same ... sometimes changes the external ip, but for some time I stopped updating it ... for the file you asked me, where do I find it?

Okay, and IP/owncloud gives you the 404 Error?

The IP of your ownCloud is the same, or it should be, the IP of the computer from where you accessing onwCloud can change, so you need to add him to the trusted domains in your config.php

what file?

in config.php is set the IP from which I can access only from the home line, is the IP I use to connect to mycloud and I have never changed it

this: overwrite.cli.url.

I meant this line in your config.php that you posted earlier.

yes, this ip is always the same, i just took https and left http

can you comment out that line to see if the error still persists?

This line tells your web server that he should do something.

with the commented line loading the page I get the message:

Do you still have the redirect? O_o

I rededited the line in question leaving only http, when I load the cloud page I get the error 404

can you try to just write a "#" before that line and open the ip/owncloud https page?