Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual editor does not work at all on Kiwix welcome page #44

Closed
kelson42 opened this issue Jan 19, 2019 · 18 comments · Fixed by offspot/mediawiki-docker#18
Closed

Visual editor does not work at all on Kiwix welcome page #44

kelson42 opened this issue Jan 19, 2019 · 18 comments · Fixed by offspot/mediawiki-docker#18
Assignees
Labels

Comments

@kelson42
Copy link
Contributor

I don't know if other pages are impacted, but I suspect yes. This is not a problem with the RAM.

@florentk
Copy link
Collaborator

florentk commented Feb 3, 2019

This problem is caused by an API request timeout :

2019-02-03 00:57:05 kiwix kiwix wiki {"name":"parsoid","hostname":"wiki.kiwix.kiwix.kiwixoffline.node.intern","pid":1444,"level":40,"logType":"warn/api/esockettimedout","wiki":"wiki$0","title":"Main_Page","oldId":31783,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.31.0-rc.0","msg":"Failed API request, {\"error\":{\"code\":\"ESOCKETTIMEDOUT\",\"connect\":false},\"retries-remaining\":1}","longMsg":"Failed API request,\n{\"error\":{\"code\":\"ESOCKETTIMEDOUT\",\"connect\":false},\"retries-remaining\":1}","levelPath":"warn/api/esockettimedout","time":"2019-02-03T00:57:01.303Z","v":0}

After lauch VisualEditor on a page, the wikimedia server become very slow and do not answer before the timeout. However, all ressource are avaible :

CONTAINER 		 CPU % 	 MEM / LIMIT 		 MEM % 	 NET I/O Extern 	 NET I/O Intern
kiwix/wiki-468196 	 0.9% 	 2.19 GiB / 2816 MiB 	 79.5% 	 463 B / 19.5 KiB 	 9.57 B / 0 B

@kelson42
Copy link
Contributor Author

kelson42 commented Feb 3, 2019

@florentk You mean the Parsoid server is slow? But you don't know why (cpu, ram, io)?

@florentk
Copy link
Collaborator

florentk commented Feb 3, 2019

@kelson42 no, I think is the Wikimedia application that is slow, Parsoid wait a response from Wikimedia API. I have tested, all Wiki become slow. I suspect a concurent database access problem but I can not verified that.

@kelson42
Copy link
Contributor Author

kelson42 commented Feb 3, 2019

@florentk I don't understand which Wikimedia service we rely one. We should not. Which API/URL are we talking about?

@florentk
Copy link
Collaborator

florentk commented Feb 3, 2019

@kelson42 Is this API/URL (but also other) :

2019-02-03 01:16:27 kiwix kiwix wiki 127.0.0.1 - - [03/Feb/2019:01:16:26 +0000] "GET /w/api.php?format=json&action=query&prop=info%7Crevisions&rawcontinue=1&rvprop=content%7Cids%7Ctimestamp%7Csize%7Csha1%7Ccontentmodel&rvslots=main&revids=30321 HTTP/1.1" 200 6121 "-" "Parsoid/0.10.0+git"

@florentk
Copy link
Collaborator

florentk commented Feb 3, 2019

@kelson42 You can make a test to reproduce the bug :

  • Go to main page with a logged account
  • Lauche visual editor -> progress bar blocked
  • Run immediatly `curl -v https://wiki.kiwix.org/wiki/Main_Page' This is same with any other URL (like API call ...)

@kelson42
Copy link
Contributor Author

kelson42 commented Feb 3, 2019

@florentk OK, but this is a request to our wiki!? Do you mix "wikimedia" with "mediawiki"?

@florentk
Copy link
Collaborator

florentk commented Feb 3, 2019

@kelson42
Copy link
Contributor Author

@florentk I think that Mediawiki is slower as it should. One of the reason I have identified is that it seems that php7-fpm seems not to be configured at all to have an opcache https://mnt-tech.fr/blog/opcache-configuration-et-fonctionnement/. This would probably make quite a difference. Would you be able to activate in in mediawiki-docker? Otherwise have you been able to reproduce the problem locally with Kiwix data on your computer?

@kelson42
Copy link
Contributor Author

An other link https://laravel-news.com/php-opcache-docker

@kelson42
Copy link
Contributor Author

@florentk I have created a PR to help to fix this offspot/mediawiki-docker#18

@florentk
Copy link
Collaborator

@kelson42 ok, this seems to be a good trail, I look that this week.

@florentk
Copy link
Collaborator

I get this error : apierror-visualeditor-docserver-http: HTTP 406.

@florentk florentk reopened this Feb 15, 2019
@florentk
Copy link
Collaborator

florentk commented Feb 16, 2019

fix in offspot/mediawiki-docker@b0edafe

@kelson42
Copy link
Contributor Author

@florentk As far as I can see the problem is still there. Otherwise have you been able to reproduce the problem locally with Kiwix data on your computer?

@kelson42 kelson42 reopened this Feb 24, 2019
@florentk
Copy link
Collaborator

@kelson42 I don't reproduce problem with Openzime wiki data on my computer. And I don't have Kiwix data to test on my computer.

@florentk
Copy link
Collaborator

florentk commented Mar 5, 2019

@kelson42 I reproduce this bug on my computer, it seems it's related with the Translate extension. I re-open the ticket here : offspot/mediawiki-docker#17

@florentk florentk closed this as completed Apr 7, 2019
@florentk florentk reopened this Apr 7, 2019
@kelson42
Copy link
Contributor Author

This has been fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants