Webtop nextcloud integration fails

I Installed the NexCloud (https://nexcloud.mydomain.tld) and Webtop5 (https://webtop.mydomain.tld) and configured it following the documentation: https://nethserver.docs.nethesis.it/en/master/webtop5.html#nextcloud-integration

It’s not possible to add NextCloud resources, exactly like other users.

It seems, the problem is not resolved.

It tried different recommended combinations of host, vhost, ralative path ad so on.
Sincerely, MArko

Is possibile that you have installed NextCloud 20?

No, thats the package from software center.

I just installed a clean machine following the documentation: everything works fineScreenshot from 2020-11-04 12-02-58

Could you please paste the error?

(I moved the topic to the webtop support category).

1 Like

or

or

or

or

always I get:
image

that’s all

@Marko:

Have you activated OTP at NC?

Grüße…

Uwe

yes, I have for the login, not for NextCloud

This is the correct configuration if nextcloud is configured without virtual host.

If nextcloud is configured with a virtualhost, make sure to add the host name as alias of the server (otherwise name resolution could not work) and add the same name to “Trusted domains” inside Cockpit Nextcloud app.
In this case, the correct configuration is (just tested):
Screenshot from 2020-11-04 14-26-11

If you are not on one of this situations, pllease help us to help you :slight_smile:
Share your nextcloud config and report back the webtop log and nextcloud log.

2 Likes

make sure to add the host name as alias of the server (otherwise name resolution could not work) and add the same name to “Trusted domains” inside Cockpit Nextcloud app.

…have it both

here my configs

[root@ns-srv01 ~]# config show nextcloud
nextcloud=configuration
    HonorAdStartTls=disabled
    TrustedDomains=dargels.de,nextcloud.dargels.de,collabora.dargels.de,webtop.dargels.de
    VirtualHost=nextcloud.dargels.de
    Wellknown=disabled
[root@ns-srv01 ~]# config show webtop
webtop=configuration
    ActiveSyncLegacyIds=enabled
    ActiveSyncLog=ERROR
    DavServerLog=ERROR
    DavServerUrl=https://webtop.dargels.de/webtop-dav/server.php
    Debug=false
    DefaultLocale=en_US
    DefaultTimezone=Europe/Berlin
    DefaultToolbarIconsSize=medium
    MaxMemory=1024
    MinMemory=512
    PbxProvider=
    PbxProviderNethvoiceWebrestUrl=
    PublicUrl=https://webtop.dargels.de
    RemoteCalendarAutosync=enabled
    RemoteCalendarAutosyncOnlywhenonline=disabled
    RemoteCategoryAutosync=enabled
    RemoteCategoryAutosyncOnlywhenonline=disabled
    VirtualHost=webtop.dargels.de
[root@ns-srv01 ~]#

Please also post the output of:

db hosts print  | grep self

And errors found inside /var/log/webtop.log.

[root@ns-srv01 ~]# db hosts print  | grep self
collabora.dargels.de=self|Description|
dargels.de=self|Description|
myancestry.de=self|Description|
nextcloud.dargels.de=self|Description|
[root@ns-srv01 ~]# 

[root@ns-srv01 ~]# cat /var/log/webtop.log
cat: /var/log/webtop.log: No such file or directory
[root@ns-srv01 ~]#

[root@ns-srv01 ~]# cat /var/log/webtop/webtop.log | grep error
2020-11-02 17:41:38 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-02 17:46:32 [ERROR] c.s.webtop.core.app.ServiceManager - Controller: initProfile() throws error
2020-11-03 16:34:56 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:35:39 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:35:51 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:37:25 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
[root@ns-srv01 ~]#

[root@ns-srv01 ~]# cat /var/log/webtop/webtop.log | grep ERROR
2020-11-02 17:41:38 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-02 17:46:32 [ERROR] c.s.webtop.core.app.ServiceManager - Controller: initProfile() throws error
2020-11-03 15:17:46 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:17:46 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:18:29 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:18:35 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:19:15 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:19:15 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:19:40 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:19:40 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:19:52 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:19:52 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:21:17 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:21:18 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:21:39 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:21:39 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:26:28 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:26:28 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:26:31 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:27:42 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:27:42 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:29:05 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:31:15 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:31:16 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:31:30 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:31:30 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:47:09 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:47:09 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:47:18 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:47:25 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:48:25 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:48:25 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:48:51 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:48:51 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:48:56 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:49:51 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:52:48 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:52:48 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:53:27 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 15:53:31 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:53:31 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:53:44 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 15:53:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:53:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:54:06 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:54:06 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:59:28 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 15:59:30 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:59:30 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:59:34 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 15:59:51 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 15:59:51 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:00:05 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:00:05 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:00:43 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 16:00:45 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:00:45 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:00:57 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 16:01:07 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:01:07 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:02:07 [ERROR] com.sonicle.webtop.vfs.Service - Error in SetupStoreNextcloud
2020-11-03 16:02:28 [ERROR] com.sonicle.webtop.vfs.Service - Error in SetupStoreNextcloud
2020-11-03 16:02:40 [ERROR] com.sonicle.webtop.vfs.Service - Error in SetupStoreNextcloud
2020-11-03 16:02:50 [ERROR] com.sonicle.webtop.vfs.Service - Error in SetupStoreNextcloud
2020-11-03 16:03:12 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:03:12 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:03:16 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:05:29 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:05:29 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:05:53 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:05:53 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:07:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:07:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:29:49 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:29:49 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:30:08 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:30:08 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:30:44 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-03 16:30:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:30:47 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:33:09 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:33:09 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:33:34 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:33:34 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:34:56 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:35:39 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:35:51 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:37:25 [ERROR] c.s.webtop.core.app.shiro.WTRealm - Authentication error
2020-11-03 16:42:07 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:42:07 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:42:33 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:42:33 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:43:42 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:44:01 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-03 16:44:01 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:44:23 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-03 16:44:23 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-04 13:05:56 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-04 13:05:56 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
2020-11-04 13:09:12 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStore
2020-11-04 13:09:17 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
2020-11-04 13:09:17 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
[root@ns-srv01 ~]#

Are you sure to have set /remote.php/webdave insidethe Path option in WebTop? Please note there is no /nextcloud prefix in it.

The server alias is good.

But you can’t grep the webtop log: it’s a java application which dump the stack trace.
We need the stack trace generated when accessing the nextcloud webdav share.

How do I have to check / define this?

Please note there is no /nextcloud prefix in it.

What I should define where?

can’t grep the webtop log:

What I should do instead?

Inside webtop itself, look and screenshot here: Webtop nextcloud integration fails

Keep /var/log/webtop/webtop.log open if tail -f /var/log/webtop/webtop.log, go to webtop, add the nextcloud resource and when the “Error” dialog appears, see what pops out inside the log.
Past it here.

that comes…

 at java.lang.Thread.run(Thread.java:748)
2020-11-04 17:56:49 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageStoresTree
org.apache.commons.vfs2.FileSystemException: Unknown message with code "Root not exist". 

with this Configuration :

It’s wrong.

If nextcloud is configured with a virtualhost, you have to use the host name inside the Host field.

same result

2020-11-04 22:44:31 [ERROR] com.sonicle.webtop.vfs.Service - Error in ManageGridFile
org.apache.commons.vfs2.FileSystemException: Unknown message with code "Root not exist".

That’s should be the right configuration.

My expertise ends here, let’s if the @webtop_team has some suggestion.

Could please add the full webtop.log as attachment?

1 Like

Hi @capote,
after several tests I was able to replicate your problem and probably understand what you are missing…

Check that you have also added the virtual host configured for your nextcloud among the server aliases:


Once this is done, try to recreate the link on the webtop to the nextcloud resource using these settings necessarily:

Let me know how it goes.

In the meantime, I try to integrate our documentation with these useful information :wink:

EDIT:
Ops … forgive me I didn’t notice what you had already posted:

Sorry… maybe I haven’t found your problem yet :roll_eyes: :thinking:

thank you for your ideas. Within fillipos Nethserver course I learned about the danger of yum autoremove
I did it some times ago. Perhaps a possible reason for my problems?