Unable to view/sync any files after moving from shared to dedicated host

9.1.x

#1

Hi all,

I'm moving a client from a shared platform to a dedicated server as it breaches the web host's terms apparently.

The shared system was installed using the shared host install script and is currently at version 9.1.0.15. The data directory stands at 100GB. I've moved the data, config & database over to the new server and replicated the original folder path on the new server.

The issue is that all clients will not sync any data and although the data is there and visible by the clients/web interface they cannot be viewed or synced.

The error message in the activity tab on the client is:
Error transferring http://mydomain.co.uk/cloud/remote.php/webdav/Plan Centre.jpg - server replied: Service Unavailable

The last entry in apache2 error.log is:
[Mon Apr 17 08:47:10.928249 2017] [:error] [pid 23105] [client 81.138.18.115:1024] PHP Fatal error: require_once(): Failed opening required '/home/sites/mydomain.co.uk/public_html/cloud/lib/private/Route/../../../ocs/routes.php' (include_path='/home/sites/mydomain.co.uk/public_html/cloud/3rdparty/pear/console_getopt:/home/sites/mydomain.co.uk/public_html/cloud/3rdparty/pear/pear_exception:/home/sites/mydomain.co.uk/public_html/cloud/3rdparty/pear/pear-core-minimal/src:/home/sites/mydomain.co.uk/public_html/cloud/3rdparty/pear/archive_tar:/home/sites/mydomain.co.uk/public_html/cloud/3rdparty/phpseclib/phpseclib/phpseclib:/home/sites/mydomain.co.uk/public_html/cloud/lib/private:/home/sites/mydomain.co.uk/public_html/cloud/config:/home/sites/mydomain.co.uk/public_html/cloud/3rdparty:/home/sites/mydomain.co.uk/public_html/cloud/apps:.:/usr/share/php:/usr/share/pear:/home/sites/mydomain.co.uk/public_html/cloud') in /home/sites/mydomain.co.uk/public_html/cloud/lib/private/Route/Router.php on line 163

The last 10 entries in the owncloud.log are:
{"reqId":"0JioOxzl5c3hO\/LwXo+I","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33922\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:47:58+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Centre.jpg&c=6e37fe8d2e5800985d2746b6dc6e4a76&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"x5Y8YnHlRFRrXcSq8LTT","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33924\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:47:58+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Right.jpg&c=342c05c0c1190b37081895bbeb38891e&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"9wnj3\/9Hh3cHwsB6Bx8h","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33923\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:47:58+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Left.jpg&c=8efe647ec32bb6d4dc3b6dea6a2cb710&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"fFnp0QJ2aAn1o2h4swLX","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33925\/1024-720-max.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:48:14+00:00","method":"GET","url":"\/cloud\/index.php\/apps\/gallery\/preview\/33925?width=1400&height=1400&c=6edde7a8d816ebb75b64a0de64232926&requesttoken=CA8mF1koHCAmC04wC2MbXQUHFCMbAT1jUhR%2BGhMaWn4%3D%3AGgWB0OkBpo%2BRsQ%2Bo3IlqkKLWdx9JdN87CymOQcj%2BIEc%3D","user":"admin"}
{"reqId":"yW9NBwe4AdpFgIxBuK4g","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33922\/1020-568-max.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:49:45+00:00","method":"GET","url":"\/cloud\/index.php\/apps\/gallery\/preview\/33922?width=1400&height=1400&c=6e37fe8d2e5800985d2746b6dc6e4a76&requesttoken=CA8mF1koHCAmC04wC2MbXQUHFCMbAT1jUhR%2BGhMaWn4%3D%3AGgWB0OkBpo%2BRsQ%2Bo3IlqkKLWdx9JdN87CymOQcj%2BIEc%3D","user":"admin"}
{"reqId":"WWI2bksUv31jT8ZG09i5","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33923\/1024-605-max.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:49:46+00:00","method":"GET","url":"\/cloud\/index.php\/apps\/gallery\/preview\/33923?width=1400&height=1400&c=8efe647ec32bb6d4dc3b6dea6a2cb710&requesttoken=CA8mF1koHCAmC04wC2MbXQUHFCMbAT1jUhR%2BGhMaWn4%3D%3AGgWB0OkBpo%2BRsQ%2Bo3IlqkKLWdx9JdN87CymOQcj%2BIEc%3D","user":"admin"}
{"reqId":"aKVdC7Q6DhFmmKc1FlAO","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33924\/920-442-max.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T07:49:46+00:00","method":"GET","url":"\/cloud\/index.php\/apps\/gallery\/preview\/33924?width=1400&height=1400&c=342c05c0c1190b37081895bbeb38891e&requesttoken=CA8mF1koHCAmC04wC2MbXQUHFCMbAT1jUhR%2BGhMaWn4%3D%3AGgWB0OkBpo%2BRsQ%2Bo3IlqkKLWdx9JdN87CymOQcj%2BIEc%3D","user":"admin"}
{"reqId":"R3+QMhuEzcS82vCvA3Kh","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33925\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T08:12:11+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan.jpg&c=6edde7a8d816ebb75b64a0de64232926&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"+mhu14xIvZGT50k+Xksp","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33922\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T08:12:11+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Centre.jpg&c=6e37fe8d2e5800985d2746b6dc6e4a76&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"ondvdrw7S74qpudl\/wFY","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33923\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T08:12:11+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Left.jpg&c=8efe647ec32bb6d4dc3b6dea6a2cb710&x=32&y=32&forceIcon=0","user":"admin"}
{"reqId":"2bkCBcug\/ooIT\/NFR4fI","remoteAddr":"81.138.18.115","app":"PHP","message":"fopen(\/home\/sites\/mydomain.co.uk\/data\/admin\/thumbnails\/33924\/32-32.png): failed to open stream: No such file or directory at \/home\/sites\/mydomain.co.uk\/public_html\/cloud\/lib\/private\/Files\/Storage\/Local.php#278","level":3,"time":"2017-04-17T08:12:11+00:00","method":"GET","url":"\/cloud\/index.php\/core\/preview.png?file=%2FPlan+Right.jpg&c=342c05c0c1190b37081895bbeb38891e&x=32&y=32&forceIcon=0","user":"admin"}

Hopefully you can help as I really need to get this done for the client.
It's a lot to ask them to start over.

Regards


#2

I haven't read through it but it seems that you include_path is to restrictive:
https://secure.php.net/manual/en/ini.core.php#ini.include-path

On Debian, I've just .:/usr/share/php.

Independently from your problem, try to update to the latest version: https://owncloud.org/changelog/#latest9.1


#3

Hi thanks for your reply.

I've realised that the admin folder in the data file wasn't transferred across and as this was the account I was using to test the system it was showing the items due to them being present in the database however physically they wern't.

I transferred the folder across and hey presto green ticks all round.

Regards