nginx / nginx/docker-nginx

Angular 15 - getrlimit(RLIMIT_NOFILE): in datadog logs?

Open
#862 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.5k
Forks
1.8k
Avg merge
42m
Merged PRs (30d)
2

Description

Describe the bug

I have deployed angular project via docker ,nginx and docker-compose.yml file but from harness pipeline CI done but CD got issue and in the CD pipeline can anybody help on that regarding below issue as well as i am sharing all my files :

To reproduce

Steps to reproduce the behaviour:

  1. Datadog error
2024/01/25 15:21:18 [notice] 1#1: start worker process 30
2024/01/25 15:21:18 [notice] 1#1: start worker process 29
2024/01/25 15:21:18 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 65535:65535
2024/01/25 15:21:18 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
Jan 25 20:51:18.317 2024/01/25 15:21:18 [notice] 1#1: nginx/1.25.3
Jan 25 20:51:18.307  /docker-entrypoint.sh: Configuration complete; ready for start up
Jan 25 20:51:18.300   /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Jan 25 20:51:17.78    /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Jan 25 20:51:17.776  /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Jan 25 20:51:17.776 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Jan 25 20:51:18.300  /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
  1. Docker file
FROM artifactorycloud.ual.com/v-docker/node:16 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build --configuration=development
FROM artifactorycloud.ual.com/v-docker/nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy the nginx conf that we created to the container
COPY ./nginx.conf  /etc/nginx/conf.d/default.conf

EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
  1. docker-compose.yml:
version: '3.7'
services:
  web:
    build: 
      context: .
      dockerfile: ./Dockerfile
    ports:
      - 80:80
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    logging:
        driver: json-file
        options:
          max-size: "10m"
          max-file: "3"
volumes:
  angularngixvolume:

  1. nginx.conf
server {
    listen 0.0.0.0:80;
    listen [::]:80;
    default_type application/octet-stream;

    gzip                    on;
    gzip_comp_level         6;
    gzip_vary               on;
    gzip_min_length         1000;
    gzip_proxied            any;
    gzip_types              text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
    gzip_buffers            16 8k;
    client_max_body_size    256M;

    root /usr/share/nginx/html;

    location / {
        try_files $uri $uri/ /index.html =404;
    }
      location /ui/health {
            access_log off;
            add_header 'Content-Type' 'text/plain';
            return 200 "Healthy\n";
        }
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Datadog log excerpt and compare the referenced Dockerfile, docker-compose.yml, and nginx.conf to the reported CD failure. Done means establishing whether the getrlimit message is related to the deployment problem and documenting a reproducible diagnosis or resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, docker, docker-compose, nginx
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.