[Freedombox-discuss] Error installing mediawiki

permondes - sagen sagen at permondes.de
Sun Jun 10 13:10:52 BST 2018


sent again as I used the wrong mail address
Am Sonntag, den 10.06.2018, 13:56 +0200 schrieb permondes:
> I am going through the source code of Plinth now. actions > mediawiki
> apperently assumes that LocalSettings.php is located at
> '/var/lib/mediawiki/LocalSettings.php', which is where I have the
> broken link to /etc. So where is this file supposed to be generated?
> Already in the dpkg of mediawiki? In that case, something must have
> gone wrong there. Any ideas how to further investigate this issue?I'd
> loved to have a wiki on my box.
> 	Dietmar
> Am Samstag, den 09.06.2018, 18:16 +0200 schrieb permondes - sagen:
> > I am trying again to install mediawiki in Plinth 0.30 and come
> > again to the error message  "No such file or
> > directory: \'/var/lib/mediawiki/LocalSettings.php\'\n'), which I
> > already had with Plinth 0.27 in March:
> > 
> > > Error installing application: ('mediawiki', '', 'Traceback (most
> > > recent call last):\n  File "/usr/share/plinth/actions/mediawiki",
> > > line 177,
> > > in <module>\n    main()\n  File "/usr/share/plinth/actions/mediaw
> > > iki", line 173, in
> > > main\n    subcommand_method(arguments)\n  File "/usr/share/plinth
> > > /actions/mediawiki", line 80, in
> > > subcommand_setup\n    _disable_public_registrations()\n  File "/u
> > > sr/share/plinth/actions/mediawiki", line 87,
> > > in _disable_public_registrations\n    if
> > > not grep(r\'\\$wgGroupPermissions.*createaccount\',
> > > CONF_FILE):\n  File "/usr/lib/python3/dist-
> > > packages/plinth/utils.py", line 138, in grep\n    line.rstrip()
> > > for line in open(file_name) if
> > > re.search(pattern, line)\nFileNotFoundError: [Errno 2] No such
> > > file or directory: \'/var/lib/mediawiki/LocalSettings.php\'\n')  
> > 
> > That is actually a broken link:
> > > lrwxrwxrwx 1 root     root      32 Apr 13 06:26 LocalSettings.php
> > > -> /etc/mediawiki/LocalSettings.php
> > Would it be sufficient to place that file in that directory? Where
> > could I get that file from? It is probably pre-generated by Plinth,
> > right?
> > 
> > The last bit in /var/log/dpkg.log is:
> > > 2018-06-09 17:43:54 status unpacked mediawiki:all 1:1.30.0-1
> > > 2018-06-09 17:43:55 status half-configured mediawiki:all
> > > 1:1.30.0-1
> > > 2018-06-09 17:44:04 status installed mediawiki:all 1:1.30.0-1
> > > 2018-06-09 17:44:05 configure php-apcu-bc:armhf 1.0.3-2+b1 <none>
> > > 2018-06-09 17:44:05 status unpacked php-apcu-bc:armhf 1.0.3-2+b1
> > > ,,,
> > > 2018-06-09 17:44:05 status unpacked php-apcu-bc:armhf 1.0.3-2+b1
> > > 2018-06-09 17:44:05 status half-configured php-apcu-bc:armhf
> > > 1.0.3-2+b1
> > > 2018-06-09 17:44:07 status installed php-apcu-bc:armhf 1.0.3-2+b1
> > > 2018-06-09 17:44:07 configure mariadb-server-10.1:armhf
> > > 1:10.1.29-6+b1 <none>
> > > 2018-06-09 17:44:07 status unpacked mariadb-server-10.1:armhf
> > > 1:10.1.29-6+b1
> > > ...
> > > 2018-06-09 17:44:08 status unpacked mariadb-server-10.1:armhf
> > > 1:10.1.29-6+b1
> > > 2018-06-09 17:44:08 status half-configured mariadb-server-
> > > 10.1:armhf 1:10.1.29-6+b1
> > > 2018-06-09 17:44:39 status installed mariadb-server-10.1:armhf
> > > 1:10.1.29-6+b1
> > > 2018-06-09 17:44:40 configure default-mysql-server:all 1.0.4
> > > <none>
> > > 2018-06-09 17:44:40 status unpacked default-mysql-server:all
> > > 1.0.4
> > > 2018-06-09 17:44:41 status half-configured default-mysql-
> > > server:all 1.0.4
> > > 2018-06-09 17:44:41 status installed default-mysql-server:all
> > > 1.0.4
> > > 2018-06-09 17:44:41 configure php:all 1:7.2+61 <none>
> > > 2018-06-09 17:44:41 status unpacked php:all 1:7.2+61
> > > 2018-06-09 17:44:41 status half-configured php:all 1:7.2+61
> > > 2018-06-09 17:44:41 status installed php:all 1:7.2+61
> > > 2018-06-09 17:44:41 trigproc libc-bin:armhf 2.27-3 <none>
> > > 2018-06-09 17:44:41 status half-configured libc-bin:armhf 2.27-3
> > > 2018-06-09 17:44:42 status installed libc-bin:armhf 2.27-3
> > > 
> > Plinth log gives :
> > > [2018-06-09 17:07:34,629] plinth.setup   INFO     Running step
> > > for module - mediawiki, step - setup
> > > [2018-06-09 17:07:34,632] plinth.actions INFO     Executing
> > > command - ['sudo', '-n', '/usr/share/plinth/actions/mediawiki',
> > > 'setup']
> > > [2018-06-09 17:07:36,641] plinth.actions ERROR    Error executing
> > > command - ['sudo', '-n', '/usr/share/plinth/actions/mediawiki',
> > > 'setup'], , Traceback (most recent call last):
> > >   File "/usr/share/plinth/actions/mediawiki", line 177, in
> > > <module>
> > >     main()
> > >   File "/usr/share/plinth/actions/mediawiki", line 173, in main
> > >     subcommand_method(arguments)
> > >   File "/usr/share/plinth/actions/mediawiki", line 80, in
> > > subcommand_setup
> > >     _disable_public_registrations()
> > >   File "/usr/share/plinth/actions/mediawiki", line 87, in
> > > _disable_public_registrations
> > >     if not grep(r'\$wgGroupPermissions.*createaccount',
> > > CONF_FILE):
> > >   File "/usr/lib/python3/dist-packages/plinth/utils.py", line
> > > 138, in grep
> > >     line.rstrip() for line in open(file_name) if
> > > re.search(pattern, line)
> > > FileNotFoundError: [Errno 2] No such file or directory:
> > > '/var/lib/mediawiki/LocalSettings.php'
> > > 
> > 
> > And according to README.Debian, I have to go through the installer,
> > so which directory is designed for the sqlite DB? It is not
> > */var/lib/mediawiki/mywiki* as it gives a permission error.
> > 
> > I am on an OLimex Lime. 
> > 
> > Has anyone successfully gone through this torture?
> > 
> > 	Dietmar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/freedombox-discuss/attachments/20180610/4b33a6a2/attachment.html>


More information about the Freedombox-discuss mailing list