Closed i-enthusiast closed 1 month ago
Bummer. Sorry you are having issues.
Can you please post the contents of /home/user01/.sc/logs/2024-09-09-15.10.39.mapepire.log
?
Thanks for taking the time to respond!
That log file is empty :( I have 5 log files there from all my attempts to start it, and they're all empty.
FYI, I also posted an issue over on mapepire-server: https://github.com/Mapepire-IBMi/mapepire-server/issues/67
Some more environment details: This is a Power 10 (9105-41B) LPAR used for testing. It is being hosted under an IBM i hosting partition that is also running V7R5.
Strange. What happens if you try to start it directly, like so?:
/QOpenSys/pkgs/bin/mapepire
I receive the following output:
Starting daemon...2024-09-10 10:44:19.379:INFO::main: Logging initialized @326ms to org.eclipse.jetty.util.log.StdErrLog bye
I don't believe the service is running.
sc list group:all
shows the service, but sc check group:all
shows a status of NOT RUNNINGscopenports
doesn't list the port as active===> NETSTAT
, Option 3 does not show any service listening on 8076 either.Additional Info
bash-5.2$ sc info mapepire
---------------------------------------------------------------------
mapepire (Mapepire Server)
Defined in: /QOpenSys/pkgs/lib/mapepire/mapepire.yaml
Working Directory: .
Startup Command: ../../bin/mapepire
Startup Wait Time (s): 60
Shutdown Wait Time (s): 45
Check-alive conditions: JOBNAME:MAPEPIRE, PORT:8076
Batch Mode: <submitted to batch>
Batch Job Name: MAPEPIRE
SBMJOB options: JOBQ(QUSRNOMAX)
Inherits environment variables?: true
Custom environment variables:
PATH=/QOpenSys/pkgs/bin:/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin
---------------------------------------------------------------------
Looks like more of a Mapepire problem than SC, but I have no problem chasing here for now. We'll need more logs, unfortunately. Please run the following command:
QIBM_JAVA_STDIO_CONVERT=N QIBM_PASE_DESCRIPTOR_STDIO=B QIBM_USE_DESCRIPTOR_STDIO=Y QIBM_MULTI_THREADED=Y /QOpenSys/QIBM/ProdData/JavaVM/jdk80/64bit/bin/java -Dos400.stdio.convert=N -jar /QOpenSys/pkgs/lib/mapepire/mapepire-server.jar --traceOn
If you ran this command as an *ALLOBJ user, it should generate a file with a .html extension in /QOpenSys/pkgs/lib/mapepire/
Otherwise, it will be an HTML file in /tmp
that starts with VSCode
Assuming you are able to successfully complete these steps, please send in the contents of the resulting log file (.html
format)
THANK YOU!!!
All I needed was a way to debug the output during startup, and your command allowed this. With your help I was able to identify and correct the issue.
java.net.UnknownHostException: <redacted.domain.com>: <redacted.domain.com>: Hostname and service name not provided or found
at java.net.InetAddress.getLocalHost(InetAddress.java:1704)
at com.github.ibm.mapepire.certstuff.SelfSignedCertGenerator.generate(SelfSignedCertGenerator.java:24)
at com.github.ibm.mapepire.certstuff.ServerCertGetter.get(ServerCertGetter.java:102)
at com.github.ibm.mapepire.MapepireServer.main(MapepireServer.java:74)
Caused by: java.net.UnknownHostException: <redacted.domain.com>: Hostname and service name not provided or found
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:1048)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1481)
at java.net.InetAddress.getLocalHost(InetAddress.java:1699)
... 3 more
The server couldn't resolve its own hostname. As this is a brand new LPAR for testing, no DNS records had been set up on the lookup servers. As soon as I created a DNS record for this server's hostname, the service was able to start up.
I recommend this requirement be listed in the Mapepire setup documentation, i.e. full DNS setup (a.k.a fully resolvable hostname). That's not for you to worry about of course, but I'm just including it here for anyone else that may experience this issue.
Thanks again @ThePrez !!!!
Describe the bug I am unable to start the Mapepire service using Service Commander. Environment: V7R5, latest PTFs. EDIT: Similar issue posted in Mapepire Github: https://github.com/Mapepire-IBMi/mapepire-server/issues/67
To Reproduce Mapepire was installed using the instructions under "Option 1: RPM (recommended)" found here: https://mapepire-ibmi.github.io/guides/sysadmin/ I then try to use the following command to launch the service:
sc start mapepire
The only output I receive is the following:
Expected behavior Mapepire should start listening on Port 8076.
Verbose output
Additional context