Need Help? We are right here!
Thanks for your Enquiry. Our team will soon reach out to you.
If you don't hear from us within 24 hours, please feel free to send a follow-up email to info@xecurify.com
Search Results:
×The miniOrange On‑Premise Identity Server includes a command‑line utility called moctl that helps administrators manage and operate the identity platform more efficiently.
It is intended for IT teams and system administrators who have the miniOrange 5.0.0 installed on a server, or who want to deploy moctl fresh. This guide covers deployment, service management, logs, diagnostics, and troubleshooting.
Here’s a list of elements you would need before installation, deployment, and operations.
The expected environments that you would need are:
/opt/tomcat/latestmo-idp-*.service format/etc/mo-idp-server.env (primary config on deployed servers)Transfer the package
scp moctl.zip admin@<server-ip>:/opt/
Extract and install
cd /opt
├── unzip moctl.zip
├── cd /opt/moctl
├── sudo bash install-moctl.sh
install-moctl.sh reads /etc/mo-idp-server.env if it exists and updates the runtime config accordingly.
/usr/local/bin/moctl/opt/miniorange/moctl/etc/mo-idp-server.env (created or updated)
which moctl
ls -l /usr/local/bin/moctl
cat /etc/mo-idp-server.env
moctl version
moctl service status
moctl diagnose full
moctl service status
| Status | Meaning |
|---|---|
| Running | Service is active and healthy. |
| Registering | Active and Eureka-managed, still registering. Wait 30–60 s. |
| Stopped | Service is inactive. |
| Failed | Service crashed. Check logs immediately. |
In 5.0.0 eurekaserver and miniOrange run outside Eureka. They will show running, never registering.
| Command | What it does |
|---|---|
| moctl service start | Start all services in the correct order. |
| moctl service stop | Stop all services in reverse order. |
| moctl service restart | Restart all services. |
| moctl service start gatekeeper | Start a single named service. |
| moctl service restart miniorange | Restart a single named service. |
Core services start first : configserver → eurekaserver → gatekeeper → miniOrange. Secondary services follow automatically. Running moctl service or moctl diagnose without a subcommand prints suggestions.
| Command | What it does |
|---|---|
| moctl log miniorange | Start all services in the correct order. |
| moctl log miniorange -f Follow | Follow logs live (Ctrl+C to stop). |
| moctl log miniorange -n 500 | Show last 500 lines. |
| moctl log miniorange --since 1h | Show logs from the past hour. |
| moctl log gatekeeper --since 30min | Show logs for any named service. |
moctl diagnose full
| Command | What it does |
|---|---|
| moctl diagnose services | Service states only. |
| moctl diagnose ports | Core port availability. |
| moctl diagnose resources | Memory and disk usage. |
| moctl diagnose deps | Nginx, Java dependencies. |
| moctl diagnose | Show available subcommands and usage help. |
| Command | What it does |
|---|---|
| moctl system memory | Show memory usage |
| moctl system cpu | Show CPU usage |
| moctl system disk | Show disk usage |
| moctl jvm miniorange | JVM version, heap, flags, threads, file descriptors |
moctl diagnose full
moctl service status
moctl service status
moctl log miniorange --since 30min
moctl service restart gatekeeper
moctl service status
moctl diagnose services
Prefer a single-service restart over a full restart whenever possible.
For all your troubleshooting issues, here’s what you can do:
ls -l /usr/local/bin/moctl
echo $PATH
sudo bash install-moctl.sh
systemctl list-unit-files 'mo-idp-*.service'
cat /etc/mo-idp-server.env
ls -ld /opt/tomcat/latest
Correct the path in /etc/mo-idp-server.env and rerun the installer.
moctl diagnose services
moctl log gatekeeper --since 30min
curl -u registry_client:'Eureka2025_Client!' http://localhost:8070
Check: Eureka availability, credentials in /etc/mo-idp-server.env, and startup errors in logs.
Scheduler and miniOrange are not Eureka-managed in 5.0.0; they will never show registering. If you see registering on these services, it indicates a display or config issue.
test -f /etc/mo-idp-server.env && echo ok
test -L /opt/tomcat/latest && readlink -f /opt/tomcat/latest
Correct the failing value and rerun the installer. The runtime config at /etc/mo-idp-server.env is the
authoritative source.