Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class 'OCA\\Files_Sharing\\API\\Server2Server' not found #14152

Closed
guyguy333 opened this issue Feb 12, 2015 · 12 comments
Closed

Class 'OCA\\Files_Sharing\\API\\Server2Server' not found #14152

guyguy333 opened this issue Feb 12, 2015 · 12 comments

Comments

@guyguy333
Copy link

guyguy333 commented Feb 12, 2015

Steps to reproduce

  1. Install ownCloud 8 on CentOS 7
  2. Configure MySQL
  3. Open homepage

Expected behaviour

ownCloud homepage

Actual behaviour

PHP Error :

PHP Fatal error: Class 'OCA\Files_Sharing\API\Server2Server' not found in /home/****/webapps/owncloud/ocs/routes.php on line 86

Server configuration

Operating system: CentOS 7

Web server: Apache/2.4.6

Database: 5.5.41-MariaDB

PHP version: PHP 5.4.16

ownCloud version: 8.0.0.7

Updated from an older ownCloud or fresh install: Fresh install

List of activated apps: none

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'oc******qg',
  'passwordsalt' => *** Removed for security reasons',
  'secret' => '*** Removed for security reasons',
  'trusted_domains' =>
  array (
    0 => 'cloud.******.com',
  ),
  'datadirectory' => '/home/******/owncloud/data',
  'overwrite.cli.url' => 'http://cloud.******.com',
  'dbtype' => 'mysql',
  'version' => '8.0.0.7',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'owncloud',
  'dbpassword' => '******',
  'installed' => true,
);

Are you using external storage, if yes which one: none

Are you using encryption: no

Client configuration

Browser: Safari

Operating system: OS X Yosemite

Logs

Web server error log

[Wed Feb 11 22:18:32.458784 2015] [:error] [pid 17093] [client ****] PHP Fatal error:  Class 'OCA\\Files_Sharing\\API\\Server2Server' not found in /home/****/webapps/owncloud/ocs/routes.php on line 86

ownCloud log (data/owncloud.log)

{"reqId":"27417bfe759*****ee4094","remoteAddr":"****","app":"PHP","message":"Class 'OCA\\Files_Sharing\\API\\Server2Server' not found at \/home\/****\/webapps\/owncloud\/ocs\/routes.php#86","level":3,"time":"2015-02-11T21:18:32+00:00"}
@LukasReschke
Copy link
Member

How did you install ownCloud?

cc @jnweiger This pretty sure looks like a packaging bug to me.

@jnweiger
Copy link
Contributor

@LukasReschke the CentOS7 package intalls into /var/www/html/owncloud not into home/****/webapps/owncloud -> Not a packaging issue.

@guyguy333 please check your file permissions. You probably need to give more read/write access to the apache user.

@guyguy333
Copy link
Author

I confirm, it was a file permissions problem.

Thank you

@JT089
Copy link

JT089 commented Feb 18, 2015

We´ve got the same Problem. Because of "least privilege thinking", we´d like to make only the minimum subset of files/directory writable to apache. Till now it was owncloud/apps owncloud-www/config owncloud/tmp /owncloud/data

@guyguy333 What file permissions did you change?

@pierreozoux
Copy link
Contributor

I'm hitting the same issue right now :)

@guyguy333 What file permissions did you change?

FYI, I followed this to setup file permission. Maybe, it would be good to update if needed.

@JT089
Copy link

JT089 commented Feb 19, 2015

Hey @LukasReschke,

think this issue has to be reopened. Tryed to give my www-run-user control over ALL owncloud-files, but still the same issue.

@LukasReschke
Copy link
Member

If you have similiar issues which cannot be resolved by changing the file permissions this is a different bug and needs a new report using the issue template.

@pierreozoux
Copy link
Contributor

@LukasReschke can you give us more clue about file permission? Then I can try and tell you if it is related to permission or not.

Thanks!

@JT089
Copy link

JT089 commented Feb 19, 2015

@LukasReschke: I agree to @pierreozoux - noone ever pointed out, what files permissions were changed. We both followed the "manual installation" documentation and changed the permissions accordingly

@LukasReschke
Copy link
Member

The script works quite fine here. Please post exact steps what you did.

I performed:

  1. sudo su
  2. wget https://download.owncloud.org/community/owncloud-8.0.0.tar.bz2
  3. tar -xvf owncloud-8.0.0.tar.bz2
  4. chown -R www-data:www-data owncloud/
  5. vim setup.sh and added the scripts content
  6. bash setup.sh

@VincentSC
Copy link

Just fixed it here. I had a configuration-mistake: the location of the app-directory was wrong. OC7 just fell back to the default, whereas OC8 did not. My suggestion for 8.0.3: give an error when there is a config-error like an nonexisting directory.

@lock
Copy link

lock bot commented Aug 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants