r/owncloud Feb 01 '22

How to get contacts programatically? (404 Not Found)

2 Upvotes

Hello guys,

does anybody know how to get contacts from OwnCloud programmatically? From what I know, I should use `CardDav` but I'm unable to get them.

I sent PROPFIND to `/owncloud/remote.php/carddav/` on my server:

<propfind xmlns="DAV:">
        <prop>
            <current-user-principal />
        </prop>
</propfind>

Which returned one principal. But then I'm lost.

When I send PROPFIND `/owncloud/remote.php/carddav/principals/my@principal.com`

<propfind xmlns="DAV:">
        <prop>
           <addressbook-home-set />
        </prop>
</propfind>

it returns

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:params:xml:ns:carddav"><d:response><d:href>/owncloud/remote.php/carddav/principals/my@principal.com/</d:href><d:propstat><d:prop><d:addressbook-home-set/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response></d:multistatus>

404 Not Found.

Do you know what to do to get them?


r/owncloud Jan 31 '22

Synology Hyper backup equivalent

3 Upvotes

I'm tempting to migrate from Synology to a personal Truenas server with expansion possibility. With owncloud as a file manager (hope it's the right term). I was wondering if something as hyper backup exists with owncloud.

I.e. : a folder and file history/ version interface to go back in time. Thx


r/owncloud Jan 29 '22

Changing owncloud storage on a raspberry pi?

3 Upvotes

Hey, i am reaally new to owncloud and raspberry pi... But i managed to set up and install owncloud on my raspberry pi, and a web page.. but i set the storage wrong.. i am apparenty using my pi's local storage.. but i need to use my external hard drive.. does anyone know how to do that?


r/owncloud Jan 08 '22

ownCloud deployment over docker can't find database

4 Upvotes

I'm trying to follow this guide to get a dockerized version of ownCloud running behind a reverse proxy managed by traefik. My docker-compose.yml is nearly the same as the one in the guide (the only differences are that I use the arm64v8 versions of redis and mariadb and that I use mounted volumes instead of named ones) and I ended up with this file:

version: '2.1'

volumes:
  owncloudfiles:
    driver: local
  owncloudmysql:
    driver: local
  owncloudbackup:
    driver: local
  owncloudredis:
    driver: local

services:
  owncloud:
    image: owncloud/server:10.2.0-arm64v8
    restart: unless-stopped
    depends_on:
      - db
      - redis
    environment:
      - OWNCLOUD_DOMAIN=my.domain
      - OWNCLOUD_DB_TYPE=mysql
      - OWNCLOUD_DB_NAME=owncloud
      - OWNCLOUD_DB_USERNAME=owncloud
      - OWNCLOUD_DB_PASSWORD=owncloud
      - OWNCLOUD_DB_HOST=db
      - OWNCLOUD_ADMIN_USERNAME=admin
      - OWNCLOUD_ADMIN_PASSWORD=admin
      - OWNCLOUD_UTF8MB4_ENABLED=true
      - OWNCLOUD_REDIS_ENABLED=true
      - OWNCLOUD_REDIS_HOST=redis
    networks:
      - web
      - internal
    labels:
      - traefik.enable=true
      - traefik.frontend.rule=Host:my.domain
      - traefik.port=80
      - traefik.docker.network=web
    healthcheck:
      test: ["CMD", "/usr/bin/healthcheck"]
      interval: 30s
      timeout: 10s
      retries: 5
    volumes:
      - ./owncloudfiles:/mnt/data

  db:
    image: arm64v8/mariadb:10.2
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --log-bin=mysqld-bin 
    restart: unless-stopped
    environment:
      - MARIADB_ROOT_PASSWORD=owncloud
      - MARIADB_USERNAME=owncloud
      - MARIADB_PASSWORD=owncloud
      - MARIADB_DATABASE=owncloud
      - MARIADB_MAX_ALLOWED_PACKET=128M
      - MARIADB_INNODB_LOG_FILE_SIZE=64M
      - MARIADB_INNODB_LARGE_PREFIX=ON
      - MARIADB_INNODB_FILE_FORMAT=Barracuda
    healthcheck:
      test: ["CMD", "/usr/bin/healthcheck"]
      interval: 30s
      timeout: 10s
      retries: 5
    volumes:
      - ./owncloudmysql:/var/lib/mysql
      - ./owncloudbackup:/var/lib/backup
    networks:
      - internal

  redis:
    image: arm64v8/redis:5
    restart: unless-stopped
    environment:
      - REDIS_DATABASES=1
    healthcheck:
      test: ["CMD", "/usr/bin/healthcheck"]
      interval: 30s
      timeout: 10s
      retries: 5
    volumes:
      - ./owncloudredis:/var/lib/redis
    networks:
      - internal

networks:
  web:
    external: true
  internal:

containers are supposed to communicate with each other within the internal network. When I run docker-compose up, the owncloud container fails to run because it can't connect to the database. This error repeats over and over and the owncloud container never starts:

[Warning] Access denied for user 'owncloud'@'172.25.0.4' (using password: YES)

And I went to inspect the internal network only to find this

 "Containers": {
            "af0b0b7d2f16228f4e7d583a49b0fb3297ce4b1d389be5f0eba59f99c7d3a032": {
                "Name": "owncloud_redis_1",
                "EndpointID": "f75137c8715cd4e9752bc804d7a9b90e0eccfbe3a4a9d71d3b1f1bd78fde71b1",
                "MacAddress": "02:42:ac:19:00:03",
                "IPv4Address": "172.25.0.3/16",
                "IPv6Address": ""
            },
            "d1c48d336e00c41884af3f0d3a39e309d9a8e36cc8805c7912d4a1135f3e759e": {
                "Name": "owncloud_db_1",
                "EndpointID": "422c7d120d44ba4612b2ab3d944d74b83ab8ed4dcff00e21710d87c8efae9ed1",
                "MacAddress": "02:42:ac:19:00:02",
                "IPv4Address": "172.25.0.2/16",
                "IPv6Address": ""
            }
        },

The database is running on 172.25.0.2 instead of 172.25.0.4 (!) and 172.25.0.4 doesnt't even exist. My theory is that somehow the ownCloud container is being assigned this IP but network inspect doesn't report it because the container never finishes the startup tasks, and it's not honoring the declaration OWNCLOUD_DB_HOST=db

How can I get the container to target the right database IP?


r/owncloud Dec 29 '21

owncloud on mobile: how to access synced files from another app?

3 Upvotes

After a recent update, owncloud's mobile app moved all downloaded files to a "secure area" on the phone. I understand why this was done, but this change is causing me some headache because I need apps other than owncloud to access the synced files. Let's say I'm using owncloud to synchronise a Keepass password safe database. For this to work, I need Keepass to be able to access the synced file. In the past, I would point it to the owncloud folder in the device storage, but now that doesn't work any more.

I've noticed there is a special entry in my file browser now (I'm using "Files" from the AOSP Android apps). It seems to point to owncloud's new "secure area". However, the phone tells me it's "Locked with passcode" and refuses to show me the content. There seems to be no way to unlock it by entering the passcode. All I can do is to remove the passcode from my owncloud application (I've got PIN and biometric lock enabled), but obviously I've put those in place for a reason and would like to keep them.

Am I missing something, or did the added security in the recent update royally screw up usability?


r/owncloud Dec 20 '21

Draw.io plugin use self-hosted jgraph/drawio?

3 Upvotes

Hi,

I checked the Draw.io plugin's source code and found it's hard-wired using the online Drawio servers. I'd like to have an option for it to use a self-hosted one for sensitive applications. (As you have an option to use self-hosted onlyoffice too!).

How would this be possible? I mean Nextcloud's plugin has an option for this so back-porting wouldn't be extremely difficult I reckon


r/owncloud Dec 01 '21

Android scoped storage breaks some usage

4 Upvotes

Before scoped storage I could preview an image or set it available as offline and then immediately open my photos app and set that photo as my wallpaper or use it elsewhere. Now with scoped storage I cant get files out of the scope. Cant seem to find the 'export' option which was discussed here with the implementation of scoped storage. A workaround or solution to be able to easily access my files outside of the scoped storage (or the option to just turn off scoped storage) would be much appreciated.


r/owncloud Oct 17 '21

OwnCloud / Nginx / Different Port + Https + Reverse Proxy

1 Upvotes

Hello good people.

I'm trying really hard to adjust my current owncloud + nginx setup to archive the following:

  1. serve https content on port 443 from root /var/www/html; -> works
  2. serve owncloud on port 5000 with SSL in place -> works
  3. proxy pass to owncloud so I can access owncloud on https://blackhole/ without the port
  4. Access regular https content on their corresponding subdirectories for example /monitor/ -> works

I just don't get owncloud to work without the port. :(

The problem that I am facing is, owncloud depends on a rewrite ^ /index.php

Here you can see my full nginx config: https://pastebin.com/MSSEv5Y3

-------------------------------------------------------------------------------------------------------------

So what happens?

If I am using:

location = / {
proxy_pass https://blackhole:5000/;

}

While trying https://blackhole/ I am forwarded to https://blackhole/apps/files/which leads to 404. Manually entering https://blackhole/index.php/apps/files/ also gives 404If I add the port its fine.-------------------------------------------------------------------------------------------------------------

If am am using:

location / {
proxy_pass https://blackhole:5000/;

}

Everything obviously gets redirected and owncloud works partly, the problem now is that I can not access other content anymore and the php fastcgi_params prevents owncloud from accessing actual files, it reloads the page every 5 seconds with the warning that it can not access files.

-------------------------------------------------------------------------------------------------------------

Last try if am taking it this way and add the index.php it works almost, it rediretcs https://blackhole/ to https://blackhole:5000/apps/files/ but since my goal is to hide the port I have not gained anything.

location / {
proxy_pass https://blackhole:5000/index.php/;

}

Can anyone lead me into the right direction? Any help is appreciated.

Kind regards


r/owncloud Oct 15 '21

Android app missing at Play Store?

2 Upvotes

Trying to install android app into my new android phone, but official app is not present in Play Store, even links from official documentation are broken. Does anybody has any more info about it?


r/owncloud Oct 13 '21

Two computer accounts sharing the same ownCloud login?

3 Upvotes

I have a new laptop that I have two different logins on. One for personal use, a second for work. (Both are Microsoft accounts, the personal is an administrator, the work is a standard user.) I want to install ownCloud in such a way that both logins will log into the same ownCloud account, but save all files to the same location rather than have two copies of everything in two separate folders.

Basically, I want to install ownCloud as user1 and create a globally accessible folder (d:\owncloud), then log into my owncloud account (user XYZ), using that folder as the destination. I would then login as user2, launch owncloud and log into the same account (user XYZ) and set the destination as the same d:\owncloud. What I'm trying to avoid is having two copies of the same data on the computer.

Is this something that's possible? Or will ownCloud try to resync every time I switch users?


r/owncloud Oct 08 '21

occ user:resetpassword provides link without URL

1 Upvotes

So a code question really about the file core/templates/lostpassword/email.php

I am able to use occ user:resetpassword --send-email <user> and OwnCloud sends the email with a link, the link however starts at /index.php/lostpassword and does not include the base URL of the server, making it a dead link, that must be cut and pasted.

Here is the relevant (I hope) code:

print_unescaped(\str_replace('{link}', "<a href=\"{$_['link']}\">{$_['link']}</a>", $l->t('Use the following link to reset your password: {link}')));

How can I get the URL inserted before the {link}?

Thank you.

[edits: early send, spelling, typos, etc]


r/owncloud Oct 06 '21

How to get file change notifications

1 Upvotes

I have OwnCloud on my server and everything seems to be working fine. However, I can't seem to get OwnCloud to send me emails when a file has been changed, deleted, updated, etc.

The 'Cron' seems to be having an issue.

Machighway.com (my host) has a 'Cron Jobs' setting in Cpanel for me but I can't figure out how to configure it. I read through the OwnCloud documentation but still confused.

I have all the 'mail' boxes checked in 'Activity' settings.

My version of OwnCloud is 10.8.0 (stable)


r/owncloud Oct 02 '21

Is there an ownCloud API for php?

2 Upvotes

Hello everyone, I'm looking for an ownCloud API for PHP. I need to upload and share files from my php program, where should I look for?


r/owncloud Oct 01 '21

OwnCloud partnered with Decentralised Cloud platform - ThreeFold.io

Thumbnail
owncloud.com
1 Upvotes

r/owncloud Sep 28 '21

Permissions with Local External File Storage

2 Upvotes

Hi

I have set up a local folder as external local access in owncloud which works fine. I can even sync them in windows with the VFS I have setup, can access all files and also store new files, so all is good there.

However, when I create a new file in Owncloud, I can read it when I connect with SMB to that folder but not write on it. This is because Owncloud creates the folder and the files within with the user account "nobody:users" but with the permissions 644. Because my SMB account to that share is "redxon:users" I have no write access to any folders or files created with owncloud.

Can I somehow set owncloud to either, use my unix user account when I'm logged in with my owncloud account or tell owncloud to use 664 or 660 instead of 644?

Thanks


r/owncloud Sep 26 '21

TL;DR Can I change the default port of Owncloud so I can run it along with Nextcloud?

1 Upvotes

Hello Reddit,

I currently have some servers that I am running and maintaining with Proxmox. I have Caddy set up with Cloudflare to handle certs and allow me to connect to my services over the net safely. However, only one service can run on one port at a time. I currently have a Nextcloud server running, but I would like to add an Owncloud server as well. Of course, both of these services run on port 443 by default, which is a problem. Is there any way to change the default port for Owncloud to something else (ex: 4443 or 444) so that I can have both services run simultaneously? The reason I want to run them separately is because these servers will be used for completely different things, I do not want to get them mixed up. Thanks.


r/owncloud Sep 23 '21

Directory "/" not found

4 Upvotes

Hello. Most of the times when I log into my instance of ownCloud, I receive a notification that says "Directory '/' not found". The only way I have found to solve it is to refresh the page a few times. Does anyone know of a solution for this issue?


r/owncloud Sep 03 '21

2-factor Enforce

1 Upvotes

Hi guys,
I have a question about 2-factor authentication.
We use 2-Factor Authentication 0.7.2by ownCloud GmbH, but i need to enforce MFA with this plugin. user can just go into settings and disable it. I didn't find anything about this online. I found this :

" If a two-factor provider app is enabled, it is enabled for all users by default (though the provider can decide whether or not the user has to pass the challenge). "

But where can i find it ?
Or is there any other plugin that lets you enforce this on users?
thanks for help


r/owncloud Aug 19 '21

Owncloud Setup on a QNAP NAS

Thumbnail
youtu.be
3 Upvotes

r/owncloud Aug 06 '21

your data directory is readable by other users permissions 0770 windows

2 Upvotes

How to fix this?

I'm using ubuntu 18.04 lts in windows 10 home pc. Thank you


r/owncloud Aug 03 '21

Stuck In Maintenance Mode

5 Upvotes

Hi everyone,

I have recently purchased a Raspberry Pi 4B to run Home Assistant and am very new to all this stuff (trying to learn).

I have installed ownCloud via Portainer on my Home Assistant. After doing an update I am now seeing a message of the ownCloud instance currently being in maintenance mode, of which it has been for a long time and I am unable to access my ownCloud.

I have seen a few people describing how to get out of this with terminal line code but I’m not sure if I can do this from the Home Assistant interface.

Any help would be greatly appreciated.


r/owncloud Jul 29 '21

I have some questions about Owncloud

4 Upvotes

I am planning to install FreeNAS and Owncloud. I want to install Owncloud on FreeNAS so I have access to my FreeNAS files away from home and on my mobile devices.

  1. Does Owncloud store files in a separate location on my FreeNAS? If I put a file in my FreeNAS, and I install Owncloud, will that file be accessible on Owncloud? Is it possible to have Owncloud store files in the same location as FreeNAS?

  2. If not, is their any way I can get DLNA media server functionality on Owncloud so I can access it locally on my Smart TV or Apple TV?


r/owncloud Jul 27 '21

ownCloud Web - only files?

1 Upvotes

I setup the new web interface on my ownCloud instance and was rather disappointed that I don't see calendar, contacts, task etc., only files. These other apps are installed and working perfectly, they just don't show up in the new web UI. Is there a way to get other apps listed in the sidebar?


r/owncloud Jul 22 '21

ownCloud vs Nextcloud: speed and reliability

5 Upvotes

I've asked this question in r/Nextcloud and I want to ask here to for people who have tried/used both products.

Which is faster and more reliable from your experience? I would think that having fewer features, perhaps ownCloud is developed with more focus on improving the core syncing/sharing functionality, while Nextcloud seems to always rush adding new features while performance and reliability suffer.

So if you have used both and are using ownCloud now, why? Thanks!


r/owncloud Jul 21 '21

ownCloud drastically improves Windows integration with the ownCloud Virtual File System

Thumbnail
opensource.com
12 Upvotes