Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2017-07-18 Thread duck

Quack,

When upgrading to Stretch I saw the same message.

Kunal, what you're suggesting is fine for a single website, not for 
multiple instance. Unlike a package like Redmine I don't see any 
multi-site support in your package. But honestly this is pretty easy to 
do, so I don't think it is needed.


I've got several instances setup like this:
lrwxrwxrwx   1 root root   51 Apr 25  2010 AdminSettings.php -> 
/etc/mediawiki/users.duckcorp.org/AdminSettings.php
lrwxrwxrwx   1 root root   28 Jul 17 17:31 api.php -> 
/usr/share/mediawiki/api.php
lrwxrwxrwx   1 root root   33 Jul 17 17:31 autoload.php -> 
/usr/share/mediawiki/autoload.php
lrwxrwxrwx   1 root root   25 Apr 25  2010 config -> 
/var/lib/mediawiki/config

drwxr-xr-x+  2 root root 4096 Jul 17 21:07 extensions
lrwxrwxrwx   1 root root   36 Jul 17 17:31 extensions-core -> 
/usr/share/mediawiki/extensions-core
lrwxrwxrwx   1 root root   33 Jul 17 17:31 img_auth.php -> 
/usr/share/mediawiki/img_auth.php
lrwxrwxrwx   1 root root   29 Jul 17 17:31 includes -> 
/usr/share/mediawiki/includes
lrwxrwxrwx   1 root root   30 Jul 17 17:31 index.php -> 
/usr/share/mediawiki/index.php
lrwxrwxrwx   1 root root   30 Jul 17 17:31 languages -> 
/usr/share/mediawiki/languages
lrwxrwxrwx   1 root root   29 Jul 17 17:31 load.php -> 
/usr/share/mediawiki/load.php
lrwxrwxrwx   1 root root   51 Jul 17 18:00 LocalSettings.php -> 
/etc/mediawiki/users.duckcorp.org/LocalSettings.php
lrwxrwxrwx   1 root root   32 Jul 17 17:31 maintenance -> 
/usr/share/mediawiki/maintenance
lrwxrwxrwx   1 root root   30 Jul 17 17:31 mw-config -> 
/usr/share/mediawiki/mw-config
lrwxrwxrwx   1 root root   40 Jul 17 17:31 opensearch_desc.php -> 
/usr/share/mediawiki/opensearch_desc.php
lrwxrwxrwx   1 root root   36 Jul 17 17:31 profileinfo.php -> 
/usr/share/mediawiki/profileinfo.php
lrwxrwxrwx   1 root root   30 Jul 17 17:31 resources -> 
/usr/share/mediawiki/resources
lrwxrwxrwx   1 root root   31 Jul 17 17:31 serialized -> 
/usr/share/mediawiki/serialized
lrwxrwxrwx   1 root root   26 Jul 17 17:31 skins -> 
/usr/share/mediawiki/skins
lrwxrwxrwx   1 root root   38 Jul 17 17:31 thumb_handler.php -> 
/usr/share/mediawiki/thumb_handler.php
lrwxrwxrwx   1 root root   30 Jul 17 17:31 thumb.php -> 
/usr/share/mediawiki/thumb.php

drwxrwxr-x+ 22 root root 4096 Jul 17 21:09 upload
lrwxrwxrwx   1 root root   27 Jul 17 17:31 vendor -> 
/usr/share/mediawiki/vendor
lrwxrwxrwx   1 root root   31 Jul 17 17:31 wiki.phtml -> 
/usr/share/mediawiki/wiki.phtml


After updating the symlinks after upgrade I don't this error message 
anymore.


So I think this is a user misconfiguration and this BR can be closed. 
Jonathan could you confirm?


\_o<

--
Marc Dequènes



Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2016-11-03 Thread Kunal Mehta
On 11/01/2016 04:24 AM, Jonathan Dowland wrote:
> Some more info: it's an sqlite-backended mediawiki, I'm not sure how it was
> originally set up but it exists in a user's home directory with a lot of
> symlinks into /usr/share/mediawiki. (was this a recommended way of deploying
> mediawiki on Debian? I'm not sure, I didn't originally set this up.) I suppose
> there may be some necessary symlinks for the newer package version that are 
> not
> present yet.  We use lighttpd as the HTTPD with php-cgi via FastCGI.

Okay...that's a bit weird. Where is the webserver root for the wiki
then? Is the vendor directory present there? If symlinks are set up
manually I'm going to guess not, since vendor was introduced recently.
(basically every directory in the second line of
,
I think serialized is new as well, though it's only required when
logging in IIRC).

In general, I would recommend spending some time getting your wiki out
of a user's home directory and using the normal filesystem layout the
package sets up (documented at
), it
will make things a lot easier.

-- Kunal



signature.asc
Description: OpenPGP digital signature


Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2016-11-01 Thread Jonathan Dowland
Hi,

On Mon, Oct 31, 2016 at 03:56:38PM -0700, Kunal Mehta wrote:
> That library is bundled with the MediaWiki package, so there shouldn't
> be any manual work required.
> 
> It would seem that somehow the /usr/share/mediawiki/vendor/psr/log/
> directory is missing on your system - could you check if that directory
> exists?

Yup it's there:

composer.json
LICENSE
Psr
README.md

I'm oscillating between mediawiki versions at the moment, downgrading back
to mediawiki=1:1.19.20+dfsg-0+deb7u3 gets our site working again (it's
https://www.chocolate-doom.org/ fwiw). Upgrading to mediawiki=1:1.27.1-2~bpo8+1
means I can reproduce this issue. (the above directory does not exist in the
older package, of course).

Some more info: it's an sqlite-backended mediawiki, I'm not sure how it was
originally set up but it exists in a user's home directory with a lot of
symlinks into /usr/share/mediawiki. (was this a recommended way of deploying
mediawiki on Debian? I'm not sure, I didn't originally set this up.) I suppose
there may be some necessary symlinks for the newer package version that are not
present yet.  We use lighttpd as the HTTPD with php-cgi via FastCGI.

> Also the output of `php -i` might be helpful in debugging.

Attached.


Thanks,

-- 
Jonathan Dowland
phpinfo()
PHP Version => 5.6.27-0+deb8u1

System => Linux chew 4.8.3-x86_64-linode76 #1 SMP Thu Oct 20 19:05:39 EDT 2016 
x86_64
Build Date => Oct 15 2016 15:52:40
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
Additional .ini files parsed => /etc/php5/cli/conf.d/05-opcache.ini,
/etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-curl.ini,
/etc/php5/cli/conf.d/20-json.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini,
/etc/php5/cli/conf.d/20-pdo_sqlite.ini,
/etc/php5/cli/conf.d/20-sqlite3.ini

PHP API => 20131106
PHP Extension => 20131226
Zend Extension => 220131226
Zend Extension Build => API220131226,NTS
PHP Extension Build => API20131226,NTS
Debug Build => no
Thread Safety => disabled
Zend Signal Handling => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => provided by mbstring
IPv6 Support => enabled
DTrace Support => enabled

Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, 
file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls, 
tlsv1.0, tlsv1.1, tlsv1.2
Registered Stream Filters => zlib.*, bzip2.*, convert.iconv.*, string.rot13, 
string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies


 ___


Configuration

bcmath

BCMath support => enabled

Directive => Local Value => Master Value
bcmath.scale => 0 => 0

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bzip2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.6, 6-Sept-2010

calendar

Calendar support => enabled

Core

PHP Version => 5.6.27-0+deb8u1

Directive => Local Value => Master Value
allow_url_fopen => On => On
allow_url_include => Off => Off
always_populate_raw_post_data => 0 => 0
arg_separator.input => & => &
arg_separator.output => & => &
asp_tags => Off => Off
auto_append_file => no value => no value
auto_globals_jit => On => On
auto_prepend_file => no value => no value
browscap => no value => no value
default_charset => UTF-8 => UTF-8
default_mimetype => text/html => text/html
disable_classes => no value => no value
disable_functions => no value => no value
display_errors => Off => Off
display_startup_errors => Off => Off
doc_root => no value => no value
docref_ext => no value => no value
docref_root => no value => no value
enable_dl => Off => Off
enable_post_data_reading => On => On
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => 22527 => 22527
exit_on_timeout => Off => Off
expose_php => On => On
extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226
file_uploads => On => On
highlight.comment => #FF8000 => #FF8000
highlight.default => #BB => #BB
highlight.html => #00 => #00
highlight.keyword => #007700 => #007700
highlight.string => #DD => #DD
html_errors => Off => Off
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => On
include_path => .:/usr/share/php:/usr/share/pear => 
.:/usr/share/php:/usr/share/pear
input_encoding => no value => no value

Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2016-10-31 Thread Kunal Mehta
Hi,

On 10/31/2016 03:47 AM, Jonathan Dowland wrote:
> After doing so, our wiki says the following
> 
>> MediaWiki requires the PSR-3 logging library to be present. This library is
>> not embedded directly in MediaWiki's git repository and must be installed
>> separately by the end user. Please see mediawiki.org for help on installing
>> the required components.
> 
> There is no mention of this PSR-3 library in UPGRADING.gz and no obvious match
> for it when searching the Debian package archives.

That library is bundled with the MediaWiki package, so there shouldn't
be any manual work required.

It would seem that somehow the /usr/share/mediawiki/vendor/psr/log/
directory is missing on your system - could you check if that directory
exists? Also the output of `php -i` might be helpful in debugging.

-- Kunal



signature.asc
Description: OpenPGP digital signature


Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2016-10-31 Thread Jonathan Dowland
Hm this would appear to partain
https://github.com/wikimedia/mediawiki-debian/blob/master/docs/logger.txt


-- 
Jonathan Dowland


signature.asc
Description: Digital signature


Bug#842681: mediawiki: upgraded wiki (from squeeze) fails due to missing PSR-3

2016-10-31 Thread Jonathan Dowland
Package: mediawiki
Version: 1:1.27.1-2~bpo8+1
Severity: normal

Hi, I've just upgraded the Debian package from the oldstable version to the
backports version (upgrade mediawiki:all 1:1.19.20+dfsg-2.3 1:1.27.1-2~bpo8+1)

After doing so, our wiki says the following

> MediaWiki requires the PSR-3 logging library to be present. This library is
> not embedded directly in MediaWiki's git repository and must be installed
> separately by the end user. Please see mediawiki.org for help on installing
> the required components.

There is no mention of this PSR-3 library in UPGRADING.gz and no obvious match
for it when searching the Debian package archives.