Can't save changes in WebUI

Hey guy’s!

Another day, another issue. :wink:

I wanted to upload a picture today and faced an issue. The upload dialog isn’t show up after click. Now after an update an changing the the service url in ccnet.conf the upload is working again. But there is still the issue to update System Admin Variables over the WebUI.

When I change the Service URL there it doesn’t work and I get the following errors in the Console Log of Chrome:

jstree.min.3e831b62c177.js:6 [Deprecation] document.registerElement is deprecated and will be removed in M73, around March 2019. Please use window.customElements.define instead. See https://www.chromestatus.com/features/4642138092470272 for more details.
(anonymous) @ jstree.min.3e831b62c177.js:6
(anonymous) @ jstree.min.3e831b62c177.js:2
(anonymous) @ jstree.min.3e831b62c177.js:2
jquery.min.a09e13ee94d5.js:2 POST https://cloud.jotoma.de/sys/settings/ 403 (Forbidden)
send @ jquery.min.a09e13ee94d5.js:2
ajax @ jquery.min.a09e13ee94d5.js:2
(anonymous) @ (index):1188
dispatch @ jquery.min.a09e13ee94d5.js:2
y.handle @ jquery.min.a09e13ee94d5.js:2
VM723:2 Uncaught SyntaxError: Unexpected token < in JSON at position 1
    at JSON.parse (<anonymous>)
    at prepareAjaxErrorMsg ((index):1068)
    at Object.error ((index):1203)
    at u (jquery.min.a09e13ee94d5.js:2)
    at Object.fireWith [as rejectWith] (jquery.min.a09e13ee94d5.js:2)
    at k (jquery.min.a09e13ee94d5.js:2)
    at XMLHttpRequest.<anonymous> (jquery.min.a09e13ee94d5.js:2)
prepareAjaxErrorMsg @ (index):1068
error @ (index):1203
u @ jquery.min.a09e13ee94d5.js:2
fireWith @ jquery.min.a09e13ee94d5.js:2
k @ jquery.min.a09e13ee94d5.js:2
(anonymous) @ jquery.min.a09e13ee94d5.js:2
load (async)
send @ jquery.min.a09e13ee94d5.js:2
ajax @ jquery.min.a09e13ee94d5.js:2
(anonymous) @ (index):1188
dispatch @ jquery.min.a09e13ee94d5.js:2
y.handle @ jquery.min.a09e13ee94d5.js:2
jquery.min.a09e13ee94d5.js:2 XHR failed loading: POST "https://cloud.jotoma.de/sys/settings/".
send @ jquery.min.a09e13ee94d5.js:2
ajax @ jquery.min.a09e13ee94d5.js:2
(anonymous) @ (index):1188
dispatch @ jquery.min.a09e13ee94d5.js:2
y.handle @ jquery.min.a09e13ee94d5.js:2

In the seahub.log I got this:

[WARNING] django.security.csrf:160 _reject Forbidden (CSRF token missing or incorrect.): /sys/settings/

Does I maybe have a misconfiguration?

Seafile is running as user seafile and is fired up via systemctl service.

I would be glad of your help.

Many thanks in advance!

Does really no one have a clue?

Which release are you using?

The latest (7.0.4 64bit).

If you need more information please tell me.

@Support: No clue either?

The error in Chrome log is the consequence of the error in the server side. We don’t have a clue about the problem. You may try to disable settings via Web UI and use the config file instead.

1 Like

Hi @daniel.pan,

I’ve switched now from Web Settings to Config File Settings only and get the same error.

2019-08-14 08:16:42,350 [WARNING] django.request:152 get_response Not Found: /media/css/seafile-ui.map
2019-08-14 08:16:46,298 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2019-08-14 08:16:49,535 [WARNING] django.request:152 get_response Not Found: /media/css/seafile-ui.map
2019-08-14 08:16:56,928 [WARNING] django.request:152 get_response Not Found: /media/css/seafile-ui.map
2019-08-14 08:17:00,613 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2019-08-14 08:17:03,190 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map
2019-08-14 08:17:31,980 [WARNING] django.security.csrf:160 _reject Forbidden (CSRF token missing or incorrect.): /sys/settings/
2019-08-14 08:17:38,413 [WARNING] django.request:152 get_response Not Found: /media/assets/css/bootstrap.min.css.map

I can’t upload avatars nor creating links. I always get error but it’s all correct in the configs.

Btw. I use seafile with Apache.
Ah and the downloads works without any issues.

This error occurs when I try to upload an Avatar:

POST https://cloud.jotoma.de/api/v2.1/user-avatar/ 403 (Forbidden)

In the logs no error.

push :wink:

I think the problem is very specific to your server environment. We can’t help debug the problem unless we can do a remote TeamViewer support. If you have a paid license (>9 users), please send support request to support@seafile.com

Hmm… If you need more informations from specific config files or folder right so please tell me. I only use the CE. TeamViewer support is a bit difficult but I could grant you temporary SSH access on my server.

I found the issue. Please see Seahub loads mixed content .