Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
owncloud [24.01.2016 11:05] – Pascal Suter | owncloud [11.02.2019 09:52] – [synchronize external caldav and carddav sources] Pascal Suter | ||
---|---|---|---|
Line 18: | Line 18: | ||
===== php-apcu ==== | ===== php-apcu ==== | ||
there seem to be some issues with the version of php-apcu that ubuntu 14.04 is currently using. owncloud 8 makes heavy use of it and therefore crashes about every hour or so when copying files because of that. the only thing that helps is to restart apache. a fix for this will soon be in the offical owncloud installation as they have added a version check and will only use php-apcu in versions they consider stable. until then, the easiest fix is to simply remove it and when you install new stuff, make sure it's not installed again on your system. this is only a temporary workaround until the version check is in their debian package | there seem to be some issues with the version of php-apcu that ubuntu 14.04 is currently using. owncloud 8 makes heavy use of it and therefore crashes about every hour or so when copying files because of that. the only thing that helps is to restart apache. a fix for this will soon be in the offical owncloud installation as they have added a version check and will only use php-apcu in versions they consider stable. until then, the easiest fix is to simply remove it and when you install new stuff, make sure it's not installed again on your system. this is only a temporary workaround until the version check is in their debian package | ||
- | ===== sabre sapi.php errors due to no ouptut buffering ===== | ||
- | it turns out that sabre which is used as webdav server library requires output buffering to be enabled.. it seems that it buffers output and then sends some header information to the client and after that flushes the output buffer.. in my php.ini output_buffering was disabled | ||
- | output_buffering = Off | ||
- | which creates tons of these error messages in owncloud.log: | ||
- | {" | ||
===== davfs2 mounts ===== | ===== davfs2 mounts ===== | ||
Line 115: | Line 110: | ||
i created a user " | i created a user " | ||
- | The ide is: the scanner creates pdf's and saves them into the hot folder. on my HP MFP i can choose to scan to a samba share and i can set the basename for the pdf it generates.. like this i will have a way to later identify where to put the OCR'd file through a bash or php script running as a cron job on my owncloud server.. | + | The idea is: the scanner creates pdf's and saves them into the hot folder. on my HP MFP i can choose to scan to a samba share and i can set the basename for the pdf it generates.. like this i will have a way to later identify where to put the OCR'd file through a bash or php script running as a cron job on my owncloud server.. |
+ | **Note** if you want ownclouds serch_lucene app to be able to index the pdf afterwards, use **PDF/A** as output format. files will be larger then with their other PDF format (actually about twice the size) but unfortunately search_lucene can't read those other pdf's. | ||
one thing needs to be taken into account here: if finereader encounters any errors while saving the parsed file, it will just not save the output and move the input file to " | one thing needs to be taken into account here: if finereader encounters any errors while saving the parsed file, it will just not save the output and move the input file to " | ||
Line 122: | Line 118: | ||
diff <(cd / | diff <(cd / | ||
+ | ===== synchronize external caldav and carddav sources ===== | ||
+ | **caution** this has only been done one-way, so that an external calender which is only changed externally gets regularly synced to owncloud. i haven' | ||
+ | prior to owncloud9 there was a sync script which did exactly that. unfortunately it no longer works with oc9 and the developer has posted that he won't fix it, so we need a new solution. | ||
+ | |||
+ | currently i am using [[https:// | ||
+ | apt-get install libxml2 libxml2-dev libxslt libxslt-dev zlib1g python python-virtualenv python-pip | ||
+ | pip install pipsi | ||
+ | pipsi --home / | ||
+ | mkdir / | ||
+ | chmod 777 / | ||
+ | now it's time to configure your vdirsyncer.. in my case i wanted to sync a html read-only source (ical format) to owncloud. here is my config file: | ||
+ | < | ||
+ | [pair photokiste] | ||
+ | a = " | ||
+ | b = " | ||
+ | collections = null | ||
+ | conflict_resolution = "a wins" | ||
+ | |||
+ | [storage photokiste_crm] | ||
+ | type = " | ||
+ | url = " | ||
+ | |||
+ | [storage photokiste_owncloud] | ||
+ | type = " | ||
+ | url = " | ||
+ | username = " | ||
+ | password = " | ||
+ | </ | ||
+ | the owncloud calendar name can be viewed by hovering over the calendar. it will appear as mouse pointer tooltip. | ||
+ | |||
+ | one thing on the ical format.. i used a library called '' | ||
+ | DTSTART; | ||
+ | and a line like this for date + time start and end dates: | ||
+ | DTSTART: | ||
+ | (PHP iCalWriter never added the ; | ||
+ | this might be an onwcloud problem, as owncloud exports the " | ||
+ | |||
+ | once the config file is written, vdirsyncer needs to be run to initialize the account. as the user who will run vdirsyncer later on run this command: | ||
+ | VDIRSYNCER_CONFIG=/ | ||
+ | now vdirsyncer can be run through cron or manually like this: | ||
+ | VDIRSYNCER_CONFIG=/ | ||
+ | |||
+ | that's it :) .. theoretically vdirsyncer should also support two way sync, but i haven' | ||
+ | ==== Update Vdirsyncer ==== | ||
+ | you can run updates using pipsi as well: | ||
+ | pipsi --home / | ||
+ | ==== fix vdirsyncer after OS upgrade ==== | ||
+ | you might just need to re-install vdirsyncer after a os upgrade because the python version behind the virtualenv changed and is no longer compatible with the environment. in that case just rename the ''/ | ||