Re: Horde Webmailer

2019-01-03 Thread Rhialto
On Thu 03 Jan 2019 at 12:41:46 +0100, Frank Wille wrote:
> did anybody successfully install the Horde Webmailer
>   https://www.horde.org/apps/webmail
> under NetBSD?

I think I did it years ago, but in the end I didn't like it too much and
switched to squirrelmail.

> I'm running GENERIC 8.0 with PHP 5.6.36, MySQL 5.6.39 and Apache 2.4.33
> installed from pkgsrc 2018Q2. Typo3 works fine, so this configuration
> cannot be too bad.
> 
> I installed the Horde Webmailer like this:
> 
> # pear channel-update pear.php.net
> # pear install Date
> # pear channel-discover pear.horde.org
> # mkdir /var/www/vhosts/my.domain.name/webmail
> # chown apache:_httpd /var/www/vhosts/my.domain.name/webmail
> # pear install horde/horde_role
> # pear run-scripts horde/horde_role
> (Here I enter /var/www/vhosts/my.domain.name/webmail as installation
> directory.)
> # pear install -a -B horde/webmail

I think I just installed the mail/imp package. I certainly didn't do
anything complicated like the above.

But maybe things changed in the mean time (very possible) so that it
doesn't work like that any more.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- "What good is a Ring of Power
\X/ rhialto/at/falu.nl  -- if you're unable...to Speak." - Agent Elrond


signature.asc
Description: PGP signature


Re: Horde Webmailer

2019-01-03 Thread Frank Wille
On Thu, 03 Jan 2019 14:35:19 +0100
Niels Dettenbach  wrote:

> i would recommend to install the whole Horde 5 (horde/horde) and then
> (globally) "disable" unwanted Horde apps in admin. 
> 
> I had the effect that installations of Horde by pear (the official way as
> in INSTALL) was "broken" if not.

As you wrote the pear-installation might be broken, you're probably refering
to www/horde vom pkgsrc as an alternative?

I already wondered if this could be an easier way to make it work, but from
the DESCR I am not sure what this "Framework" really installs and what would
still be missing when I want webmail.

And do I have to uninstall all currently present Horde packages, before
installing everything from Horde 5? Is there an easy way to uninstall
multiple packages with pear (like uninstall dependencies as well)?


> Visit any warnings in the pear install output about resources to install
> possibly by hand.

Indeed, yesterday I noticed during installation that there were warnings
and/or errors, although pear reported "install ok" in the last line. I had
to add php-ldap and php-gettext from pkgsrc, for example.
I really don't like pear. I would expect it to halt on such a problem. :|


> Did you had runned the included "test.php" (by webserver) and checked the
> required environment before config?

Yes. Same problem. The browser shows:

A fatal error has occurred
Class 'Horde_Exception' not found
Details have been logged for the administrator.

It wouldn't surprise when not a single Horde class works, but Horde_Exception
is just the first class referenced.


> i use i.e. (pear instance in "separated" directory - this is untested from
> mind!):
> [...]

I would prefer to make the global installation in /usr/pkg/lib/php. But I
might try that for testing purposes.

Thanks for your help!

-- 
Frank Wille


Re: Crash minecraft under NetBSD-8 amd64

2019-01-03 Thread Jose Luis Rodriguez Garcia
> Does it work with OpenJDK 8? We have that in pkgsrc (and it works
> fine for me for other apps).
>
> Martin

It doesn't work with OpenJDK 8. Minecraft ships with LWJGL and it
gives the error (I have tried this):

'Exception in thread "main" java.lang.LinkageError: Unknown platform: NetBSD'

I am following the instructions posted in:
https://www.reddit.com/r/NetBSD/comments/5mtsy1/getting_minecraft_to_run_on_netbsd/

I will try with a old version of Minecrat (with a old version of Java,
it gives the same error. It must be LWJGL that uses epoll).


Re: Horde Webmailer

2019-01-03 Thread Niels Dettenbach
Am Donnerstag, 3. Januar 2019, 15:13:09 CET schrieb Frank Wille:
> As you wrote the pear-installation might be broken, you're probably
> refering to www/horde vom pkgsrc as an alternative?
yes,
i work with current pkgsrc php / pear.

Ah - forgot, and for console stuff you might add the instance "php" Dir ("/
path_to_my/horde/pear/php") to the php include path in the general php.ini - 
i.e. in:
include_path = ".:/usr/pkg/lib/php:/path_to_my/horde/pear/php"

this possibly helps to solve your console problem (this is one point why why 
the official docs recommend the "web config").

As in the Horde INSTALL docs you have to set additional env vars in your 
webserver for separate path pear instance install:

https://www.horde.org/apps/horde/docs/INSTALL#installing-into-separate-pear

> I already wondered if this could be an easier way to make it work, but from
> the DESCR I am not sure what this "Framework" really installs and what
> would still be missing when I want webmail.

IMP webmailer is "an app" for the Horde framework. It resides (as all apps) 
in his subdir - called "imp" by the app name. 

> And do I have to uninstall all currently present Horde packages, before
> installing everything from Horde 5? Is there an easy way to uninstall
> multiple packages with pear (like uninstall dependencies as well)?

If you install to your own directory / seperated path of pear instance, you 
just have to move the whole root DIR out of the way or use a new subdir.

> A fatal error has occurred
> Class 'Horde_Exception' not found
> Details have been logged for the administrator.
> 
> It wouldn't surprise when not a single Horde class works, but
> Horde_Exception is just the first class referenced.
Try to add the path to "include_path" as described here and set the webserver 
environment vars as in the Horde INSTALL docs.


hth and good luck,
best regards,


Niels.

-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 





Re: Horde Webmailer

2019-01-03 Thread Niels Dettenbach
Am Donnerstag, 3. Januar 2019, 12:41:46 CET schrieb Frank Wille:
> # pear install -a -B horde/webmail
> 
> 
> Now everything is installed and I have to run "webmail-install" to finish
> it. Unfortunately I'm running into an error here, which I cannot solve:
hmm,
i would recommend to install the whole Horde 5 (horde/horde) and then 
(globally) "disable" unwanted Horde apps in admin. 

I had the effect that installations of Horde by pear (the official way as in 
INSTALL) was "broken" if not.

Visit any warnings in the pear install output about resources to install 
possibly by hand.

Did you had runned the included "test.php" (by webserver) and checked the 
required environment before config?

Hordes configuration could be done then by web btw. too.

i use i.e. (pear instance in "separated" directory - this is untested from 
mind!):

--- snip ---
BASEDIR=/path_to_my/horde
PEARDIR=$BASEDIR/pear
WEBDIR=$BASEDIR

mkdir $BASEDIR
cd $BASEDIR
$PEARDIR/pear/pear -c $PEARDIR/pear.conf channel-discover pear.horde.org
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install horde/horde_role
$PEARDIR/pear/pear -c $PEARDIR/pear.conf run-scripts horde/horde_role

#-> select the /path_to_my/horde here

$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/horde_core
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install-f -a -B horde/horde
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/imp
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/ingo
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/nag
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/turba
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/mnemo
$PEARDIR/pear/pear -c $PEARDIR/pear.conf install -f -a -B horde/kronolith

then chmod configs temporarily if required (i.e. when horde config by web):

chmod -R 777 config
chmod -R 777 */config

and revert the rights after.

--- snap ---

hth and good luck!
best regards,


Niels.



-- 
 ---
 Niels Dettenbach
 Syndicat IT & Internet
 http://www.syndicat.com
 PGP: https://syndicat.com/pub_key.asc
 ---
 








Horde Webmailer

2019-01-03 Thread Frank Wille
Hi,

did anybody successfully install the Horde Webmailer
  https://www.horde.org/apps/webmail
under NetBSD?

I'm running GENERIC 8.0 with PHP 5.6.36, MySQL 5.6.39 and Apache 2.4.33
installed from pkgsrc 2018Q2. Typo3 works fine, so this configuration
cannot be too bad.

I installed the Horde Webmailer like this:

# pear channel-update pear.php.net
# pear install Date
# pear channel-discover pear.horde.org
# mkdir /var/www/vhosts/my.domain.name/webmail
# chown apache:_httpd /var/www/vhosts/my.domain.name/webmail
# pear install horde/horde_role
# pear run-scripts horde/horde_role
(Here I enter /var/www/vhosts/my.domain.name/webmail as installation
directory.)
# pear install -a -B horde/webmail


Now everything is installed and I have to run "webmail-install" to finish
it. Unfortunately I'm running into an error here, which I cannot solve:

---8<---
# webmail-install 
Installing Horde Groupware Webmail Edition
PHP Fatal error:  Class 'Horde_Exception' not found in
/usr/pkg/lib/php/Horde/Exception/Wrapped.php on line 15
Fatal error: Class 'Horde_Exception' not found in
/usr/pkg/lib/php/Horde/Exception/Wrapped.php on line 15
Jan  3 12:32:41 nerthus HORDE: Class 'Horde_Exception' not found [pid 4284
on line 15 of "/usr/pkg/lib/php/Horde/Exception/Wrapped.php"]
  
  Fatal Error:
  Class 'Horde_Exception' not found   
  In /usr/pkg/lib/php/Horde/Exception/Wrapped.php on line 15  
  
  1. Horde_ErrorHandler::catchFatalError()
8<---

But Horde_Exception definitily exists, and is installed:

# ls -d /usr/pkg/lib/php/Horde/Exception*
/usr/pkg/lib/php/Horde/Exception/usr/pkg/lib/php/Horde/Exception.php
# pear list -c horde | grep Exception
Horde_Exception  2.0.8   stable

I didn't find anything about this problem in the Web. Maybe NetBSD is
missing a path? Although the include_path in php.ini is correct, of course:
; UNIX: "/path1:/path2" 
   include_path = ".:/usr/pkg/lib/php"

Any idea how to debug a PHP program missing a class?
Thanks in advance!

-- 
Frank Wille



Re: Crash minecraft under NetBSD-8 amd64

2019-01-03 Thread Martin Husemann
On Thu, Jan 03, 2019 at 01:50:15PM +0100, Jose Luis Rodriguez Garcia wrote:
> It seems to be: http://gnats.netbsd.org/48584
> 
> epoll in linux emulation isn't implemented.
> 
> Does it continue to be the case?

Yeah, that still seems to be the case

> Any workaround for run minecraft in NetBSD?

Does it work with OpenJDK 8? We have that in pkgsrc (and it works
fine for me for other apps).

Martin


Crash minecraft under NetBSD-8 amd64

2019-01-03 Thread Jose Luis Rodriguez Garcia
I am trying to run minecraft 1.13.2 under NetBSD amd64.

I am using the Java linux from Oracle: oracle-jre8-8.0.172

I have created this file for force oss sound (before it, crashed trying to
setup pulseaudio):
cat .alsoftrc
drivers=oss

It gives this error:
Caused by: java.io.IOException: Function not implemented
at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
~~[?:1.8.0_172]
at sun.nio.ch.EPollArrayWrapper.(EPollArrayWrapper.java:130)
~~[?:1.8.0_172]
at sun.nio.ch.EPollSelectorImpl.(EPollSelectorImpl.java:69)
~~[?:1.8.0_172]
at
sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
~~[?:1.8.0_172]


The full log, and the crash dump:

13:07:04] [Server thread/INFO]: Time elapsed: 80691 ms
[13:07:07] [Server thread/INFO]: Changing view distance to 12, from 10
[13:07:07] [Server thread/WARN]: Can't keep up! Is the server overloaded?
Running 2785ms or 55 ticks behind
[13:07:18] [main/FATAL]: Reported exception thrown!
h: mouseClicked event handler
at ckd.a(SourceFile:435) ~[1.13.2-OptiFine_HD_U_E5.jar:?]
at cfv.a(SourceFile:83) ~[1.13.2-OptiFine_HD_U_E5.jar:?]
at
org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
~~[lwjgl-glfw-3.1.6.jar:build 14]
at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.1.6.jar:build
14]
at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3029)
~~[lwjgl-glfw-3.1.6.jar:build 14]
at cgd.a(MainWindow.java:458) ~[cgd.class:?]
at cft.c(SourceFile:875) ~[cft.class:?]
at cft.a(SourceFile:395) [cft.class:?]
at net.minecraft.client.main.Main.main(SourceFile:144) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~~[?:1.8.0_172]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~~[?:1.8.0_172]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~~[?:1.8.0_172]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_172]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[launchwrapper-1.12.jar:?]
Caused by: java.lang.IllegalStateException: failed to create a child event
loop
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:88)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59)
~~[MultithreadEventLoopGroup.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:77)
~~[NioEventLoopGroup.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:72)
~~[NioEventLoopGroup.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:59)
~~[NioEventLoopGroup.class:4.1.25.Final]
at ub.f(SourceFile:55) ~[ub.class:?]
at xn.a(SourceFile:16) ~[xn.class:?]
at ub.a(SourceFile:136) ~[ub.class:?]
at cft.a(SourceFile:1490) ~[cft.class:?]
at cnc.i(SourceFile:302) ~[cnc.class:?]
at cnc.e(SourceFile:223) ~[cnc.class:?]
at cnb$2.a(SourceFile:71) ~[cnb$2.class:?]
at cgu.mouseClicked(SourceFile:103) ~[cgu.class:?]
at chq.mouseClicked(SourceFile:46) ~[chq.class:?]
at cfv.b(SourceFile:83) ~[cfv.class:?]
at ckd.a(SourceFile:430) ~[ckd.class:?]
... 14 more
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at
io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:177)
~~[NioEventLoop.class:4.1.25.Final]
at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:151)
~~[NioEventLoop.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:127)
~~[NioEventLoopGroup.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:36)
~~[NioEventLoopGroup.class:4.1.25.Final]
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:84)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47)
~~[MultithreadEventExecutorGroup.class:4.1.25.Final]
at
io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59)
~~[MultithreadEventLoopGroup.class:4.1.25.Final]
at
io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:77)
~~[NioEventLoopGroup.class:4.1.25.Final]
at