问:
Creating multiple SecurityGroups / Rules in AWS using Terraform
I am trying to create multiple Security Groups and rules within this group at the same time in a module for AWS.

I have a variable type like this below

```<code>variable "security_rules" {

      type = map(map(object({
        type        = string
        description = string
        from_port   = number
        to_port     = number
        protocol    = string
        cidr_blocks = list(string)
      })))
    }
</code>```

And i am passing the values like this

```<code>security_rules = {
  internal_sg = {
    "rule1" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp", cidr_blocks = ["0.0.0.0/0"], description = "For SSH" },
    "rule2" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp", cidr_blocks = ["0.0.0.0/0"], description = "For SSH" }
  external_sg = {
    "rule1" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp"
  }
}
</code>```

Where internal_sg and external_sg would be security group name and there corresponding  rules.

I am able to create the security groups but failing to add rules on top of that.

```<code>locals {
  name = var.security_rules
}

resource "aws_security_group" "ec2_security_groups" {
  for_each = local.name
  name   = each.key
  vpc_id = data.aws_vpc.selected.id
}

</code>```

But i am just unable to make the logic for the security group rules

```<code>resource "aws_security_group_rule" "rules" {
  for_each          = { for k, v in local.name : k => v }
  type              = each.value.type
  from_port         = each.value.from_port
  to_port           = each.value.to_port
  protocol          = each.value.protocol
  cidr_blocks       = each.value.cidr_blocks
  description       = each.value.description
  security_group_id = aws_security_group.ec2_security_groups[each.key]
}
</code>```

Error:

```<code>╷
│ Error: Missing map element
│
│   on ../../terraform-stacks/Stacks/security-group/main.tf line 19, in resource "aws_security_group_rule" "rules":
│   19:   type              = each.value.type
│     ├────────────────
│     │ each.value is map of object with 3 elements
│
│ This map does not have an element with the key "type".
╵
</code>```

答:
You have to flatten your variable first:

```<code>
locals {
  flat_security_rules = merge([
      for sg, rules in var.security_rules:
         {
           for rule, vals in rules:
             "${sg}-${rule}" => merge(vals, {sg_name = sg})
         }
    ]...) # please, do NOT remove the dots
}
</code>```

then

```<code>resource "aws_security_group_rule" "rules" {
  for_each          = local.flat_security_rules
  type              = each.value.type
  from_port         = each.value.from_port
  to_port           = each.value.to_port
  protocol          = each.value.protocol
  cidr_blocks       = each.value.cidr_blocks
  description       = each.value.description
  security_group_id = aws_security_group.ec2_security_groups[each.value.sg_name].id
}
</code>```

Body:
I am trying to create multiple Security Groups and rules within this group at the same time in a module for AWS.

I have a variable type like this below

variable "security_rules" {

      type = map(map(object({
        type        = string
        description = string
        from_port   = number
        to_port     = number
        protocol    = string
        cidr_blocks = list(string)
      })))
    }

And i am passing the values like this

security_rules = {
  internal_sg = {
    "rule1" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp", cidr_blocks = ["0.0.0.0/0"], description = "For SSH" },
    "rule2" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp", cidr_blocks = ["0.0.0.0/0"], description = "For SSH" }
  external_sg = {
    "rule1" = { type = "ingress", from_port = 22, to_port = 22, protocol = "tcp"
  }
}

Where internal_sg and external_sg would be security group name and there corresponding  rules.

I am able to create the security groups but failing to add rules on top of that.

locals {
  name = var.security_rules
}

resource "aws_security_group" "ec2_security_groups" {
  for_each = local.name
  name   = each.key
  vpc_id = data.aws_vpc.selected.id
}

But i am just unable to make the logic for the security group rules

resource "aws_security_group_rule" "rules" {
  for_each          = { for k, v in local.name : k => v }
  type              = each.value.type
  from_port         = each.value.from_port
  to_port           = each.value.to_port
  protocol          = each.value.protocol
  cidr_blocks       = each.value.cidr_blocks
  description       = each.value.description
  security_group_id = aws_security_group.ec2_security_groups[each.key]
}

Error:

╷
│ Error: Missing map element
│
│   on ../../terraform-stacks/Stacks/security-group/main.tf line 19, in resource "aws_security_group_rule" "rules":
│   19:   type              = each.value.type
│     ├────────────────
│     │ each.value is map of object with 3 elements
│
│ This map does not have an element with the key "type".
╵

Body:
You have to flatten your variable first:

locals {
  flat_security_rules = merge([
      for sg, rules in var.security_rules:
         {
           for rule, vals in rules:
             "${sg}-${rule}" => merge(vals, {sg_name = sg})
         }
    ]...) # please, do NOT remove the dots
}

then

resource "aws_security_group_rule" "rules" {
  for_each          = local.flat_security_rules
  type              = each.value.type
  from_port         = each.value.from_port
  to_port           = each.value.to_port
  protocol          = each.value.protocol
  cidr_blocks       = each.value.cidr_blocks
  description       = each.value.description
  security_group_id = aws_security_group.ec2_security_groups[each.value.sg_name].id
}


来源: stackexchange

问:
Angular - window.screen.height doesn't work on template
I have a problem when I want to optimize part of my template for mobiles in horizontal mode.

TS:

```<code>window = window;
</code>```

Template:

```<code><div [ngStyle]="{'height': window.innerHeight < window.innerWidth ?
 window.screen.height : (widget == 'playlist' ? '334px' : '275px')}">
</div>
</code>```

I'm getting nothing from window.screen.height but when I log it, it's returning good values. I was trying to use it like value but the result was the same.

答:
I think you are not telling your style height what size unit it should get. Pixels px, Percentage %, etc. I added the pixel unit as an example this:

 <div [ngStyle]="{'height': window.innerHeight < window.innerWidth ?
    window.screen.height + 'px' : (widget == 'playlist' ? '334px' : '275px')}">

```

ContentLicense: CC BY-SA 4.0

Body:
I have a problem when I want to optimize part of my template for mobiles in horizontal mode.

TS:

window = window;

Template:

<div [ngStyle]="{'height': window.innerHeight < window.innerWidth ?
 window.screen.height : (widget == 'playlist' ? '334px' : '275px')}">

I'm getting nothing from window.screen.height but when I log it, it's returning good values. I was trying to use it like value but the result was the same.

Body:
I think you are not telling your style height what size unit it should get. Pixels px, Percentage %, etc. I added the pixel unit as an example this:

 <div [ngStyle]="{'height': window.innerHeight < window.innerWidth ?
    window.screen.height + 'px' : (widget == 'playlist' ? '334px' : '275px')}">
 </div>


问:
Where do I find the project ID for the GitLab API?
I use GitLab on their servers. I would like to download my latest built artifacts (build via GitLab CI) via the API like this:

```<code>curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/builds/8/artifacts"
</code>```

Where do I find this project ID? Or is this way of using the API not intended for hosted GitLab projects?

答: You can view it under the repository name

Body:
I use GitLab on their servers. I would like to download my latest built artifacts (build via GitLab CI) via the API like this:

curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.com/api/v3/projects/1/builds/8/artifacts"

Where do I find this project ID? Or is this way of using the API not intended for hosted GitLab projects?


问:
Ortools VRP error when trying to merge penalties and different start-end depots
I'm trying to solve a VRP problem allowing dropping nodes through penalties and multiple depots.

Code works fine with penalties and vehicles starting and ending at the same depots:

```<code>    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 4]
</code>```

Code works fine with vehicles starting and ending at different depots, commenting the for loop to AddDisjunction for penalties (without allowing dropping nodes):

```<code>    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 9]
    .........................
    #for node in range(1, len(data['penalties'])):
    #     routing.AddDisjunction([manager.NodeToIndex(node)], data['penalties'][node])
</code>```

But with vehicles starting and ending at different depots and trying to add penalties to allow dropping nodes, python crashes with the error (debugging I can see that fails at adding the penalty of the different end depot):

F00-1 -1:-1:-1.000244 24944 routing.cc:1622] Check failed: kUnassigned != indices[i] (-1 vs. -1)

I cannot find any reference about this error. I looked at routing.cc source code around line 1622, but I cannot see any relation with the error. I need help to fix the problem.

Here is the souce code:

```<code>from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp

def create_data_model():
    """Stores the data for the problem."""
    data = {}
    data['distance_matrix'] = [
        [0, 2253, 2479, 2792, 4707, 6128, 1567, 5643, 1234, 3345, 1827],
        [1731, 0, 2193, 2507, 3624, 5040, 3467, 2921, 5791, 1546, 2345],
        [1867, 2112, 0, 676, 4406, 5824, 988, 4567, 2134, 4453, 2123],
        [2339, 2585, 893, 0, 4879, 6302, 1543, 1298, 6890, 1456, 5623],
        [4464, 3766, 5935, 4957, 0, 1749, 987, 3212, 3451, 5212, 3321],
        [6568, 5862, 8023, 7055, 2148, 0, 4567, 2124, 4321, 3212, 1234],
        [731, 2193, 2507, 7624, 4040, 4467, 0, 2621, 3791, 1567, 1345],
        [1731, 3193, 1507, 3624, 6040, 2467, 4921, 0, 5791, 6723, 1345],
        [2731, 3193, 2507, 6204, 5040, 1467, 2210, 6791, 0, 2567, 6421],
        [3345, 1543, 4421, 1531, 5213, 3215, 1512, 6213, 2431, 0, 5673],
        [1832, 2421, 2144, 5232, 3214, 1234, 1432, 1231, 6321, 5461, 0],
        ]
    data['node_time'] = [0, 7200, 3600, 5400, 0, 5400, 7200, 3600, 7200, 0, 300]
    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 9]
    # Penalizaciones por no visitar nodos (drop nodes) en caso de que no tenga solución:
    # MAXINT 0x7FFFFFFFFFFFFFF: Hace obligatoria la visita al nodo, no se puede eliminar de la solución
    # 1000000: Se puede no visitar el nodo con penalización. La penalización debe ser grande, mayor que 10x veces el mayor tiempo de visita, para evitar que salga mas rentable dejar caer el nodo que pagar la penalización
    # 0: En los nodos "depósito" de vehículos, no son visitas intermedias sino inicio y fin de la ruta.
    data['penalties'] = [0, 1000000, 1000000, 1000000, 0, 0x7FFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFF, 1000000, 1000000, 0, 1000000]
    return data

def print_solution(data, manager, routing, solution):
    """Prints solution on console."""
    print(f'Objective: {solution.ObjectiveValue()}')

    # Display dropped nodes.
    dropped_nodes = 'Nodos sin visitar:'
    for node in range(routing.Size()):
        if routing.IsStart(node) or routing.IsEnd(node):
            continue
        if solution.Value(routing.NextVar(node)) == node:
            dropped_nodes += ' {}'.format(manager.IndexToNode(node))
    print(dropped_nodes + '\n')

    max_route_distance = 0
    for vehicle_id in range(data['num_vehicles']):
        index = routing.Start(vehicle_id)
        plan_output = 'Ruta para vehículo {}:\n'.format(vehicle_id)
        route_distance = 0
        while not routing.IsEnd(index):
            plan_output += ' {} -> '.format(manager.IndexToNode(index))
            previous_index = index
            index = solution.Value(routing.NextVar(index))
            route_distance += routing.GetArcCostForVehicle(
                previous_index, index, vehicle_id)
        plan_output += '{}\n'.format(manager.IndexToNode(index))
        plan_output += 'Tiempo de la ruta: {}sg\n'.format(route_distance)
        print(plan_output)
        max_route_distance = max(route_distance, max_route_distance)
    print('Maximo tiempo de las rutas: {}sg'.format(max_route_distance))

def main():
    """Entry point of the program."""
    # Instantiate the data problem.
    data = create_data_model()

    # Create the routing index manager.
    manager = pywrapcp.RoutingIndexManager(len(data['distance_matrix']),
                                           data['num_vehicles'], data['start'], data['end'])

    # Create Routing Model.
    routing = pywrapcp.RoutingModel(manager)

    # Create and register a transit callback.
    def distance_callback(from_index, to_index):
        """Returns the distance between the two nodes."""
        # Convert from routing variable Index to distance matrix NodeIndex.
        from_node = manager.IndexToNode(from_index)
        to_node = manager.IndexToNode(to_index)
        tiempo_desplazamiento = data['distance_matrix'][from_node][to_node]
        tiempo_ejecucion = data['node_time'][to_node]
        return tiempo_desplazamiento + tiempo_ejecucion

    transit_callback_index = routing.RegisterTransitCallback(distance_callback)

    # Define cost of each arc.
    routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)

    # Add Distance constraint.
    routing.AddDimension(
        transit_callback_index,
        0,  # no slack
        27000,  # vehicle maximum travel distance (7.5 hours, in seconds)
        True,  # start cumul to zero
        'Time')
    distance_dimension = routing.GetDimensionOrDie('Time')
    distance_dimension.SetGlobalSpanCostCoefficient(100)

    # Allow to drop nodes.
    for node in range(1, len(data['penalties'])):
        routing.AddDisjunction([manager.NodeToIndex(node)], data['penalties'][node])

    # Setting first solution heuristic.
    search_parameters = pywrapcp.DefaultRoutingSearchParameters()
    search_parameters.first_solution_strategy = (routing_enums_pb2.FirstSolutionStrategy.PATH_CHEAPEST_ARC)
    search_parameters.local_search_metaheuristic = (routing_enums_pb2.LocalSearchMetaheuristic.GUIDED_LOCAL_SEARCH)
    search_parameters.time_limit.seconds = 30

    # Solve the problem.
    solution = routing.SolveWithParameters(search_parameters)

    # Print solution on console.
    if solution:
        print_solution(data, manager, routing, solution)
    else:
        print('No solution found!')

if __name__ == '__main__':
    main()
</code>```

I've posted the question in Ortools Google Group, with additional research:
[https://groups.google.com/g/or-tools-discuss/c/s3PfgLVZpj0][1]

Code seems to be working excluding start and end nodes from the disjunction as explained on that post, but I asked for more info to understand how it works.

答: With custom start and ends, you should use Routing.Start(vehicle_index) and Routing.End(vehicle_index) to get the index of these nodes.

Body:
I'm trying to solve a VRP problem allowing dropping nodes through penalties and multiple depots.

Code works fine with penalties and vehicles starting and ending at the same depots:

    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 4]

Code works fine with vehicles starting and ending at different depots, commenting the for loop to AddDisjunction for penalties (without allowing dropping nodes):

    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 9]
    .........................
    #for node in range(1, len(data['penalties'])):
    #     routing.AddDisjunction([manager.NodeToIndex(node)], data['penalties'][node])

But with vehicles starting and ending at different depots and trying to add penalties to allow dropping nodes, python crashes with the error (debugging I can see that fails at adding the penalty of the different end depot):

F00-1 -1:-1:-1.000244 24944 routing.cc:1622] Check failed: kUnassigned != indices[i] (-1 vs. -1)

I cannot find any reference about this error. I looked at routing.cc source code around line 1622, but I cannot see any relation with the error. I need help to fix the problem.

Here is the souce code:

from ortools.constraint_solver import routing_enums_pb2
from ortools.constraint_solver import pywrapcp

def create_data_model():
    """Stores the data for the problem."""
    data = {}
    data['distance_matrix'] = [
        [0, 2253, 2479, 2792, 4707, 6128, 1567, 5643, 1234, 3345, 1827],
        [1731, 0, 2193, 2507, 3624, 5040, 3467, 2921, 5791, 1546, 2345],
        [1867, 2112, 0, 676, 4406, 5824, 988, 4567, 2134, 4453, 2123],
        [2339, 2585, 893, 0, 4879, 6302, 1543, 1298, 6890, 1456, 5623],
        [4464, 3766, 5935, 4957, 0, 1749, 987, 3212, 3451, 5212, 3321],
        [6568, 5862, 8023, 7055, 2148, 0, 4567, 2124, 4321, 3212, 1234],
        [731, 2193, 2507, 7624, 4040, 4467, 0, 2621, 3791, 1567, 1345],
        [1731, 3193, 1507, 3624, 6040, 2467, 4921, 0, 5791, 6723, 1345],
        [2731, 3193, 2507, 6204, 5040, 1467, 2210, 6791, 0, 2567, 6421],
        [3345, 1543, 4421, 1531, 5213, 3215, 1512, 6213, 2431, 0, 5673],
        [1832, 2421, 2144, 5232, 3214, 1234, 1432, 1231, 6321, 5461, 0],
        ]
    data['node_time'] = [0, 7200, 3600, 5400, 0, 5400, 7200, 3600, 7200, 0, 300]
    data['num_vehicles'] = 2
    data['start'] = [0, 4]
    data['end'] = [0, 9]
    # Penalizaciones por no visitar nodos (drop nodes) en caso de que no tenga solución:
    # MAXINT 0x7FFFFFFFFFFFFFF: Hace obligatoria la visita al nodo, no se puede eliminar de la solución
    # 1000000: Se puede no visitar el nodo con penalización. La penalización debe ser grande, mayor que 10x veces el mayor tiempo de visita, para evitar que salga mas rentable dejar caer el nodo que pagar la penalización
    # 0: En los nodos "depósito" de vehículos, no son visitas intermedias sino inicio y fin de la ruta.
    data['penalties'] = [0, 1000000, 1000000, 1000000, 0, 0x7FFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFF, 1000000, 1000000, 0, 1000000]
    return data

def print_solution(data, manager, routing, solution):
    """Prints solution on console."""
    print(f'Objective: {solution.ObjectiveValue()}')

    # Display dropped nodes.
    dropped_nodes = 'Nodos sin visitar:'
    for node in range(routing.Size()):
        if routing.IsStart(node) or routing.IsEnd(node):
            continue
        if solution.Value(routing.NextVar(node)) == node:
            dropped_nodes += ' {}'.format(manager.IndexToNode(node))
    print(dropped_nodes + '\n')

    max_route_distance = 0
    for vehicle_id in range(data['num_vehicles']):
        index = routing.Start(vehicle_id)
        plan_output = 'Ruta para vehículo {}:\n'.format(vehicle_id)
        route_distance = 0
        while not routing.IsEnd(index):
            plan_output += ' {} -> '.format(manager.IndexToNode(index))
            previous_index = index
            index = solution.Value(routing.NextVar(index))
            route_distance += routing.GetArcCostForVehicle(
                previous_index, index, vehicle_id)
        plan_output += '{}\n'.format(manager.IndexToNode(index))
        plan_output += 'Tiempo de la ruta: {}sg\n'.format(route_distance)
        print(plan_output)
        max_route_distance = max(route_distance, max_route_distance)
    print('Maximo tiempo de las rutas: {}sg'.format(max_route_distance))

def main():
    """Entry point of the program."""
    # Instantiate the data problem.
    data = create_data_model()

    # Create the routing index manager.
    manager = pywrapcp.RoutingIndexManager(len(data['distance_matrix']),
                                           data['num_vehicles'], data['start'], data['end'])

    # Create Routing Model.
    routing = pywrapcp.RoutingModel(manager)

    # Create and register a transit callback.
    def distance_callback(from_index, to_index):
        """Returns the distance between the two nodes."""
        # Convert from routing variable Index to distance matrix NodeIndex.
        from_node = manager.IndexToNode(from_index)
        to_node = manager.IndexToNode(to_index)
        tiempo_desplazamiento = data['distance_matrix'][from_node][to_node]
        tiempo_ejecucion = data['node_time'][to_node]
        return tiempo_desplazamiento + tiempo_ejecucion

    transit_callback_index = routing.RegisterTransitCallback(distance_callback)

    # Define cost of each arc.
    routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)

    # Add Distance constraint.
    routing.AddDimension(
        transit_callback_index,
        0,  # no slack
        27000,  # vehicle maximum travel distance (7.5 hours, in seconds)
        True,  # start cumul to zero
        'Time')
    distance_dimension = routing.GetDimensionOrDie('Time')
    distance_dimension.SetGlobalSpanCostCoefficient(100)

    # Allow to drop nodes.
    for node in range(1, len(data['penalties'])):
        routing.AddDisjunction([manager.NodeToIndex(node)], data['penalties'][node])

    # Setting first solution heuristic.
    search_parameters = pywrapcp.DefaultRoutingSearchParameters()
    search_parameters.first_solution_strategy = (routing_enums_pb2.FirstSolutionStrategy.PATH_CHEAPEST_ARC)
    search_parameters.local_search_metaheuristic = (routing_enums_pb2.LocalSearchMetaheuristic.GUIDED_LOCAL_SEARCH)
    search_parameters.time_limit.seconds = 30

    # Solve the problem.
    solution = routing.SolveWithParameters(search_parameters)

    # Print solution on console.
    if solution:
        print_solution(data, manager, routing, solution)
    else:
        print('No solution found!')

if __name__ == '__main__':
    main()

I've posted the question in Ortools Google Group, with additional research:
[https://groups.google.com/g/or-tools-discuss/c/s3PfgLVZpj0][1]

Code seems to be working excluding start and end nodes from the disjunction as explained on that post, but I asked for more info to understand how it works.


问:
Flutter slidable package covers my item shadow
I'm trying to create a list of items with shadow, I also used from flutter_slidable and now this slidable covers my item shadow!!

As you can see in

first item is inside a slidable widget and the second item is a normal item!

action pane screenshot

this is item with slidable:

Slidable(
  startActionPane: ActionPane(
    extentRatio: .40,
    motion: const ScrollMotion(),
    children: <Widget>[
      InkWell(
        borderRadius: BorderRadius.circular(20),
        onTap: () {},
        child: Container(
          width: 70,
          decoration: BoxDecoration(
            color: Theme.of(context).colorScheme.background,
            borderRadius: BorderRadius.circular(20),
            boxShadow: [
              BoxShadow(
                color: Theme.of(context).shadowColor,
                blurRadius: 15,
                spreadRadius: 0,
                offset: const Offset(0, 10),
              ),
            ],
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Icon(
                Icons.edit,
                size: 20,
                color: Theme.of(context).colorScheme.onSurface,
              ),

              Text(
                'Delete',
                style: Theme.of(context).textTheme.subtitle1,
              ),
            ],
          ),
        ),
      ),

      const SizedBox(width: 6),

      InkWell(
        borderRadius: BorderRadius.circular(20),
        onTap: () {},
        child: Container(
          width: 70,
          decoration: BoxDecoration(
            color: Theme.of(context).colorScheme.background,
            borderRadius: BorderRadius.circular(20),
            boxShadow: [
              BoxShadow(
                color: Theme.of(context).shadowColor,
                blurRadius: 15,
                spreadRadius: 0,
                offset: const Offset(0, 10),
              ),
            ],
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Icon(
                Icons.delete,
                size: 20,
                color: Theme.of(context).colorScheme.onSurface,
              ),

              Text(
                'Edit',
                style: Theme.of(context).textTheme.subtitle1,
              ),
            ],
          ),
        ),
      ),
    ],
  ),
  child: InkWell(
    borderRadius: BorderRadius.circular(20),
    onTap: () {},
    child: Container(
      padding: const EdgeInsets.all(4),
      width: MediaQuery.of(context).size.width,
      decoration: BoxDecoration(
        color: Theme.of(context).colorScheme.background,
        borderRadius: BorderRadius.circular(20),
        boxShadow: [
          BoxShadow(
            color: Theme.of(context).shadowColor,
            blurRadius: 15,
            spreadRadius: 0,
            offset: const Offset(0, 10),
          ),
        ],
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.start,
        children: <Widget>[
          Expanded(
              child: Row(
                children: [
                  Container(
                    padding: const EdgeInsets.all(4),
                    decoration: BoxDecoration(
                        border: Border.all(color: Theme.of(context).colorScheme.onSurface),
                        color: Theme.of(context).colorScheme.background,
                        borderRadius: BorderRadius.circular(16)
                    ),
                    child: ClipRRect(
                      borderRadius: BorderRadius.circular(20),
                      child: Image.asset(
                        'assets/images/avatar/3.png',
                        width: 50,
                        height: 50,
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),

                  Padding(
                    padding: const EdgeInsets.symmetric(horizontal: 16),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Text(
                          'Abc Def',
                          style: Theme.of(context).textTheme.headline6,
                        ),
                      ],
                    ),
                  ),
                ],
              )
          ),

          Row(
            children: [
              Text(
                'a',
                style: TextStyle(
                  fontFamily: 'faMed',
                  fontSize: 12,
                  fontWeight: FontWeight.w600,
                  color: Theme.of(context).colorScheme.secondary,
                ),
              ),

              Icon(
                Icons.arrow_drop_down,
                color: Theme.of(context).colorScheme.secondary,
                size: 30,
              ),
            ],
          ),
        ],
      ),
    ),
  ),
),
```
<p>and this is a normal item:</p>
<pre class="lang-dart prettyprint-override"><code>InkWell(
  borderRadius: BorderRadius.circular(20),
  onTap: () {},
  child: Container(
    padding: const EdgeInsets.all(4),
    width: MediaQuery.of(context).size.width,
    decoration: BoxDecoration(
      color: Theme.of(context).colorScheme.background,
      borderRadius: BorderRadius.circular(20),
      boxShadow: [
        BoxShadow(
          color: Theme.of(context).shadowColor,
          blurRadius: 15,
          spreadRadius: 0,
          offset: const Offset(0, 10),
        ),
      ],
    ),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.start,
      children: <Widget>[
        Expanded(
            child: Row(
              children: [
                Container(
                  padding: const EdgeInsets.all(4),
                  decoration: BoxDecoration(
                      border: Border.all(color: Theme.of(context).colorScheme.onSurface),
                      color: Theme.of(context).colorScheme.background,
                      borderRadius: BorderRadius.circular(16)
                  ),
                  child: ClipRRect(
                    borderRadius: BorderRadius.circular(20),
                    child: Image.asset(
                      'assets/images/avatar/3.png',
                      width: 50,
                      height: 50,
                      fit: BoxFit.cover,
                    ),
                  ),
                ),

                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 16),
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.start,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: [
                      Text(
                        'Abc Def',
                        style: Theme.of(context).textTheme.headline6,
                      ),
                    ],
                  ),
                ),
              ],
            )
        ),

        Row(
          children: [
            Text(
              'a',
              style: TextStyle(
                fontFamily: 'faMed',
                fontSize: 12,
                fontWeight: FontWeight.w600,
                color: Theme.of(context).colorScheme.secondary,
              ),
            ),

            Icon(
              Icons.arrow_drop_down,
              color: Theme.of(context).colorScheme.secondary,
              size: 30,
            ),
          ],
        ),
      ],
    ),
  ),
),
</code>```

I tried to use a dismissible widget instead of slidable but that's not what I want!

答:
A quick solution is using ClipRRect as Slidable's child.  ActionPane is not getting enough space for its children, extend extentRatio:'s value. You can also remove this, it will paint the UI based on its need.

Slidable(
  startActionPane: ActionPane(
    extentRatio: .50,
    //...
  ),
  child: ClipRRect(
    borderRadius: BorderRadius.circular(20),
    child: InkWell(
```

Body:
I'm trying to create a list of items with shadow, I also used from flutter_slidable and now this slidable covers my item shadow!!

As you can see in

first item is inside a slidable widget and the second item is a normal item!

action pane screenshot

this is item with slidable:

Slidable(
  startActionPane: ActionPane(
    extentRatio: .40,
    motion: const ScrollMotion(),
    children: <Widget>[
      InkWell(
        borderRadius: BorderRadius.circular(20),
        onTap: () {},
        child: Container(
          width: 70,
          decoration: BoxDecoration(
            color: Theme.of(context).colorScheme.background,
            borderRadius: BorderRadius.circular(20),
            boxShadow: [
              BoxShadow(
                color: Theme.of(context).shadowColor,
                blurRadius: 15,
                spreadRadius: 0,
                offset: const Offset(0, 10),
              ),
            ],
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Icon(
                Icons.edit,
                size: 20,
                color: Theme.of(context).colorScheme.onSurface,
              ),

              Text(
                'Delete',
                style: Theme.of(context).textTheme.subtitle1,
              ),
            ],
          ),
        ),
      ),

      const SizedBox(width: 6),

      InkWell(
        borderRadius: BorderRadius.circular(20),
        onTap: () {},
        child: Container(
          width: 70,
          decoration: BoxDecoration(
            color: Theme.of(context).colorScheme.background,
            borderRadius: BorderRadius.circular(20),
            boxShadow: [
              BoxShadow(
                color: Theme.of(context).shadowColor,
                blurRadius: 15,
                spreadRadius: 0,
                offset: const Offset(0, 10),
              ),
            ],
          ),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Icon(
                Icons.delete,
                size: 20,
                color: Theme.of(context).colorScheme.onSurface,
              ),

              Text(
                'Edit',
                style: Theme.of(context).textTheme.subtitle1,
              ),
            ],
          ),
        ),
      ),
    ],
  ),
  child: InkWell(
    borderRadius: BorderRadius.circular(20),
    onTap: () {},
    child: Container(
      padding: const EdgeInsets.all(4),
      width: MediaQuery.of(context).size.width,
      decoration: BoxDecoration(
        color: Theme.of(context).colorScheme.background,
        borderRadius: BorderRadius.circular(20),
        boxShadow: [
          BoxShadow(
            color: Theme.of(context).shadowColor,
            blurRadius: 15,
            spreadRadius: 0,
            offset: const Offset(0, 10),
          ),
        ],
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.start,
        children: <Widget>[
          Expanded(
              child: Row(
                children: [
                  Container(
                    padding: const EdgeInsets.all(4),
                    decoration: BoxDecoration(
                        border: Border.all(color: Theme.of(context).colorScheme.onSurface),
                        color: Theme.of(context).colorScheme.background,
                        borderRadius: BorderRadius.circular(16)
                    ),
                    child: ClipRRect(
                      borderRadius: BorderRadius.circular(20),
                      child: Image.asset(
                        'assets/images/avatar/3.png',
                        width: 50,
                        height: 50,
                        fit: BoxFit.cover,
                      ),
                    ),
                  ),

                  Padding(
                    padding: const EdgeInsets.symmetric(horizontal: 16),
                    child: Column(
                      mainAxisAlignment: MainAxisAlignment.start,
                      crossAxisAlignment: CrossAxisAlignment.center,
                      children: [
                        Text(
                          'Abc Def',
                          style: Theme.of(context).textTheme.headline6,
                        ),
                      ],
                    ),
                  ),
                ],
              )
          ),

          Row(
            children: [
              Text(
                'a',
                style: TextStyle(
                  fontFamily: 'faMed',
                  fontSize: 12,
                  fontWeight: FontWeight.w600,
                  color: Theme.of(context).colorScheme.secondary,
                ),
              ),

              Icon(
                Icons.arrow_drop_down,
                color: Theme.of(context).colorScheme.secondary,
                size: 30,
              ),
            ],
          ),
        ],
      ),
    ),
  ),
),

and this is a normal item:

InkWell(
  borderRadius: BorderRadius.circular(20),
  onTap: () {},
  child: Container(
    padding: const EdgeInsets.all(4),
    width: MediaQuery.of(context).size.width,
    decoration: BoxDecoration(
      color: Theme.of(context).colorScheme.background,
      borderRadius: BorderRadius.circular(20),
      boxShadow: [
        BoxShadow(
          color: Theme.of(context).shadowColor,
          blurRadius: 15,
          spreadRadius: 0,
          offset: const Offset(0, 10),
        ),
      ],
    ),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.start,
      children: <Widget>[
        Expanded(
            child: Row(
              children: [
                Container(
                  padding: const EdgeInsets.all(4),
                  decoration: BoxDecoration(
                      border: Border.all(color: Theme.of(context).colorScheme.onSurface),
                      color: Theme.of(context).colorScheme.background,
                      borderRadius: BorderRadius.circular(16)
                  ),
                  child: ClipRRect(
                    borderRadius: BorderRadius.circular(20),
                    child: Image.asset(
                      'assets/images/avatar/3.png',
                      width: 50,
                      height: 50,
                      fit: BoxFit.cover,
                    ),
                  ),
                ),

                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 16),
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.start,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: [
                      Text(
                        'Abc Def',
                        style: Theme.of(context).textTheme.headline6,
                      ),
                    ],
                  ),
                ),
              ],
            )
        ),

        Row(
          children: [
            Text(
              'a',
              style: TextStyle(
                fontFamily: 'faMed',
                fontSize: 12,
                fontWeight: FontWeight.w600,
                color: Theme.of(context).colorScheme.secondary,
              ),
            ),

            Icon(
              Icons.arrow_drop_down,
              color: Theme.of(context).colorScheme.secondary,
              size: 30,
            ),
          ],
        ),
      ],
    ),
  ),
),

I tried to use a dismissible widget instead of slidable but that's not what I want!


问:
How to get domain name by IP Address and port in native NodeJS?
Which method is closest to desiredMethod in below code?

const dns = require("dns");

const IP_ADDRESS = "XX.XX.XXX.XXX"; // Any valid IP address
const PORT = 8080;

dns.deiredMethod(`${IP_ADDRESS}:${PORT}`, (error, domain) => {
   console.log(domain); // example output: "example.com"
})
```

答:
Not quite sure if I understand correct what you try to achieve. But the native dns module of an Node.js installation allows to resolve hostnames by IP address and port using dns.lookupService(address, port, callback). Please see Node.js DNS for details.

```<code>const dns = require("dns");

dns.lookupService('172.217.18.110', 22, (err, hostname, service) => {
    console.log(hostname, service);
});
</code>```

Body:
Not quite sure if I understand correct what you try to achieve. But the native dns module of an Node.js installation allows to resolve hostnames by IP address and port using dns.lookupService(address, port, callback). Please see Node.js DNS for details.

const dns = require("dns");

dns.lookupService('172.217.18.110', 22, (err, hostname, service) => {
    console.log(hostname, service);
});


问:
bitnami Keycloak docker is not starting- "Failed to delete PingData in database"
My docker compose has the following 2 services and keycloak used to startup just fine until today:

```<code>postgresql:
  image: 'docker.io/bitnami/postgresql:11'
  environment:
    - ALLOW_EMPTY_PASSWORD=yes
    - POSTGRESQL_USERNAME=bn_keycloak
    - POSTGRESQL_DATABASE=bitnami_keycloak
    - KEYCLOAK_ENABLE_STATISTICS=true
  volumes:
    - 'postgresql_data:/bitnami/postgresql'

keycloak-1:
  image: docker.io/bitnami/keycloak:latest
  ports:
    - '80:8080'
    - '8443:8443'
  environment:
    - KEYCLOAK_CREATE_ADMIN_USER=true
    - KEYCLOAK_JGROUPS_DISCOVERY_PROTOCOL=JDBC_PING
    - 'KEYCLOAK_JGROUPS_DISCOVERY_PROPERTIES=datasource_jndi_name=>java:jboss/datasources/KeycloakDS, initialize_sql=>"CREATE TABLE IF NOT EXISTS JGROUPSPING ( own_addr varchar(200) NOT NULL, cluster_name varchar(200) NOT NULL, created timestamp default current_timestamp, ping_data BYTEA, constraint PK_JGROUPSPING PRIMARY KEY (own_addr, cluster_name))"'
  depends_on:
    - postgresql
</code>```

When I start the container, all of a sudden today, I get lots of ServerService Thread Pool errors:

```<code>WARNING: Native build is an experimental feature and could change at any time
base_postgresql_1 is up-to-date
Recreating base_keycloak-1_1 ... done
Attaching to base_keycloak-1_1
keycloak-1_1       | keycloak 22:33:45.49
keycloak-1_1       | keycloak 22:33:45.49 Welcome to the Bitnami keycloak container
keycloak-1_1       | keycloak 22:33:45.49 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-keycloak
keycloak-1_1       | keycloak 22:33:45.49 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-keycloak/issues
keycloak-1_1       | keycloak 22:33:45.49
keycloak-1_1       | keycloak 22:33:45.49 INFO  ==> ** Starting keycloak setup **
keycloak-1_1       | keycloak 22:33:45.50 INFO  ==> Validating settings in KEYCLOAK_* env vars...
keycloak-1_1       | keycloak 22:33:45.50 INFO  ==> Trying to connect to PostgreSQL server postgresql...
keycloak-1_1       | keycloak 22:33:45.51 INFO  ==> Found PostgreSQL server listening at postgresql:5432
keycloak-1_1       | keycloak 22:33:45.51 INFO  ==> Configuring database settings
keycloak-1_1       | keycloak 22:33:49.30 INFO  ==> Configuring jgroups settings
keycloak-1_1       | keycloak 22:33:51.97 INFO  ==> Configuring cache count
keycloak-1_1       | keycloak 22:33:54.57 INFO  ==> Configuring authentication cache count
keycloak-1_1       | keycloak 22:33:57.83 INFO  ==> Configuring log level
keycloak-1_1       | keycloak 22:34:00.41 INFO  ==> Configuring proxy address forwarding
keycloak-1_1       | keycloak 22:34:03.36 INFO  ==> Configuring node identifier
keycloak-1_1       |
keycloak-1_1       | keycloak 22:34:06.34 INFO  ==> ** keycloak setup finished! **
keycloak-1_1       | keycloak 22:34:06.35 INFO  ==> ** Starting keycloak **
keycloak-1_1       | =========================================================================
keycloak-1_1       |
keycloak-1_1       |   JBoss Bootstrap Environment
keycloak-1_1       |
keycloak-1_1       |   JBOSS_HOME: /opt/bitnami/keycloak
keycloak-1_1       |
keycloak-1_1       |   JAVA: /opt/bitnami/java/bin/java
keycloak-1_1       |
keycloak-1_1       |   JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman     -Djava.awt.headless=true  --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED
keycloak-1_1       |
keycloak-1_1       | =========================================================================
keycloak-1_1       |
keycloak-1_1       | 22:34:07,041 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
keycloak-1_1       | 22:34:07,407 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
keycloak-1_1       | 22:34:07,415 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
keycloak-1_1       | 22:34:07,521 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 15.0.2 (WildFly Core 15.0.1.Final) starting
keycloak-1_1       | 22:34:08,114 INFO  [org.wildfly.security] (ServerService Thread Pool -- 22) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak-1_1       | 22:34:08,383 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future     versions
keycloak-1_1       | 22:34:08,601 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the     deprecation.
keycloak-1_1       | 22:34:08,645 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 9) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description     operation to learn more about the deprecation.
keycloak-1_1       | 22:34:08,715 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 11) WFLYDR0001: Content added at location /opt/bitnami/keycloak/standalone/data/content/c5/    5fa6c6a460550cd8d70e55c435ef6834bff971/content
keycloak-1_1       | 22:34:08,832 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
keycloak-1_1       | 22:34:08,857 INFO  [org.xnio] (MSC service thread 1-7) XNIO version 3.8.4.Final
keycloak-1_1       | 22:34:08,866 INFO  [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.8.4.Final
keycloak-1_1       | 22:34:08,904 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 39) WFLYCLINF0001: Activating Infinispan subsystem.
keycloak-1_1       | 22:34:08,916 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
keycloak-1_1       | 22:34:08,934 INFO  [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0009: Starting Jakarta Connectors Subsystem (WildFly/IronJacamar 1.4.27.Final)
keycloak-1_1       | 22:34:08,934 INFO  [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 43) WFLYCLJG0001: Activating JGroups subsystem. JGroups version 4.2.11
keycloak-1_1       | 22:34:08,939 INFO  [org.wildfly.extension.health] (ServerService Thread Pool -- 38) WFLYHEALTH0001: Activating Base Health Subsystem
keycloak-1_1       | 22:34:08,941 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 41) WFLYRS0016: RESTEasy version 3.15.1.Final
keycloak-1_1       | 22:34:08,946 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
keycloak-1_1       | 22:34:08,949 INFO  [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=5.0.3.Final-redhat-00007
keycloak-1_1       | 22:34:08,955 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 40) WFLYIO001: Worker 'default' has auto-configured to 24 IO threads with 192 max task threads based on     your 12 available processors
keycloak-1_1       | 22:34:08,962 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.20.Final
keycloak-1_1       | 22:34:08,958 INFO  [org.wildfly.extension.metrics] (ServerService Thread Pool -- 48) WFLYMETRICS0001: Activating Base Metrics Subsystem
keycloak-1_1       | 22:34:08,995 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 2.2.5.Final starting
keycloak-1_1       | 22:34:08,996 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
keycloak-1_1       | 22:34:09,010 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = h2
keycloak-1_1       | 22:34:09,019 INFO  [org.jboss.as.naming] (MSC service thread 1-5) WFLYNAM0003: Starting Naming Service
keycloak-1_1       | 22:34:09,032 WARN  [org.wildfly.clustering.web.undertow] (ServerService Thread Pool -- 56) WFLYCLWEBUT0007: No routing provider found for default-server; using legacy provider based     on static configuration
keycloak-1_1       | 22:34:09,041 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
keycloak-1_1       | 22:34:09,078 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (    version 42.2)
keycloak-1_1       | 22:34:09,090 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = postgresql
keycloak-1_1       | 22:34:09,139 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY00023: KeyStore file '/opt/bitnami/keycloak/standalone/configuration/application.keystore' does not     exist. Used blank.
keycloak-1_1       | 22:34:09,177 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 56) WFLYUT0014: Creating file handler for path '/opt/bitnami/keycloak/welcome-content' with options [    directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
keycloak-1_1       | 22:34:09,198 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY01084: KeyStore /opt/bitnami/keycloak/standalone/configuration/application.keystore not found, it     will be auto generated on first use with a self-signed certificate for host localhost
keycloak-1_1       | WARNING: An illegal reflective access operation has occurred
keycloak-1_1       | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/bitnami/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/    wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak-1_1       | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
keycloak-1_1       | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
keycloak-1_1       | WARNING: All illegal access operations will be denied in a future release
</code>```

... until finally I see this:

```<code>    keycloak-1_1       | 22:39:09,543 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation     will roll back. Step that first updated the service container was 'add' at address '[
keycloak-1_1       |     ("core-service" => "management"),
keycloak-1_1       |     ("management-interface" => "http-interface")
keycloak-1_1       | ]'
keycloak-1_1       | 22:39:09,566 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment keycloak-server.war (runtime-name: keycloak-server.war) in 17ms
keycloak-1_1       | 22:39:09,567 INFO  [org.keycloak.subsystem.server.extension.KeycloakProviderDeploymentProcessor] (MSC service thread 1-4) Undeploying Keycloak provider: keycloak-metrics-spi-2.4.0.jar
keycloak-1_1       | 22:39:09,574 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment keycloak-metrics-spi-2.4.0.jar (runtime-name:     keycloak-metrics-spi-2.4.0.jar) in 24ms
keycloak-1_1       | 22:39:09,575 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTPS listener https suspending
keycloak-1_1       | 22:39:09,581 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 0.0.0.0:8443
keycloak-1_1       | 22:39:10,736 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to e4a802d5ef7c timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:14,213 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 01fadbd6831b timed out (after 3000 ms), on try 7
</code>```

[snip]
and a bunch more:

```<code>keycloak-1_1       | 22:39:14,587 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractControllerService$ModelControllerServiceInitializationBootStepHandler$1@25e2ac57 for operation boottime-controller-initializer-step at address [] failed --     java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:14,589 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractControllerService$ModelControllerServiceInitializationBootStepHandler$1@25e2ac57 for operation boottime-controller-initializer-step at address [] failed --     java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:14,590 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0022: Deploy of deployment "keycloak-metrics-spi-2.4.0.jar" was rolled back with no failure message
keycloak-1_1       | 22:39:14,593 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 46) WFLYSRV0022: Deploy of deployment "keycloak-server.war" was rolled back with no failure message
keycloak-1_1       | 22:39:14,594 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]
keycloak-1_1       | 22:39:14,595 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0008: Undertow HTTP listener default suspending
keycloak-1_1       | 22:39:14,596 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 0.0.0.0:8080
keycloak-1_1       | 22:39:14,597 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:jboss/datasources/KeycloakDS]
keycloak-1_1       | 22:39:14,597 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
keycloak-1_1       | 22:39:14,599 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0019: Host default-host stopping
keycloak-1_1       | 22:39:14,600 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow AJP listener ajp suspending
keycloak-1_1       | 22:39:14,601 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow AJP listener ajp stopped, was bound to 0.0.0.0:8009
keycloak-1_1       | 22:39:14,601 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 37) MODCLUSTER000002: Initiating mod_cluster shutdown
keycloak-1_1       | 22:39:14,603 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0004: Undertow 2.2.5.Final stopping
keycloak-1_1       | 22:39:14,603 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0019: Stopped Driver service with driver-name = h2
keycloak-1_1       | 22:39:17,594 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:19,630 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.ParallelBootOperationStepHandler$2@296cb863 for operation parallel-subsystem-boot at address [] failed -- java.util.concurrent.TimeoutException:     java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:19,630 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.ParallelBootOperationStepHandler$2@296cb863 for     operation parallel-subsystem-boot at address [] failed -- java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:20,953 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:24,308 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:24,632 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@7b2fdf4f for     operation add at address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("remote-destination-outbound-socket-binding" => "mail-smtp")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:24,633 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@7b2fdf4f for operation add at     address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("remote-destination-outbound-socket-binding" => "mail-smtp")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:29,634 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@4f909ceb for     operation add at address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("socket-binding" => "txn-status-manager")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
</code>```

Until it gives up:

```<code>keycloak-1_1       | 22:40:43,851 ERROR [org.jgroups.protocols.JDBC_PING] (Thread-77) JGRP000215: Failed to delete PingData in database
keycloak-1_1       | 22:40:43,859 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: Keycloak 15.0.2 (WildFly Core 15.0.1.Final) stopped in 6ms
keycloak-1_1       | base_keycloak-1_1 exited with code 1
</code>```

Any idea what I can do to fix this?  I can't find the volume locally- I'd like to delete that to let it start over.  This is only for localhost debugging.

答:
I have similar issues on my local machine,
what I do then is:

docker-compose down and docker-compose up
if this does not help then I delete volume, be aware that volume will be named differently that in yaml file, it contains prefix ie:

```<code>kc-tests_postgresql_data
</code>```

You can check this by using docker volume ls
After deleting volume all works fine.
Not best solution but well at least for develop when its destroyed it helps.

Body:
My docker compose has the following 2 services and keycloak used to startup just fine until today:

postgresql:
  image: 'docker.io/bitnami/postgresql:11'
  environment:
    - ALLOW_EMPTY_PASSWORD=yes
    - POSTGRESQL_USERNAME=bn_keycloak
    - POSTGRESQL_DATABASE=bitnami_keycloak
    - KEYCLOAK_ENABLE_STATISTICS=true
  volumes:
    - 'postgresql_data:/bitnami/postgresql'

keycloak-1:
  image: docker.io/bitnami/keycloak:latest
  ports:
    - '80:8080'
    - '8443:8443'
  environment:
    - KEYCLOAK_CREATE_ADMIN_USER=true
    - KEYCLOAK_JGROUPS_DISCOVERY_PROTOCOL=JDBC_PING
    - 'KEYCLOAK_JGROUPS_DISCOVERY_PROPERTIES=datasource_jndi_name=>java:jboss/datasources/KeycloakDS, initialize_sql=>"CREATE TABLE IF NOT EXISTS JGROUPSPING ( own_addr varchar(200) NOT NULL, cluster_name varchar(200) NOT NULL, created timestamp default current_timestamp, ping_data BYTEA, constraint PK_JGROUPSPING PRIMARY KEY (own_addr, cluster_name))"'
  depends_on:
    - postgresql

When I start the container, all of a sudden today, I get lots of ServerService Thread Pool errors:

WARNING: Native build is an experimental feature and could change at any time
base_postgresql_1 is up-to-date
Recreating base_keycloak-1_1 ... done
Attaching to base_keycloak-1_1
keycloak-1_1       | keycloak 22:33:45.49
keycloak-1_1       | keycloak 22:33:45.49 Welcome to the Bitnami keycloak container
keycloak-1_1       | keycloak 22:33:45.49 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-keycloak
keycloak-1_1       | keycloak 22:33:45.49 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-keycloak/issues
keycloak-1_1       | keycloak 22:33:45.49
keycloak-1_1       | keycloak 22:33:45.49 INFO  ==> ** Starting keycloak setup **
keycloak-1_1       | keycloak 22:33:45.50 INFO  ==> Validating settings in KEYCLOAK_* env vars...
keycloak-1_1       | keycloak 22:33:45.50 INFO  ==> Trying to connect to PostgreSQL server postgresql...
keycloak-1_1       | keycloak 22:33:45.51 INFO  ==> Found PostgreSQL server listening at postgresql:5432
keycloak-1_1       | keycloak 22:33:45.51 INFO  ==> Configuring database settings
keycloak-1_1       | keycloak 22:33:49.30 INFO  ==> Configuring jgroups settings
keycloak-1_1       | keycloak 22:33:51.97 INFO  ==> Configuring cache count
keycloak-1_1       | keycloak 22:33:54.57 INFO  ==> Configuring authentication cache count
keycloak-1_1       | keycloak 22:33:57.83 INFO  ==> Configuring log level
keycloak-1_1       | keycloak 22:34:00.41 INFO  ==> Configuring proxy address forwarding
keycloak-1_1       | keycloak 22:34:03.36 INFO  ==> Configuring node identifier
keycloak-1_1       |
keycloak-1_1       | keycloak 22:34:06.34 INFO  ==> ** keycloak setup finished! **
keycloak-1_1       | keycloak 22:34:06.35 INFO  ==> ** Starting keycloak **
keycloak-1_1       | =========================================================================
keycloak-1_1       |
keycloak-1_1       |   JBoss Bootstrap Environment
keycloak-1_1       |
keycloak-1_1       |   JBOSS_HOME: /opt/bitnami/keycloak
keycloak-1_1       |
keycloak-1_1       |   JAVA: /opt/bitnami/java/bin/java
keycloak-1_1       |
keycloak-1_1       |   JAVA_OPTS:  -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman     -Djava.awt.headless=true  --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED
keycloak-1_1       |
keycloak-1_1       | =========================================================================
keycloak-1_1       |
keycloak-1_1       | 22:34:07,041 INFO  [org.jboss.modules] (main) JBoss Modules version 1.11.0.Final
keycloak-1_1       | 22:34:07,407 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.12.Final
keycloak-1_1       | 22:34:07,415 INFO  [org.jboss.threads] (main) JBoss Threads version 2.4.0.Final
keycloak-1_1       | 22:34:07,521 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: Keycloak 15.0.2 (WildFly Core 15.0.1.Final) starting
keycloak-1_1       | 22:34:08,114 INFO  [org.wildfly.security] (ServerService Thread Pool -- 22) ELY00001: WildFly Elytron version 1.15.3.Final
keycloak-1_1       | 22:34:08,383 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 6) WFLYCTL0033: Extension 'security' is deprecated and may not be supported in future     versions
keycloak-1_1       | 22:34:08,601 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the     deprecation.
keycloak-1_1       | 22:34:08,645 INFO  [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 9) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description     operation to learn more about the deprecation.
keycloak-1_1       | 22:34:08,715 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 11) WFLYDR0001: Content added at location /opt/bitnami/keycloak/standalone/data/content/c5/    5fa6c6a460550cd8d70e55c435ef6834bff971/content
keycloak-1_1       | 22:34:08,832 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
keycloak-1_1       | 22:34:08,857 INFO  [org.xnio] (MSC service thread 1-7) XNIO version 3.8.4.Final
keycloak-1_1       | 22:34:08,866 INFO  [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3.8.4.Final
keycloak-1_1       | 22:34:08,904 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 39) WFLYCLINF0001: Activating Infinispan subsystem.
keycloak-1_1       | 22:34:08,916 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
keycloak-1_1       | 22:34:08,934 INFO  [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0009: Starting Jakarta Connectors Subsystem (WildFly/IronJacamar 1.4.27.Final)
keycloak-1_1       | 22:34:08,934 INFO  [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 43) WFLYCLJG0001: Activating JGroups subsystem. JGroups version 4.2.11
keycloak-1_1       | 22:34:08,939 INFO  [org.wildfly.extension.health] (ServerService Thread Pool -- 38) WFLYHEALTH0001: Activating Base Health Subsystem
keycloak-1_1       | 22:34:08,941 INFO  [org.jboss.as.jaxrs] (ServerService Thread Pool -- 41) WFLYRS0016: RESTEasy version 3.15.1.Final
keycloak-1_1       | 22:34:08,946 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
keycloak-1_1       | 22:34:08,949 INFO  [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=5.0.3.Final-redhat-00007
keycloak-1_1       | 22:34:08,955 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 40) WFLYIO001: Worker 'default' has auto-configured to 24 IO threads with 192 max task threads based on     your 12 available processors
keycloak-1_1       | 22:34:08,962 INFO  [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 5.0.20.Final
keycloak-1_1       | 22:34:08,958 INFO  [org.wildfly.extension.metrics] (ServerService Thread Pool -- 48) WFLYMETRICS0001: Activating Base Metrics Subsystem
keycloak-1_1       | 22:34:08,995 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 2.2.5.Final starting
keycloak-1_1       | 22:34:08,996 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
keycloak-1_1       | 22:34:09,010 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = h2
keycloak-1_1       | 22:34:09,019 INFO  [org.jboss.as.naming] (MSC service thread 1-5) WFLYNAM0003: Starting Naming Service
keycloak-1_1       | 22:34:09,032 WARN  [org.wildfly.clustering.web.undertow] (ServerService Thread Pool -- 56) WFLYCLWEBUT0007: No routing provider found for default-server; using legacy provider based     on static configuration
keycloak-1_1       | 22:34:09,041 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
keycloak-1_1       | 22:34:09,078 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (    version 42.2)
keycloak-1_1       | 22:34:09,090 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = postgresql
keycloak-1_1       | 22:34:09,139 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY00023: KeyStore file '/opt/bitnami/keycloak/standalone/configuration/application.keystore' does not     exist. Used blank.
keycloak-1_1       | 22:34:09,177 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 56) WFLYUT0014: Creating file handler for path '/opt/bitnami/keycloak/welcome-content' with options [    directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
keycloak-1_1       | 22:34:09,198 WARN  [org.wildfly.extension.elytron] (MSC service thread 1-3) WFLYELY01084: KeyStore /opt/bitnami/keycloak/standalone/configuration/application.keystore not found, it     will be auto generated on first use with a self-signed certificate for host localhost
keycloak-1_1       | WARNING: An illegal reflective access operation has occurred
keycloak-1_1       | WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/opt/bitnami/keycloak/modules/system/layers/base/org/wildfly/extension/elytron/main/    wildfly-elytron-integration-15.0.1.Final.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS()
keycloak-1_1       | WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions
keycloak-1_1       | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
keycloak-1_1       | WARNING: All illegal access operations will be denied in a future release

... until finally I see this:

    keycloak-1_1       | 22:39:09,543 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation     will roll back. Step that first updated the service container was 'add' at address '[
keycloak-1_1       |     ("core-service" => "management"),
keycloak-1_1       |     ("management-interface" => "http-interface")
keycloak-1_1       | ]'
keycloak-1_1       | 22:39:09,566 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment keycloak-server.war (runtime-name: keycloak-server.war) in 17ms
keycloak-1_1       | 22:39:09,567 INFO  [org.keycloak.subsystem.server.extension.KeycloakProviderDeploymentProcessor] (MSC service thread 1-4) Undeploying Keycloak provider: keycloak-metrics-spi-2.4.0.jar
keycloak-1_1       | 22:39:09,574 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment keycloak-metrics-spi-2.4.0.jar (runtime-name:     keycloak-metrics-spi-2.4.0.jar) in 24ms
keycloak-1_1       | 22:39:09,575 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTPS listener https suspending
keycloak-1_1       | 22:39:09,581 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 0.0.0.0:8443
keycloak-1_1       | 22:39:10,736 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to e4a802d5ef7c timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:14,213 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 01fadbd6831b timed out (after 3000 ms), on try 7

[snip]
and a bunch more:

keycloak-1_1       | 22:39:14,587 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractControllerService$ModelControllerServiceInitializationBootStepHandler$1@25e2ac57 for operation boottime-controller-initializer-step at address [] failed --     java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:14,589 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractControllerService$ModelControllerServiceInitializationBootStepHandler$1@25e2ac57 for operation boottime-controller-initializer-step at address [] failed --     java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:14,590 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0022: Deploy of deployment "keycloak-metrics-spi-2.4.0.jar" was rolled back with no failure message
keycloak-1_1       | 22:39:14,593 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 46) WFLYSRV0022: Deploy of deployment "keycloak-server.war" was rolled back with no failure message
keycloak-1_1       | 22:39:14,594 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]
keycloak-1_1       | 22:39:14,595 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0008: Undertow HTTP listener default suspending
keycloak-1_1       | 22:39:14,596 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 0.0.0.0:8080
keycloak-1_1       | 22:39:14,597 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0010: Unbound data source [java:jboss/datasources/KeycloakDS]
keycloak-1_1       | 22:39:14,597 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
keycloak-1_1       | 22:39:14,599 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0019: Host default-host stopping
keycloak-1_1       | 22:39:14,600 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow AJP listener ajp suspending
keycloak-1_1       | 22:39:14,601 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow AJP listener ajp stopped, was bound to 0.0.0.0:8009
keycloak-1_1       | 22:39:14,601 INFO  [org.jboss.modcluster] (ServerService Thread Pool -- 37) MODCLUSTER000002: Initiating mod_cluster shutdown
keycloak-1_1       | 22:39:14,603 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0004: Undertow 2.2.5.Final stopping
keycloak-1_1       | 22:39:14,603 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0019: Stopped Driver service with driver-name = h2
keycloak-1_1       | 22:39:17,594 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:19,630 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.ParallelBootOperationStepHandler$2@296cb863 for operation parallel-subsystem-boot at address [] failed -- java.util.concurrent.TimeoutException:     java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:19,630 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.ParallelBootOperationStepHandler$2@296cb863 for     operation parallel-subsystem-boot at address [] failed -- java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:20,953 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:24,308 WARN  [org.jgroups.protocols.pbcast.GMS] (ServerService Thread Pool -- 58) 686f5f3e69c1: JOIN(686f5f3e69c1) sent to 910704d8ddf5 timed out (after 3000 ms), on try 7
keycloak-1_1       | 22:39:24,632 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@7b2fdf4f for     operation add at address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("remote-destination-outbound-socket-binding" => "mail-smtp")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:515)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:477)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:459)
keycloak-1_1       |    at org.jboss.as.server@15.0.1.Final//org.jboss.as.server.ServerService.boot(ServerService.java:412)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
keycloak-1_1       |    at java.base/java.lang.Thread.run(Thread.java:829)
keycloak-1_1       |
keycloak-1_1       | 22:39:24,633 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@7b2fdf4f for operation add at     address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("remote-destination-outbound-socket-binding" => "mail-smtp")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException
keycloak-1_1       | 22:39:29,634 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.controller.AbstractAddStepHandler$1@4f909ceb for     operation add at address [
keycloak-1_1       |     ("socket-binding-group" => "standard-sockets"),
keycloak-1_1       |     ("socket-binding" => "txn-status-manager")
keycloak-1_1       | ] failed -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:525)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1559)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1513)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1496)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1360)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:912)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:762)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1415)
keycloak-1_1       |    at org.jboss.as.controller@15.0.1.Final//org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:529)

Until it gives up:

keycloak-1_1       | 22:40:43,851 ERROR [org.jgroups.protocols.JDBC_PING] (Thread-77) JGRP000215: Failed to delete PingData in database
keycloak-1_1       | 22:40:43,859 INFO  [org.jboss.as] (MSC service thread 1-4) WFLYSRV0050: Keycloak 15.0.2 (WildFly Core 15.0.1.Final) stopped in 6ms
keycloak-1_1       | base_keycloak-1_1 exited with code 1

Any idea what I can do to fix this?  I can't find the volume locally- I'd like to delete that to let it start over.  This is only for localhost debugging.

Body:
I have similar issues on my local machine,
what I do then is:

docker-compose down and docker-compose up
if this does not help then I delete volume, be aware that volume will be named differently that in yaml file, it contains prefix ie:

kc-tests_postgresql_data

You can check this by using docker volume ls
After deleting volume all works fine.
Not best solution but well at least for develop when its destroyed it helps.


问:
Javascript - Show a div with a given class after clicking on a given class
Several spans that have certain classes.

```<code><span class="1 click-1">1</span>
<span class="2 click-2">2</span>
<span class="3 click-3">4</span>
<span class="4 click-4">4</span>
</code>```

Clicking on a given  displays a DIV that contains the same class. How to do it?

```<code><div class="click-1">Hello!</div>
<div class="click-2">Hello 2!</div>
<div class="click-3">Hello 3!</div>
<div class="click-4">Hello 4!</div>
</code>```

I need such a solution because it is development on the CMS side. User can add much more span and div. So the script has to be universal.

答:
Since JQuery is tagged, points to note is that only the span's 2nd class name will be used to find div with same classes in code below.

```<code>$(document).on("click","span",function(){// attaching evt listner to all spans
  var getClass = $(this).prop('class').split(' ')[1];//get 2nd classname of span
    $(`div.${getClass}`).show(); // divs with such class
    //or
    $(`.${getClass}`).show(); // anything with such class
});
</code>```

This code will work with the html syntax given above. But in cases where there are just one class in a span then it will not work. So modify the code accordingly or make sure the second class of span is equal to classname of div you are trying to show.

Body:
Several spans that have certain classes.

1
2
4
4

Clicking on a given  displays a DIV that contains the same class. How to do it?

Hello!

Hello 2!

Hello 3!

Hello 4!

I need such a solution because it is development on the CMS side. User can add much more span and div. So the script has to be universal.

Body:
Since JQuery is tagged, points to note is that only the span's 2nd class name will be used to find div with same classes in code below.

$(document).on("click","span",function(){// attaching evt listner to all spans
  var getClass = $(this).prop('class').split(' ')[1];//get 2nd classname of span
    $(`div.${getClass}`).show(); // divs with such class
    //or
    $(`.${getClass}`).show(); // anything with such class
});

This code will work with the html syntax given above. But in cases where there are just one class in a span then it will not work. So modify the code accordingly or make sure the second class of span is equal to classname of div you are trying to show.