Re: [cas-user] Unable to build and/or run either cas, cas-overlay-template or cas-gradle-overlay-template

2018-04-02 Thread Rovanion Luckey
Surely running the development server as root isn't recommended, much less 
required?

Den lördag 31 mars 2018 kl. 23:15:49 UTC+2 skrev Manfredo Hopp:
>
> Did you try sudo...
>
> El sábado, 31 de marzo de 2018, Rovanion Luckey  > escribió:
>
>> All this is on a 64-bit Ubuntu 16.04 with OpenJDK 9, cas-overlay-template 
>> was also tested with JDK 8. 
>>
>> Starting with cas-gradle-overlay-template on 
>> 7435f376831e2760e3fa91c52e9094bcc4da413e, that is master, and the full 
>> procedures as follows:
>>
>> $ git clone g...@github.com:apereo/cas-gradle-overlay-template.git
>> $ cd cas-gradle-overlay-template/
>> $ ./build.sh run
>>
>> This, as far as I understand it, is what's needed to get the project up 
>> and running. The README isn't very clear on the subject though. The full 
>> output of the last command is rather long and can be found here: 
>> http://paste.ubuntu.com/p/hxCNnNvrX4/
>>
>> The first of the many reported issues being that the program is unable to 
>> create a folder `/etc/cas/logs` which is quite right assuming that the 
>> error message is correct. A user program should not touch anything under 
>> `/etc` and `/etc` is not the right place for logs, see the Linux Standard 
>> Base Filesystem Hiarchy Standard [0]. Logs in a development environment 
>> should be located in a folder relative to the project itself and in a 
>> production environment under `/var/log`.
>>
>> I made an attempt at changing where the logs were being written to by 
>> modifying `/etc/cas/config/log4j2.xml` so that the property 
>> `baseDir` read `./hat/cat`, yet the error continues to read `Could not 
>> create directory /etc/cas/logs`. 
>>
>> Running out of ideas available to me as a normal user I reached for the 
>> second template in the stack, cas-overlay-template:
>>
>> $ git clone g...@github.com:apereo/cas-overlay-template.git
>> $ ./build.sh run
>> Exception in thread "main" javax.net.ssl.SSLException: java.lang.
>> RuntimeException: Could not generate DH keypair
>> at sun.security.ssl.Alerts.getSSLException(java.base@9-internal/
>> Alerts.java:214)
>> at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/
>> SSLSocketImpl.java:1949)
>> at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/
>> SSLSocketImpl.java:1901)
>> at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-
>> internal/SSLSocketImpl.java:1884)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal
>> /SSLSocketImpl.java:1416)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal
>> /SSLSocketImpl.java:1393)
>> at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-
>> internal/HttpsClient.java:559)
>> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.
>> connect(java.base@9-internal/AbstractDelegateHttpsURLConnection.java:185)
>> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.
>> base@9-internal/HttpURLConnection.java:1511)
>> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.
>> base@9-internal/HttpURLConnection.java:1439)
>> at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(
>> java.base@9-internal/HttpsURLConnectionImpl.java:235)
>> at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(
>> DefaultDownloader.java:84)
>> at org.apache.maven.wrapper.DefaultDownloader.download(
>> DefaultDownloader.java:68)
>> at org.apache.maven.wrapper.Installer.createDist(Installer.java:69)
>> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.
>> java:149)
>> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.
>> java:48)
>> Caused by: java.lang.RuntimeException: Could not generate DH keypair
>> at sun.security.ssl.DHCrypt.(java.base@9-internal/DHCrypt.java:
>> 142)
>> at sun.security.ssl.DHCrypt.(java.base@9-internal/DHCrypt.java:
>> 114)
>> at sun.security.ssl.ClientHandshaker.serverKeyExchange(java.base@9-
>> internal/ClientHandshaker.java:830)
>> at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-
>> internal/ClientHandshaker.java:335)
>> at sun.security.ssl.Handshaker.processLoop(java.base@9-internal/
>> Handshaker.java:1003)
>> at sun.security.ssl.Handshaker.processRecord(java.base@9-internal/
>> Handshaker.java:937)
>> at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-
>> internal/SSLSocketImpl.java:1119)
>> at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
>> SSLSocketImpl.java:1056)
>> at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
>> SSLSocketImpl.java:955)
>> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9
>> -internal/SSLSocketImpl.java:1382)
>> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal
>> /SSLSocketImpl.java:1409)
>> ... 11 more
>> Caused by: java.security.InvalidAlgorithmParameterException: Prime size 
>> must 

Re: [cas-user] Unable to build and/or run either cas, cas-overlay-template or cas-gradle-overlay-template

2018-04-01 Thread Man H
Default is /etc/cas/config/cas.properties which should be copied by script.

El domingo, 1 de abril de 2018, Rovanion Luckey 
escribió:

> And switching over to https got that rolling. So remaining are my two
> questions:
>
> 1. How do I configure the template not to log to `/etc/cas/logs`?
>   Editing `/etc/cas/config/log4j2.xml` as described in the
> original post unfortunately had no effect, and that is the only place where
> `git grep "/etc/cas/logs"` found any match.
>
> 2. Are there other configuration options in the template that refer to the
> root of the file system rather than the root of the project folder?
>
>
>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+unsubscr...@apereo.org.
> To view this discussion on the web visit https://groups.google.com/a/
> apereo.org/d/msgid/cas-user/66045f9b-2cc9-4665-ac28-
> 25d7a4497d7e%40apereo.org
> 
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMY5midxkOx4qjEt6N8aTe63Z%2B42gnkMkHT3exuugpFAas1eLQ%40mail.gmail.com.


Re: [cas-user] Unable to build and/or run either cas, cas-overlay-template or cas-gradle-overlay-template

2018-03-31 Thread Man H
Did you try sudo...

El sábado, 31 de marzo de 2018, Rovanion Luckey 
escribió:

> All this is on a 64-bit Ubuntu 16.04 with OpenJDK 9, cas-overlay-template
> was also tested with JDK 8.
>
> Starting with cas-gradle-overlay-template on 
> 7435f376831e2760e3fa91c52e9094bcc4da413e,
> that is master, and the full procedures as follows:
>
> $ git clone g...@github.com:apereo/cas-gradle-overlay-template.git
> $ cd cas-gradle-overlay-template/
> $ ./build.sh run
>
> This, as far as I understand it, is what's needed to get the project up
> and running. The README isn't very clear on the subject though. The full
> output of the last command is rather long and can be found here:
> http://paste.ubuntu.com/p/hxCNnNvrX4/
>
> The first of the many reported issues being that the program is unable to
> create a folder `/etc/cas/logs` which is quite right assuming that the
> error message is correct. A user program should not touch anything under
> `/etc` and `/etc` is not the right place for logs, see the Linux Standard
> Base Filesystem Hiarchy Standard [0]. Logs in a development environment
> should be located in a folder relative to the project itself and in a
> production environment under `/var/log`.
>
> I made an attempt at changing where the logs were being written to by
> modifying `/etc/cas/config/log4j2.xml` so that the property
> `baseDir` read `./hat/cat`, yet the error continues to read `Could not
> create directory /etc/cas/logs`.
>
> Running out of ideas available to me as a normal user I reached for the
> second template in the stack, cas-overlay-template:
>
> $ git clone g...@github.com:apereo/cas-overlay-template.git
> $ ./build.sh run
> Exception in thread "main" javax.net.ssl.SSLException: java.lang.
> RuntimeException: Could not generate DH keypair
> at sun.security.ssl.Alerts.getSSLException(java.base@9-internal/Alerts
> .java:214)
> at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/SS
> LSocketImpl.java:1949)
> at sun.security.ssl.SSLSocketImpl.fatal(java.base@9-internal/SS
> LSocketImpl.java:1901)
> at sun.security.ssl.SSLSocketImpl.handleException(java.base@9-internal
> /SSLSocketImpl.java:1884)
> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1416)
> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1393)
> at sun.net.www.protocol.https.HttpsClient.afterConnect(java.base@9-
> internal/HttpsClient.java:559)
> at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.
> connect(java.base@9-internal/AbstractDelegateHttpsURLConnection.java:185)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(java.
> base@9-internal/HttpURLConnection.java:1511)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(java.
> base@9-internal/HttpURLConnection.java:1439)
> at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(
> java.base@9-internal/HttpsURLConnectionImpl.java:235)
> at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(
> DefaultDownloader.java:84)
> at org.apache.maven.wrapper.DefaultDownloader.download(DefaultD
> ownloader.java:68)
> at org.apache.maven.wrapper.Installer.createDist(Installer.java:69)
> at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.
> java:149)
> at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.
> java:48)
> Caused by: java.lang.RuntimeException: Could not generate DH keypair
> at sun.security.ssl.DHCrypt.(java.base@9-internal/DHCrypt.java:
> 142)
> at sun.security.ssl.DHCrypt.(java.base@9-internal/DHCrypt.java:
> 114)
> at sun.security.ssl.ClientHandshaker.serverKeyExchange(java.base@9-
> internal/ClientHandshaker.java:830)
> at sun.security.ssl.ClientHandshaker.processMessage(java.base@9-
> internal/ClientHandshaker.java:335)
> at sun.security.ssl.Handshaker.processLoop(java.base@9-internal/
> Handshaker.java:1003)
> at sun.security.ssl.Handshaker.processRecord(java.base@9-internal/
> Handshaker.java:937)
> at sun.security.ssl.SSLSocketImpl.processInputRecord(java.base@9-
> internal/SSLSocketImpl.java:1119)
> at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
> SSLSocketImpl.java:1056)
> at sun.security.ssl.SSLSocketImpl.readRecord(java.base@9-internal/
> SSLSocketImpl.java:955)
> at sun.security.ssl.SSLSocketImpl.performInitialHandshake(java.base@9-
> internal/SSLSocketImpl.java:1382)
> at sun.security.ssl.SSLSocketImpl.startHandshake(java.base@9-internal/
> SSLSocketImpl.java:1409)
> ... 11 more
> Caused by: java.security.InvalidAlgorithmParameterException: Prime size
> must be multiple of 64, and can only range from 512 to 2048 (inclusive)
> at com.sun.crypto.provider.DHKeyPairGenerator.initialize(java.base@9-
> internal/DHKeyPairGenerator.java:120)
> at java.security.KeyPairGenerator$Delegate.initialize(java.base@9-
>