troubleshooting.rst 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Troubleshooting
  2. ===============
  3. If the client fails to start syncing it basically can have two
  4. basic reasons: Either the server setup has a problem or the client
  5. has a bug. When reporting bugs, it is crucial to find out what part
  6. of the system causes the problem.
  7. Here are a couple of useful steps to isolate the problem.
  8. :A general ownCloud Server test:
  9. A very first check is to verify that you can log on to ownClouds web
  10. application. Assuming your ownCloud instance is installed at
  11. ``http://yourserver.com/owncloud``, type
  12. ``http://yourserver.com/owncloud/`` into your browsers address bar.
  13. If you are not prompted to enter your user name and password, or if you
  14. see a red warning box on the page, your server setup is not correct or needs
  15. fixes. Please verify that your server installation is working correctly.
  16. :All desktop clients fail to connect to ownCloud:
  17. The ownCloud syncing use the built in WebDAV server of ownCloud.
  18. Verify that you can log on to ownClouds WebDAV server. Assuming your ownCloud
  19. instance is installed at ``http://yourserver.com/owncloud``, type
  20. ``http://yourserver.com/owncloud/remote.php/webdav`` into your browsers
  21. address bar.
  22. If you are prompted, but the authentication fails even though the credentials
  23. your provided are correct, please ensure that your authentication backend
  24. is configured properly.
  25. :Use a WebDAV command line tool to test:
  26. A more sophisticated test is to use a WebDAV command line client and log
  27. into the ownCloud WebDAV server, such as a little app called cadaver, available
  28. on Linux. It can be used to further verify that the WebDAV server is running
  29. properly, for example by performing PROPFIND calls:
  30. ``propget .`` called within cadaver will return some properties of the current
  31. directory and thus be a successful WebDAV connect.
  32. Logfiles
  33. ========
  34. Doing effective debugging requires to provide as much as relevant logs as
  35. possible. The log output can help you with tracking down problem, and if you
  36. report a bug, you're advised to include the output.
  37. :Client Logfile:
  38. Start the client with ``--logwindow``. That opens a window providing a view
  39. on the current log. It provides a Save button to let you save the log to a
  40. file.
  41. You can also open a log window for an already running session, by simply
  42. starting the client again with this parameter. Syntax:
  43. * Windows: ``C:\Program Files (x86)\ownCloud\owncloud.exe --logwindow``
  44. * Mac OS X: ``/Applications/owncloud.app/Contents/MacOS/owncloud --logwindow``
  45. * Linux: ``owncloud --logwindow``
  46. It is also possible to directly log to a directory, which is an useful option
  47. in case the problem only happens ocassionally. In that case it is better to
  48. create a huge amount of data, as the log window has a limited buffer.
  49. To write logs to disk, start the client with ``--logfile <file>``, where
  50. ``<file`` is the file you want to log to, or ``--logdir <dir>``, where ``<dir>``
  51. is an existing directory. In case of ``--logdir``, each sync run will create a
  52. new file.
  53. :ownCloud server Logfile:
  54. The ownCloud server maintains an ownCloud specific logfile as well. It can and
  55. must be enabled through the ownCloud Administration page. There you can adjust
  56. the loglevel. It is advisable to set it to a verbose level like ``Debug`` or
  57. ``Info``.
  58. The logfile can be viewed either in the web interface or can be found in the
  59. filesystem in the ownCloud server data dir.
  60. :Webserver Logfiles:
  61. Also, please take a look at your webservers error log file to check if there
  62. are problems. For Apache on Linux, the error logs usually can be found at
  63. ``/var/log/apache2``. A file called ``error_log`` shows errors like PHP code
  64. problems. A file called ``access_log`` usually records all requests handled
  65. by the server. Especially the access_log is a very good debugging tool as the
  66. log line contains a lot of information of every request and it's result.
  67. More information about the apache logging can be found at
  68. ``http://httpd.apache.org/docs/current/logs.html``.