Last modified: 2014-07-13 06:51:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43786, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41786 - Interwiki map broken on wikitech
Interwiki map broken on wikitech
Status: REOPENED
Product: Wikimedia Labs
Classification: Unclassified
wikitech-interface (Other open bugs)
unspecified
All All
: Low major
: ---
Assigned To: Nobody - You can work on this!
https://wikitech.wikimedia.org/w/api....
: ops
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-05 15:41 UTC by Nemo
Modified: 2014-07-13 06:51 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
IWM per URL (2.84 KB, text/xml)
2012-11-05 15:41 UTC, Nemo
Details

Description Nemo 2012-11-05 15:41:39 UTC
Created attachment 11305 [details]
IWM per URL

The interwiki map is completely gone, open any page to see it full of red links.
Please rebuild it.

To clarify, this is about restoring the MediaWiki default interwiki map (with the few local additions), not about using the Wikimedia interwiki map or adding more interwikis (bug 30847).
Comment 1 Daniel Zahn 2012-11-05 21:21:30 UTC
13:22 < mutante> !log copied interwiki.cdb from prod to wikitech, used $wgInterwikiCache to point to .cdb, mw does not use mysql table anymore. long iw links work again, "shortcuts" are different though and still an issue

Since the recent upgrade MW is on a version that does not use the interwiki mysql table anymore (which is still present though). Per advice on IRC copied an interwiki.cdb from prod to wikitech and used $wgInterwikiCache in LocalSettings.

But as pointed out above, the "shortcuts" are different and still affected.
Comment 2 Ariel T. Glenn 2012-11-13 18:46:24 UTC
OK, shortcuts are now working.  Did:

0) create interwikicdb on the site itself, rather than using a cdb file from wmf. To do this:

steal a copy of extensions/WikimediaMaintenance
steal copies of langlist  all.dblist  special.dblist, put them somewhere nice
add wikitech to all.dblist.
edit dumpInterwikis.php to use the path you put the files in instead of /home/wikipedia/commons
edit WikimediaMaintenance.php to include LocalSettings.php instead of CommonSettings.pgp (with the right path too)

php extensions/WikimediaMaintenance/dumpInterwiki.php -o /some-nice-place/testcache.cdb

1) set $wgInterwikiFallbackSite = "wikitech";
in LocalSettings.php; if you don't do this the interwiki code thinks the site name is "wikitech-mw_ and finds nothing in the interwiki.cdb file with that. (must be due to db prefix.)

2) dump the interwiki cdb you just created (cdbdump < /path/to/cdb-file > /path/to/interwiki-text)
for each entry starting with wikitech, add an identical entry (add one to key length) starting with _

example:
+10,33:wikitech:q->1 http://en.wikiquote.org/wiki/$1
gets an additional line
+11,33:_wikitech:q->1 http://en.wikiquote.org/wiki/$1

(prolly could take out the original lines but whatever.)

make the new cdb file from the text you just edited:
cdbmake new-cdb-fiel temp-cdb-file-you-can-toss-shortly < /path/to/interwiki-text
copy the new cdb file into place and you are set.

Other notes: 

I had set $site and $lang in WikimediaMaintenance/WikimediaMaintenance.php  but I think those changes didn't make any difference.

So note that this project thinks it is a wikipedia.  we could change that I guess, if wanted...

I can't imagine anyone wanting to do this for their own wiki. Need new tools.
Comment 3 Daniel Zahn 2012-11-13 19:34:18 UTC
Thank you very much Ariel! That sounded complicated and a quite some work to figure out.

Nemo: iw table from API meanwhile:

http://wikitech.wikimedia.org/api.php?action=query&meta=siteinfo&siprop=interwikimap

[[w:Fnord]] or [[wikt:Fnord]] now also work fine for me.

Not sure yet if that other linked Bug needs more or not, now.
Comment 4 Ariel T. Glenn 2012-11-20 09:53:12 UTC
Shorter approach: 

copy in the extension crap, copy in all.dblist, special.dblist, langlist, modify paths in dumpInterwikis.php

from base of mw installation, do 
echo 'print wfWikiID();' | php maintenance/eval.php

add this value (in our case, wikitech-mw_) to all.dblist and special.dblist

from base of mw installation, do 
php extensions/WikimediaMaintenance/dumpInterwiki.php -o new-interwikis.db

from base of mw installation, copy this new file into cache/interwiki.cdb

make sure that LocalSetttings.php in mw installation base dir has
$wgInterwikiCache = "$IP/cache/interwiki.cdb";

Now shortcuts and all other iw links should work for your project.  Note that it will behave as though it is a 'wikipedia' with en as the default language.
Comment 5 Nemo 2014-04-08 06:23:28 UTC
Was broken again.
Comment 6 Andre Klapper 2014-04-08 10:48:12 UTC
(In reply to Nemo from comment #5)
> Was broken again.

When? And "was" implies not anymore?
Comment 7 Nemo 2014-04-08 12:05:34 UTC
(In reply to Andre Klapper from comment #6)
> (In reply to Nemo from comment #5)
> > Was broken again.
> 
> When? 

Some weeks or months ago, during some upgrade I suppose.

> And "was" implies not anymore?

No.
Comment 8 Andre Klapper 2014-04-08 12:23:24 UTC
So you reopened it because it happened again at some vague point in the past but is not reproducible now anymore anyway? Sounds like a WORKSFORME case then.
Comment 9 Nemo 2014-04-08 12:56:27 UTC
No as in "it doesn't imply not anymore". The bug is current and easily reproducible, see URL.
Comment 10 This, that and the other (TTO) 2014-07-13 04:29:49 UTC
(In reply to Nemo from comment #9)
> No as in "it doesn't imply not anymore". The bug is current and easily
> reproducible, see URL.

How so? What do you expect to see?
Comment 11 Nemo 2014-07-13 06:51:17 UTC
(In reply to This, that and the other from comment #10)
> How so? What do you expect to see?

The [[m:IWM]] interwikis. It seems they re-appeared since April. On the other hand, "local" interwikis such has RT: have not been restored yet.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links