Issues on the Wiki (Pro 6.3)

Hi,
I get an error

On Page unavailable
Sorry, but the requested page is unavailable due to a server hiccup.

Our engineers have been notified, so check back later.

but no log

tail - 100 gunicorn_access.log
==> entrée standard <==

tail - 100 seahub.log
==> entrée standard <==

tail - 100 seafile.log
==> entrée standard <==

Can you add DEBUG=True in seahub_settings.py and try whether the detailed error will be printed in the web interface?

Here is the debug trace on differents urls

https://seafile.domain.fr/wikis/wiki-public/
https://seafile.domain.fr/wikis/wiki-public/home
https://seafile.domain.fr/wikis/wiki-public/home/

note that the request url is on HTTP (not S)
Request URL: http://seafile.domain.fr/wikis/wiki-public/home/

SearpcError at /wikis/wiki-public/
Invalid user
Request Method:	GET
Request URL:	http://seafile.domain.fr/wikis/wiki-public/
Django Version:	1.11.11
Exception Type:	SearpcError
Exception Value:	
Invalid user
Exception Location:	/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.7/site-packages/pysearpc/client.py in _fret_string, line 25
Python Executable:	/usr/bin/python2.7
Python Version:	2.7.13
Python Path:	
['/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/argparse-1.2.1-py2.6.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/importlib-1.0.2-py2.6.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/thrift-0.9.0-py2.6-linux-x86_64.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/ordereddict-1.1-py2.6.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/SQLAlchemy-1.1.3-py2.7-linux-x86_64.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/elasticsearch-2.4.1-py2.7.egg',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python/elasticsearch_dsl-2.2.0-py2.7.egg',
 '/usr/lib/python2.7/dist-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.7/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.7/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub',
 '/',
 '/etc/seafile/seafile-pro-server-6.3.0/pro/python',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub-extra',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub-extra/thirdparts',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart/gunicorn-19.8.1-py2.7.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/PILcompat',
 '/usr/lib/pymodules/python2.7',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.7/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.7/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seafile/lib64/python2.6/site-packages',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub-extra/thirdparts',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub/seahub/api2/endpoints/../../../../../conf',
 '/etc/seafile/seafile-pro-server-6.3.0/seahub/seahub/api2/endpoints/../../../../../conf']
Server time:	mer, 4 Jul 2018 15:33:42 +0000


Environment:


Request Method: GET
Request URL: http://seafile.domain.fr/wikis/wiki-public/home/

Django Version: 1.11.11
Python Version: 2.7.13
Installed Applications:
('django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'seahub.base',
 'django.contrib.auth',
 'registration',
 'captcha',
 'compressor',
 'statici18n',
 'constance',
 'constance.backends.database',
 'post_office',
 'termsandconditions',
 'webpack_loader',
 'seahub.api2',
 'seahub.avatar',
 'seahub.contacts',
 'seahub.institutions',
 'seahub.invitations',
 'seahub.wiki',
 'seahub.group',
 'seahub.notifications',
 'seahub.options',
 'seahub.onlyoffice',
 'seahub.profile',
 'seahub.share',
 'seahub.help',
 'seahub.thumbnail',
 'seahub.password_session',
 'seahub.admin_log',
 'seahub.wopi',
 'seahub.tags',
 'seahub.revision_tag',
 'seahub.two_factor',
 'seahub.role_permissions',
 'seahub.trusted_ip',
 'seahub_extra.search',
 'seahub_extra.sysadmin_extra',
 'seahub_extra.organizations',
 'seahub_extra.krb5_auth',
 'seahub_extra.django_cas_ng',
 'gunicorn')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'seahub.auth.middleware.AuthenticationMiddleware',
 'seahub.base.middleware.BaseMiddleware',
 'seahub.base.middleware.InfobarMiddleware',
 'seahub.password_session.middleware.CheckPasswordHash',
 'seahub.base.middleware.ForcePasswdChangeMiddleware',
 'seahub.base.middleware.UserPermissionMiddleware',
 'termsandconditions.middleware.TermsAndConditionsRedirectMiddleware',
 'seahub.two_factor.middleware.OTPMiddleware',
 'seahub.trusted_ip.middleware.LimitIpMiddleware',
 'seahub_extra.organizations.middleware.RedirectMiddleware',
 'shibboleth.middleware.ShibbolethRemoteUserMiddleware')



Traceback:

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/thirdpart/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/seahub/wiki/views.py" in slug
  50.             request, wiki.repo_id, '/') == 'rw':

File "/etc/seafile/seafile-pro-server-6.3.0/seahub/seahub/views/__init__.py" in check_folder_permission
  107.     return seafile_api.check_permission_by_path(repo_id, path, username)

File "/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.7/site-packages/seaserv/api.py" in check_permission_by_path
  682.         return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)

File "/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.7/site-packages/pysearpc/client.py" in newfunc
  112.                 return fret(ret_str)

File "/etc/seafile/seafile-pro-server-6.3.0/seafile/lib/python2.7/site-packages/pysearpc/client.py" in _fret_string
  25.         raise SearpcError(dicts['err_msg'])

Exception Type: SearpcError at /wikis/wiki-public/home/
Exception Value: Invalid user

Thanks. It will be fixed in the next release.

1 Like

Hi Daniel,

There is also an old bug mentionned here

Regards

HI Daniel

I just tried the 6.3.1 Pro beta version uploaded this morning

Here are the results of my tests

The wiki is now public
https://seafile.domain.fr/wikis/wiki-public/

But the “Wiki” links on top of the UI links to the login page

I could link to a front page where all the public wikis are listed : what do you think ?
Could you also provide search capabilities here ?

Once logged in In the new Wiki interface (in the LIbrary context) :

  • we can see all files from the library
  • we can drag and drop, files from left to right
  • it creates links to the files :yum:

But :

Also, could this feature be improved to provide image inclusion ?

I also wonder if the co-existence of two editors (Library and wiki context) is still accurate :thinking:

Hi,

Thanks for testing. Actually we are working on improving wiki feature, but it is not done yet and not included in 6.3.1.

I think you mean 6.3.1

Yes. We will need another month to make the Wiki feature ready.

Hi,

@daniel.pan I noticed another limitation.

Wikis can not be renamed from the library scope.

If i rename the library “Wiki Public” to “Wiki Seafile”

The wiki is still named “Wiki public”

and the url remains /wiki-public/

The only workaround is to

  • create a new wiki
  • paste the original content
  • delete the old wiki

Could you resolve this issue ?

UPDATE :

If i delete the wiki, the library is not deleted
Is it a normal behaviour ?

@daniel.pan Another Issue in the new wiki editor

You canot not add relative links (/link/), http or https is required

I remenber that it was possible in the old editor

Hi,

I wonder how users can access wikis acdessible to logged in users

In the wiki view (admin logged in), i see all wikis the admin has created

But when logged in as a normal user, i only see my wikis.

How can i access wikis created by the admin ?

Regards

Hi,

Another issue related to images inclusion

Previously i included screenshots with this tag

![](images/invit1.png?dl=1)

Images are located in a sub folder “images”

images

But they are not dispayed in the public wiki

The wiki name is displayed in the URL. It need to be unique globally. So it need to be different from the library name. An improvement will be that when you change the Wiki name, the corresponding library will be changed, but not vice verse.

This is a normal behaviour.

This will be fixed in a version released at the end of August.

Currently, the admin need to send the wiki links to users. In a future version, we will list all wikis one can access.

It will be fixed too.

1 Like

Hi daniel,

Glad to see that you have quick answers to all my questions and remarks. :wink:
Hope these tests will help you improve the wiki feature, which some of us are very intersted in.

Regards,

Gautier

1 Like

Hi,

There is a Home page Link missing in the wiki (edit) view

From the wiki view, you can browse to the home page

But you can not access the home page anymore when you are in the edit view (except if you switch to the view from the right, wich is not convenient)

You can not quit the edit view easily neither come back from the home page of seafile webui

Hi,

on 6.3.4 version, it seems that this behaviour is still confusing.

When accessing the wiki, the url is /wiki/*
When editing the wiki, the url is /lib/*
When switching to view from te editor, the url is still /lib/*

The location of the wiki between /lib/* and /wiki/* seems to be the cause of many probklems, such as :

  • lost of public acess (from /wiki/*)
  • difficulties to link to pafes and files
  • invisibility of other files (*.pdf) in the wiki view (see below)

From the /lib/* url, the tree shows files in a subfloder

Screenshot_2018-08-25%20home%20md

From the /wiki/* url, the tree does not show files in a subfolder

Screenshot_2018-08-25%20Partages%20du%20Campus%20Condorcet%20-%20TEST

A button back to the wiki page will be added in the next release.

In our design, the tree in wiki view only show the “pages” of a wiki instead of all files. In the edit view, you can add links of files to a wiki page, and the files can be downloaded via the links in the page.

This is because you are editing the underlying file of a wiki. Maybe we can hide the button of switching to view mode.

Thank you. The button should ask for saving before browsing back, shouldn’t it ?

I think it’as pity because most of wikis give access to files and seeing the files in a tree view is a +.

But without a button to add files (which existed in the previous wiki editor), you have to switch between different windows.

I don’t really understand, but switching to view mode is not really useful if you cannot do anything…
By the way, i did not find any string to translate in Transiflex about he new wiki. WIll you add it in the future ?

Hi Daniel,

Can you tell us the next release version (or the delay) in which you consider the wiki feature to be ready, according to the test and comments i made in this thread ?

I’m on 6.3.4 and there are still major problems (and regressions from 6.3.2 to 6.3.4 / rights and public wiki feature)

Regards,