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

Fix errors after install #21923

Merged
merged 1 commit into from
Jan 27, 2016
Merged

Fix errors after install #21923

merged 1 commit into from
Jan 27, 2016

Conversation

LukasReschke
Copy link
Member

When installing ownCloud the first time the first thing that an admin saw was an error message:

touch(): Unable to create file /Users/lukasreschke/Documents/Programming/master/data/owncloud.log because No such file or directory at /Users/lukasreschke/Documents/Programming/master/lib/private/log/owncloud.php#55

Or something related. This lead to a lot confusion as can be seen in our forum and in our issue tracker. This change should make the error messages disappear in most cases (e.g. where the file can actually be written). To test this:

  1. On master install ownCloud and check owncloud.log => Error message
  2. On this branch install ownCloud and check owncloud.log => No error message
  3. Test the same with a custom config file ee.config.php in the config folder that contains:
<?php
$CONFIG = array (
    'logfile' => '/tmp/yolo.log',
);

adjust index.php to contain something like \OC::$server->getLogger()->critical('yo'); so that an error get logged. Ensure that /tmp/yolo.log is used.

Fixes #13736 and #12893


@karlitschek Should make you happier as well. Heard you ranting about this some time ago 😉
@MorrisJobke @rullzer @DeepDiver1975 Mind testing?

When installing ownCloud the first time the first thing that an admin saw was an error message:

> Error   PHP   touch(): Unable to create file owncloud.log because Permission denied at /var/www/owncloud/lib/private/log/owncloud.php#48

Or something related. This lead to a lot confusion as can be seen in our forum and in our issue tracker. This change should make the error messages disappear in most cases (e.g. where the file can actually be written). To test this:

1. On master install ownCloud and check owncloud.log => Error message
2. On this branch install ownCloud and check owncloud.log => No error message

Fixes #13736 and #12893
@LukasReschke LukasReschke added this to the 9.0-current milestone Jan 26, 2016
@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @bantu, @bartv2 and @nickvergessen to be potential reviewers

@MorrisJobke
Copy link
Contributor

Tested and works 👍

@rullzer
Copy link
Contributor

rullzer commented Jan 27, 2016

👍

DeepDiver1975 added a commit that referenced this pull request Jan 27, 2016
@DeepDiver1975 DeepDiver1975 merged commit 816c23c into master Jan 27, 2016
@DeepDiver1975 DeepDiver1975 deleted the fix-errors-after-install branch January 27, 2016 15:16
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PHP Error fopen directly after installation/setup
5 participants