Discussion:
Cannot easily contribute to the wiki
Joshua Branson
2018-09-24 15:19:42 UTC
Permalink
Hello,

A few years ago I had the Hurd wiki cloned locally, and I could rather
trivially set it up. However, following the online guide a few days
ago, I'm running into some issues.

https://www.gnu.org/software/hurd/contributing/web_pages.html

I've cloned the repo. I've run

$ apt-get install ikiwiki libyaml-syck-perl markdown
libsearch-xapian-perl texinfo

Neither of these commands work in the web pages directory:

ikiwiki --setup ikiwiki.setup

./render_locally


They both fail with "Failed to load plugin, Ikiwiki::Plugin::field".

Basically getting all of ikiwiki's plugins needed to run the hurd wiki
is a bit of a pain.

This is not a complaint just an observation and a request for help.

Thanks,

Joshua
Thomas Schwinge
2018-09-26 08:21:45 UTC
Permalink
Hi!
Post by Joshua Branson
A few years ago I had the Hurd wiki cloned locally, and I could rather
trivially set it up. However, following the online guide a few days
ago, I'm running into some issues.
https://www.gnu.org/software/hurd/contributing/web_pages.html
I've cloned the repo. I've run
$ apt-get install ikiwiki libyaml-syck-perl markdown
libsearch-xapian-perl texinfo
ikiwiki --setup ikiwiki.setup
./render_locally
They both fail with "Failed to load plugin, Ikiwiki::Plugin::field".
Please always quote the exact log what you did and what happened;
copy'n'paste from your terminal.
Post by Joshua Branson
Basically getting all of ikiwiki's plugins needed to run the hurd wiki
is a bit of a pain.
That's why these non-standard "field" etc. plugins are shipped inside the
Hurd "web" repository, see ".library/IkiWiki/Plugin/".
Post by Joshua Branson
This is not a complaint just an observation and a request for help.
Thanks for reporting.


I'm aware of one problem that is seen with "recent" verions of Perl
(don't know when exactly this started), which indeed makes the "getfield"
plugin fail to load:

$ ./render_locally
Failed to load plugin IkiWiki::Plugin::getfield: Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/{{ <-- HERE \$([-\w/]+#)?[-\w]+}}/ at [...]/.library/IkiWiki/Plugin/getfield.pm line 68.
Compilation failed in require at (eval 94) line 1.
BEGIN failed--compilation aborted at (eval 94) line 1.

(This, or something similar, also happens when pushing to darnassus.)

I already have identified a fix, and will push that in the next days.


Grüße
Thomas
Joshua Branson
2018-09-26 20:36:44 UTC
Permalink
Post by Thomas Schwinge
Hi!
Post by Joshua Branson
A few years ago I had the Hurd wiki cloned locally, and I could rather
trivially set it up. However, following the online guide a few days
ago, I'm running into some issues.
is a bit of a pain.
That's why these non-standard "field" etc. plugins are shipped inside the
Hurd "web" repository, see ".library/IkiWiki/Plugin/".
Post by Joshua Branson
This is not a complaint just an observation and a request for help.
Thanks for reporting.
I'm aware of one problem that is seen with "recent" verions of Perl
(don't know when exactly this started), which indeed makes the "getfield"
$ ./render_locally
Failed to load plugin IkiWiki::Plugin::getfield: Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/{{ <-- HERE \$([-\w/]+#)?[-\w]+}}/ at [...]/.library/IkiWiki/Plugin/getfield.pm line 68.
Compilation failed in require at (eval 94) line 1.
BEGIN failed--compilation aborted at (eval 94) line 1.
This is pretty the exact issue that I had. :)
Post by Thomas Schwinge
(This, or something similar, also happens when pushing to darnassus.)
I already have identified a fix, and will push that in the next days.
Grüße
Thomas
Thomas Schwinge
2018-09-26 20:50:44 UTC
Permalink
Hi!
Post by Joshua Branson
Post by Thomas Schwinge
I'm aware of one problem that is seen with "recent" verions of Perl
(don't know when exactly this started), which indeed makes the "getfield"
$ ./render_locally
Failed to load plugin IkiWiki::Plugin::getfield: Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/{{ <-- HERE \$([-\w/]+#)?[-\w]+}}/ at [...]/.library/IkiWiki/Plugin/getfield.pm line 68.
Compilation failed in require at (eval 94) line 1.
BEGIN failed--compilation aborted at (eval 94) line 1.
This is pretty the exact issue that I had. :)
Post by Thomas Schwinge
(This, or something similar, also happens when pushing to darnassus.)
I already have identified a fix, and will push that in the next days.
I now pushed the attached to address this.


Please fetch and try again.


GrÌße
Thomas
Joshua Branson
2018-09-27 22:42:08 UTC
Permalink
Post by Thomas Schwinge
Hi!
I now pushed the attached to address this.
Please fetch and try again.
Thanks for the speedy response! I still am getting some issues...On my
Parabola GNU/Linux machine, I get the following issues when running
"./render_locally".

$ ymlfront: failed to use YAML::Syck

Luckily Parabola packages perl-yaml-syck! But after I ran installed
perl-yaml-syck, I still got the same error:

$ ymlfront: failed to use YAML::Syck

So I rebooted and tried again. Same error:

$ ymlfront: failed to use YAML::Syck


Granted, on my parabola machine, I'm not sure if I have all of the
dependancies. Mainly the wiki says to use apt-get, which I don't have.

$ apt-get install ikiwiki libyaml-syck-perl markdown libsearch-xapian-perl texinfo


Here's the dependancies I know I have:

[***@dobby hurd-web]$ pacman -Q markdown texinfo perl-yaml-syck
discount 2.2.4-1
texinfo 6.5-1
perl-yaml-syck 1.30-5


[***@dobby hurd-web]$ guix package -I ikiwiki
ikiwiki 3.20170111 out /gnu/store/xsrhihjj1rjhzhba0b2dfmbhd7c0j115-ikiwiki-3.20170111


So since my Parabola GNU/Linux machine didn't work, I thought I'd try
the Hurd vm I have.

Then I booted up my Hurd VM and tried git pulling.

fatal: Unable to look up darnassus.sceen.net (port 9418) (Temporary failure in n
ame resolution)


I also got this error as the vm was booting:
ip up: failed to bring up /dev/eth0


So, I'm kind of stuck at the moment. :(
Thomas Schwinge
2018-09-28 08:33:54 UTC
Permalink
Hi!
Post by Joshua Branson
"./render_locally".
$ ymlfront: failed to use YAML::Syck
Nothing else get printed?
Post by Joshua Branson
Luckily Parabola packages perl-yaml-syck! But after I ran installed
$ ymlfront: failed to use YAML::Syck
$ ymlfront: failed to use YAML::Syck
Granted, on my parabola machine, I'm not sure if I have all of the
dependancies. Mainly the wiki says to use apt-get, which I don't have.
$ apt-get install ikiwiki libyaml-syck-perl markdown libsearch-xapian-perl texinfo
discount 2.2.4-1
texinfo 6.5-1
perl-yaml-syck 1.30-5
What does the following print?

$ perl -e 'use YAML::Syck' && echo OK


I do remember commit 178b9e4a14e8ea6fa415c3c36461e41da8434694 "ymlfront:
Force use of YAML::Syck", but that shouldn't cause any problems if the
relevant Perl packages are properly installed. You might try to
temporarily revert that one, though.

Or, temporarily disable (some of) these plugins, see "ikiwiki.setup".
You should still be able to "render_locally", just some information will
be missing on a few pages.
Post by Joshua Branson
So since my Parabola GNU/Linux machine didn't work, I thought I'd try
the Hurd vm I have.
How do you start the VM?
Post by Joshua Branson
Then I booted up my Hurd VM and tried git pulling.
fatal: Unable to look up darnassus.sceen.net (port 9418) (Temporary failure in n
ame resolution)
Same when pulling from savannah.gnu.org, probably?
Post by Joshua Branson
ip up: failed to bring up /dev/eth0
Does the information from
<http://mid.mail-archive.com/***@var.youpi.perso.aquilenet.fr>
help by any chance?
Post by Joshua Branson
So, I'm kind of stuck at the moment. :(
Well, on the contrary, there certainly are enough items here that can be
investigated. :-)


Grüße
Thomas
Joshua Branson
2018-09-28 15:27:10 UTC
Permalink
Post by Thomas Schwinge
Hi!
Post by Joshua Branson
"./render_locally".
$ ymlfront: failed to use YAML::Syck
Nothing else get printed?
Nope. That's the only error message that I get. :(
Post by Thomas Schwinge
Post by Joshua Branson
Luckily Parabola packages perl-yaml-syck! But after I ran installed
$ ymlfront: failed to use YAML::Syck
$ ymlfront: failed to use YAML::Syck
Granted, on my parabola machine, I'm not sure if I have all of the
dependancies. Mainly the wiki says to use apt-get, which I don't have.
$ apt-get install ikiwiki libyaml-syck-perl markdown libsearch-xapian-perl texinfo
discount 2.2.4-1
texinfo 6.5-1
perl-yaml-syck 1.30-5
What does the following print?
$ perl -e 'use YAML::Syck' && echo OK
It outputs:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
OK

So I should probably figure out how to set my language and LC_ALL...
Post by Thomas Schwinge
Force use of YAML::Syck", but that shouldn't cause any problems if the
relevant Perl packages are properly installed. You might try to
temporarily revert that one, though.
Or, temporarily disable (some of) these plugins, see "ikiwiki.setup".
You should still be able to "render_locally", just some information will
be missing on a few pages.
I'll have to give that a shot. This might be obvious, but I'm afraid to
commit patches for the wiki, until I can see the results of the
patches. ie: I don't want to write incorrect markdown, and the only way
to make sure it is correct, is to render it locally. You probably know
this, and I'm just ranting. :)
Post by Thomas Schwinge
Post by Joshua Branson
So since my Parabola GNU/Linux machine didn't work, I thought I'd try
the Hurd vm I have.
How do you start the VM?
I use a shell script:

[***@dobby ~]$ which hurd
/home/joshua/programming/bash/hurd
[***@dobby ~]$ cat $(which hurd)
#!/bin/bash
modprobe kvm
modprobe kvm_intel
cd ~/programming/gnu/hurd/vm/
MEMORY=2G
FILE=debian-hurd-2017-11-01.img
# If I ever need to add a cdrom
echo "running ssh"

qemu-system-i386 -m $MEMORY -net nic \
-net user,
hostfwd=tcp:127.0.0.1:2222-:22 \
-drive file=$FILE,cache=writeback,format=raw \
-enable-kvm \
-curses \
-no-reboot;
# -curses \
# -machine kernel_irqchip=off \


Just last night I had some trouble sshing into the vm too, so I'll have
to investigate that.
Post by Thomas Schwinge
Post by Joshua Branson
Then I booted up my Hurd VM and tried git pulling.
fatal: Unable to look up darnassus.sceen.net (port 9418) (Temporary failure in n
ame resolution)
Same when pulling from savannah.gnu.org, probably?
Apparently I'm pulling from braunr's repo. I think

***@debian:~/programming/hurd-web$ git remote -v
origin git://darnassus.sceen.net/hurd-web.git (fetch)
origin git://darnassus.sceen.net/hurd-web.git (push)

***@debian:~/programming/hurd-web$ which ping
/bin/ping
***@debian:~/programming/hurd-web$ ping www.google.com
ping: unknown host

***@debian:~/programming/hurd-web$ git fetch git://git.savannah.gnu.org/hurd/
web.git
fatal: Unable to look up git.savannah.gnu.org (port 9418) (Temporary failure in
name resolution)
Post by Thomas Schwinge
Post by Joshua Branson
ip up: failed to bring up /dev/eth0
Does the information from
help by any chance?
Well maybe. I changed the script to this:

[***@dobby ~]$ cat $(which hurd)
#!/bin/bash
modprobe kvm
modprobe kvm_intel
cd ~/programming/gnu/hurd/vm/
MEMORY=2G
FILE=debian-hurd-2017-11-01.img
# If I ever need to add a cdrom
echo "running ssh"

qemu-system-i386 -m $MEMORY \
-net user -net nic, model=rtl8139 \ # make wiki use a driver card that gnumach has available in the kernel
hostfwd=tcp:127.0.0.1:2222-:22 \
-drive file=$FILE,cache=writeback,format=raw \
-enable-kvm \
-curses \
-no-reboot;
# -machine kernel_irqchip=off \


I then got this error:

[***@dobby ~]$ hurd
running ssh
Gtk-Message: 11:23:18.177: Failed to load module "canberra-gtk-module"
qemu-system-i386: -net nic,: Could not open 'model=rtl8139': No such file or directory
/home/joshua/programming/bash/hurd: line 12: -drive: command not found
Post by Thomas Schwinge
Post by Joshua Branson
So, I'm kind of stuck at the moment. :(
Well, on the contrary, there certainly are enough items here that can be
investigated. :-)
Grüße
Thomas
P.S. well frick. I had a script that worked to boot the hurd at some
point. Now I don't. The script that I now have, fails with this:

[***@dobby ~]$ hurd
running ssh
qemu-system-i386: -net user,: Unknown protocol 'hostfwd=tcp'

So I'll have to disable ssh forwarding for the moment until I get this
all figured out. Thanks for the help!
Svante Signell
2018-09-28 15:37:01 UTC
Permalink
Post by Joshua Branson
#!/bin/bash
modprobe kvm
modprobe kvm_intel
cd ~/programming/gnu/hurd/vm/
MEMORY=2G
FILE=debian-hurd-2017-11-01.img
# If I ever need to add a cdrom
echo "running ssh"
qemu-system-i386 -m $MEMORY \
-net user -net nic, model=rtl8139 \ # make
wiki use a driver card that gnumach has available in the kernel
hostfwd=tcp:127.0.0.1:2222-:22 \
-drive file=$FILE,cache=writeback,format=raw \
-enable-kvm \
-curses \
-no-reboot;
# -machine kernel_irqchip=off \
running ssh
Gtk-Message: 11:23:18.177: Failed to load module "canberra-gtk-
module"
qemu-system-i386: -net nic,: Could not open 'model=rtl8139': No such file or directory
/home/joshua/programming/bash/hurd: line 12: -drive: command not found
Are you sure a space is allowed after -net nic,? I normally use -net
nic,model=e1000. And BTW: rtl8139 is buggy, sometimes Ethernet
connections fail. Dunno however if e1000 is supported by the mach
kernel or dde though.
Joshua Branson
2018-10-25 09:26:56 UTC
Permalink
Thomas Schwinge <***@codesourcery.com> writes:

I was able to my local hurd wiki to build locally. I had to disable the
xapian search and ymlfront plugins. Now I have the hurd wiki building
locally!

Hoo ray!!!
Post by Thomas Schwinge
Hi!
Post by Joshua Branson
A few years ago I had the Hurd wiki cloned locally, and I could rather
trivially set it up. However, following the online guide a few days
ago, I'm running into some issues.
https://www.gnu.org/software/hurd/contributing/web_pages.html
I've cloned the repo. I've run
$ apt-get install ikiwiki libyaml-syck-perl markdown
libsearch-xapian-perl texinfo
ikiwiki --setup ikiwiki.setup
./render_locally
They both fail with "Failed to load plugin, Ikiwiki::Plugin::field".
Please always quote the exact log what you did and what happened;
copy'n'paste from your terminal.
Post by Joshua Branson
Basically getting all of ikiwiki's plugins needed to run the hurd wiki
is a bit of a pain.
That's why these non-standard "field" etc. plugins are shipped inside the
Hurd "web" repository, see ".library/IkiWiki/Plugin/".
Post by Joshua Branson
This is not a complaint just an observation and a request for help.
Thanks for reporting.
I'm aware of one problem that is seen with "recent" verions of Perl
(don't know when exactly this started), which indeed makes the "getfield"
$ ./render_locally
Failed to load plugin IkiWiki::Plugin::getfield: Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/{{ <-- HERE \$([-\w/]+#)?[-\w]+}}/ at [...]/.library/IkiWiki/Plugin/getfield.pm line 68.
Compilation failed in require at (eval 94) line 1.
BEGIN failed--compilation aborted at (eval 94) line 1.
(This, or something similar, also happens when pushing to darnassus.)
I already have identified a fix, and will push that in the next days.
Grüße
Thomas
Loading...