cptactionhank / docker-atlassian-jira

Atlassian JIRA Core wrapped in a Docker image
https://cptactionhank.github.io/docker-atlassian-jira
MIT License
621 stars 248 forks source link

issue in rocky linux v9 Docker version 26.1.2 and Docker Compose version v2.27.0 #112

Closed johnfelipe closed 3 months ago

johnfelipe commented 3 months ago
[furrego@localhost ~]$ docker --version
Docker version 26.1.2, build 211e74b
[furrego@localhost ~]$ docker compose version
Docker Compose version v2.27.0
[furrego@localhost ~]$ docker run --detach --publish 8080:8080 cptactionhank/atlassian-jira:latest
Unable to find image 'cptactionhank/atlassian-jira:latest' locally
latest: Pulling from cptactionhank/atlassian-jira
e7c96db7181b: Pull complete
f910a506b6cb: Pull complete
c2274a1a0e27: Pull complete
8824c48ae150: Pull complete
4f4fb700ef54: Pull complete
5ce64e41d4c1: Pull complete
Digest: sha256:45162566b5091b78143d50741c54fe1e0a1860023211a27286465f37c6a28db7
Status: Downloaded newer image for cptactionhank/atlassian-jira:latest
7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa

then is this part:

[furrego@localhost ~]$ docker inspect 7b1e230b7d7d
[
    {
        "Id": "7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa",
        "Created": "2024-06-13T23:03:21.270678722Z",
        "Path": "/docker-entrypoint.sh",
        "Args": [
            "/opt/atlassian/jira/bin/start-jira.sh",
            "-fg"
        ],
        "State": {
            "Status": "exited",
            "Running": false,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 0,
            "ExitCode": 139,
            "Error": "",
            "StartedAt": "2024-06-13T23:03:22.643166741Z",
            "FinishedAt": "2024-06-13T23:03:23.545911075Z"
        },
        "Image": "sha256:f461d03dc924ff6aafe95c8cdaf708deda726dfd4bea7c8f24089637b77ef6df",
        "ResolvConfPath": "/var/lib/docker/containers/7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa/hostname",
        "HostsPath": "/var/lib/docker/containers/7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa/hosts",
        "LogPath": "/var/lib/docker/containers/7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa/7b1e230b7d7d3fe4c7bb8d9932ece81c7f0260a1473609c3503cc178843048aa-json.log",
        "Name": "/affectionate_mcclintock",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "bridge",
            "PortBindings": {
                "8080/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "8080"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "ConsoleSize": [
                24,
                80
            ],
            "CapAdd": null,
            "CapDrop": null,
            "CgroupnsMode": "private",
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": [],
            "BlkioDeviceWriteBps": [],
            "BlkioDeviceReadIOps": [],
            "BlkioDeviceWriteIOps": [],
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": null,
            "PidsLimit": null,
            "Ulimits": [],
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware",
                "/sys/devices/virtual/powercap"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/e812bde460efac96fae42b17445e826ac2b6eaaea910afeeeecf4b669e1fc499-init/diff:/var/lib/docker/overlay2/597c6272c00e60c6252ce06d633e7d25ed96ac50aea2e162de1e8d1c011debf8/diff:/var/lib/docker/overlay2/c13602217f00b533d3801431b4867f39ef58e505ed5e2400b051482a85f845d5/diff:/var/lib/docker/overlay2/e36de53df47260dcfd070fe066b0ddade59d17ad3c7f1212693bb37178590d0c/diff:/var/lib/docker/overlay2/f915d7c866a7e413ff2a0f3240f88beae1b9790cb5bfaa603a49aa219dbb3b1f/diff:/var/lib/docker/overlay2/8fb0a3feb3a308967d3dc3eb2a99a71603e7463ca5b0aa1bd5c5c8e2b4c4b200/diff:/var/lib/docker/overlay2/578f87e828131e948a3295ee86da6aa31c261acff997c0dce0bc9d23820bc69d/diff",
                "MergedDir": "/var/lib/docker/overlay2/e812bde460efac96fae42b17445e826ac2b6eaaea910afeeeecf4b669e1fc499/merged",
                "UpperDir": "/var/lib/docker/overlay2/e812bde460efac96fae42b17445e826ac2b6eaaea910afeeeecf4b669e1fc499/diff",
                "WorkDir": "/var/lib/docker/overlay2/e812bde460efac96fae42b17445e826ac2b6eaaea910afeeeecf4b669e1fc499/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [
            {
                "Type": "volume",
                "Name": "19cdefad9ae383a5306b7cd6ce8f927309c6091e418fe80a2f74aae7b04690bd",
                "Source": "/var/lib/docker/volumes/19cdefad9ae383a5306b7cd6ce8f927309c6091e418fe80a2f74aae7b04690bd/_data",
                "Destination": "/var/atlassian/jira",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            },
            {
                "Type": "volume",
                "Name": "3ba2ae7c83964970f813d111d34b7c7c17afa1daa09193a75bf4fea503467005",
                "Source": "/var/lib/docker/volumes/3ba2ae7c83964970f813d111d34b7c7c17afa1daa09193a75bf4fea503467005/_data",
                "Destination": "/opt/atlassian/jira/logs",
                "Driver": "local",
                "Mode": "",
                "RW": true,
                "Propagation": ""
            }
        ],
        "Config": {
            "Hostname": "7b1e230b7d7d",
            "Domainname": "",
            "User": "daemon:daemon",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "8080/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin",
                "LANG=C.UTF-8",
                "JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk",
                "JAVA_VERSION=8u212",
                "JAVA_ALPINE_VERSION=8.212.04-r0",
                "JIRA_HOME=/var/atlassian/jira",
                "JIRA_INSTALL=/opt/atlassian/jira",
                "JIRA_VERSION=8.18.1"
            ],
            "Cmd": [
                "/opt/atlassian/jira/bin/start-jira.sh",
                "-fg"
            ],
            "Image": "cptactionhank/atlassian-jira:latest",
            "Volumes": {
                "/opt/atlassian/jira/logs": {},
                "/var/atlassian/jira": {}
            },
            "WorkingDir": "/var/atlassian/jira",
            "Entrypoint": [
                "/docker-entrypoint.sh"
            ],
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "04592e4cf4ca611cc8ce63b5009914e6c0a5f5c6a0f682e6995001dca227f5d8",
            "SandboxKey": "/var/run/docker/netns/04592e4cf4ca",
            "Ports": {},
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "",
            "Gateway": "",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "",
            "IPPrefixLen": 0,
            "IPv6Gateway": "",
            "MacAddress": "",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "MacAddress": "",
                    "NetworkID": "1e0a6280acf55360cb1b73a0f70a5dd5f916e558750fcd2286f1e8ba01bbc914",
                    "EndpointID": "",
                    "Gateway": "",
                    "IPAddress": "",
                    "IPPrefixLen": 0,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "DriverOpts": null,
                    "DNSNames": null
                }
            }
        }
    }
]

and final this one:

[furrego@localhost ~]$ docker logs 7b1e230b7d7d
executing as current user

                  `sMMMMMMMMMMMMMM+
                     MMMMMMMMMMMMMM
                     :sdMMMMMMMMMMM
                             MMMMMM
          `sMMMMMMMMMMMMMM+  MMMMMM
             MMMMMMMMMMMMMM  +MMMMM
              :sMMMMMMMMMMM   MMMMM
                     MMMMMM    `UOJ
   `sMMMMMMMMMMMMM+  MMMMMM
     MMMMMMMMMMMMMM  +MMMMM
      :sdMMMMMMMMMM   MMMMM
             MMMMMM    `UOJ
             MMMMMM
             +MMMMM
              MMMMM
               `UOJ

      Atlassian Jira
      Version : 8.18.1

If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-0818/Troubleshooting+installation

Using JIRA_HOME:       /var/atlassian/jira

Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
library initialization failed - unable to allocate file descriptor table - out of memory
johnfelipe commented 3 months ago

solved:

sudo nano /etc/sysctl.conf

##
fs.file-max = 65536
##

sudo sysctl -p

fs.file-max = 65536

sudo nano /etc/security/limits.conf

##
*    soft    nofile    65536
*    hard    nofile    65536
##

sudo nano /etc/docker/daemon.json

##
{
  "default-ulimits": {
    "nofile": {
      "Name": "nofile",
      "Hard": 65536,
      "Soft": 65536
    }
  }
}

##

sudo systemctl daemon-reload

docker run --name jira-container --memory 4g --ulimit nofile=65536:65536 -p 8080:8080 -d cptactionhank/atlassian-jira:latest