Project:Support desk

About this board

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  4. To start a new thread, click the box with the text "Start a new topic".

Mediawiki S3 Saving error

2
Egg 3846 (talkcontribs)

Hi,

Can you help me debug some mediawiki + S3 compatible service errors ? ( image resize / uploads )


It's an error i have on my server but not locally, but i haven't found any obvious difference between the setup yet


I'm using the following :

- mediawiki 1.39.6 ( a canasta image : canasta:1.39.6-20240104-346 )

- AWS extension 0.12.0

- minio


My FileOperation log :


2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: found backend with S3 buckets: mediawiki, mediawiki/thumb, mediawiki/deleted, mediawiki/temp.

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doPrepareInternal: S3 bucket mediawiki, dir=temp/4/42, params=noAccess, noListing, dir

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doSecureInternal: creating temp/.htsecure in S3 bucket mediawiki

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in doSecureInternal from PutObject ({"Bucket":"mediawiki","Key":"temp/.htsecure","Body":"","@http":[],"@context":[]}): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/.htsecure"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/.htsecure` resulted in a `404 Not Found` response:

<HTML><HEAD>

<TITLE>Network Error</TITLE>

</HEAD>

<BODY>

<FONT face="Helvetica">

<big><strong></strong></ (truncated...)

Unable to parse error information from response - Error parsing XML: String could not be parsed as XML

2024-05-03 15:57:57 9de13bf397d2 mediawiki: S3FileBackend: doCreateInternal(): saving temp/4/42/20240503155757!phpp5WIrX.jpg in S3 bucket mediawiki (sha1 of the original file: jlb3z7ca9kw98dqons8c4pfh0sgo92m, Content-Type: image/jpeg)

2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: exception [Null] in createOrStore from PutObject (false): Error executing "PutObject" on "xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg"; AWS HTTP error: Client error: `PUT xxxx:9000/mediawiki/temp/4/42/20240503155757%21phpp5WIrX.jpg` resulted in a `404 Not Found` response:

<HTML><HEAD>

<TITLE>Network Error</TITLE>

</HEAD>

<BODY>

<FONT face="Helvetica">

<big><strong></strong></ (truncated...)

Unable to parse error information from response - Error parsing XML: String could not be parsed as XML

2024-05-03 15:57:58 9de13bf397d2 mediawiki: S3FileBackend: Performance: 0.127 second spent on: uploading temp/4/42/20240503155757!phpp5WIrX.jpg to S3

2024-05-03 15:57:58 9de13bf397d2 mediawiki: StoreFileOp failed: {"src":"/tmp/phpp5WIrX","dst":"mwstore://AmazonS3/local-temp/4/42/20240503155757!phpp5WIrX.jpg","overwrite":true,"headers":[],"failedAction":"attempt"}

Bawolff (talkcontribs)

The 404 responses make me wonder if the domain/port for the s3 bucket is set correctly.

Reply to "Mediawiki S3 Saving error"

Unable to Delete Files

1
72.23.146.10 (talkcontribs)

Howdy,

I'm trying to delete some duplicated images, but keep getting the following error:

Error deleting file: An unknown error occurred in storage backend "local-backend".

The images in question all have previous versions that, for one reason or another, show "No thumbnail" as their first version (despite those thumbnails existing previously, prior to new versions being uploaded). Images that don't have "No thumbnail" as their first record can be deleted without issue.

My biggest question is, is there a way to bypass this error and delete the files? Less importantly, what can cause the "No thumbnail" issue to happen? The wiki I'm working on has lost a lot of prior versions of images over the years and no one can pinpoint why, or how to prevent it from happening in the future.

Reply to "Unable to Delete Files"

How to change the pages / hide the install config pages from main page

3
Bananatree88 (talkcontribs)

I am sorry for all the stupid questions - I see on the main page it shows how to configure etc even if you are not an admin - how can you change that and have the pages / topics created show on the main page?

Ciencia Al Poder (talkcontribs)

If by pages / topics you mean actual pages, you can transclude Special:NewPages as {{Special:NewPages/25}}

Alternatively, use a proper forum software instead of MediaWiki.

Bawolff (talkcontribs)

Dont worry about stupid qusstions. Its what we are here for.

Reply to "How to change the pages / hide the install config pages from main page"

Is there a way as admin to see the list of registered users? Thanks

3
Bananatree88 (talkcontribs)

Can I see a list of registered users as admins

Bawolff (talkcontribs)

Go to the page Special:ListUsers

This post was hidden by Ciencia Al Poder (history)

css for Vector-2022

2
2003:C2:3F21:FD00:516D:5391:79D1:A338 (talkcontribs)

Where shall I place my css modifications for the new Vector (2022) skin? I've tried MediaWiki:Vector-2022.css

but it has no effect.

Ciencia Al Poder (talkcontribs)

It may take some time to take effect, usually 20 minutes at most. Otherwise, a syntax error in that page may render the entire CSS or from one point to the end unusable. For example, if you forgot to open or close curly braces. You may want to check if the CSS of that page is valid running it through an online CSS validator.

Reply to "css for Vector-2022"

upload api - how can I wrap lines in the text parameter

1
Summary by Creamycd

Use %0A instead.

Creamycd (talkcontribs)

How can I wrap lines when I fill the text parameter when using api.php?action=upload? According to the Documentations, the text parameter should be in the query string, but I need to write something like this...

=={{int:filedesc}}==
{{Information}}

=={{int:license-header}}==
{{self|cc-by-sa-4.0}}

It need to wrap lines, but how?

Thanks!

CheckUser extension - where is IP address taken from

3
Pspviwki (talkcontribs)

I recently had to install TorBlock, LoginNotify and CheckUser extensions. Tables were created successfully for Checkuser extension but during testing only localhost adress 127.0.0.1 showed in Special:CheckUser for a user access. I guess IP gets replaced during the process somewhere incorrectly but I need to find out where to fix it. It might be due to caching but in webserver logs and cache logs IPs are correct. I wonder if TorBlock and LoginNotify extensions may be influenced by this issue.

Bawolff (talkcontribs)

Did you set $wgCdnServersNoPurge correctly?

Its unlikely that TorBlock or LoginNotify affect this.

How is your web server setup. Do you have load balancers, caching proxies, etc in front of your web server. If so, do they set X-Forward-For headers properly?

Pspviwki (talkcontribs)

$wgCdnServersNoPurge was left at default value, that is []. There is varnish cache set up as recommended in Manual:Varnish caching, this setting works 

$wgUseCdn = true;$wgCdnServers = array(); $wgCdnServers[] = "ip address:port"; http.X-Forwarded-For is set up with received client IP address.

Reply to "CheckUser extension - where is IP address taken from"

DFM CAN connection?

2
Javad Arablu (talkcontribs)

where can I find the CAN configuration of FMB641 for connecting to DFM (Technoton fuel flow meter) ?

TheDJ (talkcontribs)

Probably not here, this is the support forum for the mediawiki wiki software.

Reply to "DFM CAN connection?"

how do you set the paramator - that only people that register can post and edit

2
Bananatree88 (talkcontribs)

HI we would like to restrict posting and editing to people that create an account. how can we do this?

Thank you!

Ammarpad (talkcontribs)
Reply to "how do you set the paramator - that only people that register can post and edit"

Wiki Family, two Translations have the same spelling

2
Isaaclw (talkcontribs)

I'm hosting a wiki for a niche game: https://myhordes.eu; the wiki is hosted at: https://mhwiki.org/

We have a page 'Distinctions' that is the same name in both French and English, therefore I would assume that these two urls would go to their respective French and English translations:

https://en.mhwiki.org/wiki/Distinctions

https://fr.mhwiki.org/wiki/Distinctions


The reality is that if I have `wgSharedDB` commented out (unset) then the page is in English for both links, and if I have it set to the default database `mhwiki` then it seems to show the french version for both urls.

If you log in, then the issue is corrected, but there are a lot of non-logged in users.

Bawolff (talkcontribs)

you will need to give more information about your setup. Normally $wgSharedDB is only about user accounts and not article content.

Reply to "Wiki Family, two Translations have the same spelling"