vk-tg-bot icon indicating copy to clipboard operation
vk-tg-bot copied to clipboard

Ошибка при запуске в докер-образе

Open timatet opened this issue 10 months ago • 0 comments

Вероятно требуется обновить докер-образ. При запуске следующая ошибка


> [email protected] start /bot
> node src/index.js

{ APIError: Code №8 - Invalid request: versions below 5.81 are deprecated. Version param should be passed as "v". "version" param is invalid and not supported. For more information go to https://vk.com/dev/constant_version_updates
    at API.callMethod (/bot/node_modules/vk-io/lib/index.js:1948:35)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 8,
  name: 'APIError',
  params:
   [ { key: 'v', value: '5.76' },
     { key: 'method', value: 'messages.getLongPollServer' },
     { key: 'oauth', value: '1' },
     { key: 'lp_version', value: '3' } ] }
Failed to process updates. { Error: 409: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
    at buildConfig.then.then.then.then (/bot/node_modules/telegraf/core/network/client.js:235:17)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  code: 409,
  response:
   { ok: false,
     error_code: 409,
     description:
      'Conflict: terminated by other getUpdates request; make sure that only one bot instance is running' },
  description:
   'Conflict: terminated by other getUpdates request; make sure that only one bot instance is running',
  parameters: {},
  on:
   { method: 'getUpdates?offset=0&limit=100&timeout=30',
     payload: {} } }```

При сборке образа вручную по Dockerfile:

``` => [internal] load .dockerignore                                                                                                                                                0.0s
 => => transferring context: 2B                                                                                                                                                  0.0s
 => [internal] load build definition from Dockerfile                                                                                                                             0.0s
 => => transferring dockerfile: 408B                                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/node:10-slim                                                                                                                  0.9s
 => [auth] library/node:pull token for registry-1.docker.io                                                                                                                      0.0s
 => [base 1/7] FROM docker.io/library/node:10-slim@sha256:88932859e3d022d79161b99628c4c2c50e836437455e2d1b1a008d98367b10d6                                                       0.0s
 => [internal] load build context                                                                                                                                                0.0s
 => => transferring context: 430B                                                                                                                                                0.0s
 => CACHED [base 2/7] RUN mkdir /bot                                                                                                                                             0.0s
 => CACHED [base 3/7] WORKDIR /bot                                                                                                                                               0.0s
 => CACHED [base 4/7] ADD package.json /bot/package.json                                                                                                                         0.0s
 => CACHED [base 5/7] ADD package-lock.json /bot/package-lock.json                                                                                                               0.0s
 => CACHED [base 6/7] ADD config.json /bot/config.json                                                                                                                           0.0s
 => ERROR [base 7/7] RUN apt-get update &&    apt-get install -y jq &&    npm install --production &&    rm -rf /var/lib/apt/lists/*                                             1.7s
------                                                                                                                                                                                
 > [base 7/7] RUN apt-get update &&    apt-get install -y jq &&    npm install --production &&    rm -rf /var/lib/apt/lists/*:                                                        
0.401 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease                                                                                                      
0.417 Ign:2 http://deb.debian.org/debian stretch InRelease                                                                                                                            
0.446 Ign:3 http://security.debian.org/debian-security stretch/updates Release                                                                                                        
0.459 Ign:4 http://deb.debian.org/debian stretch-updates InRelease                                                                                                                    
0.491 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.501 Ign:6 http://deb.debian.org/debian stretch Release
0.537 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
0.543 Ign:8 http://deb.debian.org/debian stretch-updates Release
0.581 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.585 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.626 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.627 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
0.668 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.678 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.710 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.723 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
0.759 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.768 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.801 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.813 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
0.847 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.858 Ign:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.895 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.903 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
0.944 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.948 Err:5 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.948   404  Not Found [IP: 151.101.2.132 80]
0.990 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.993 Ign:7 http://security.debian.org/debian-security stretch/updates/main all Packages
1.032 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
1.081 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
1.124 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
1.166 Ign:10 http://deb.debian.org/debian stretch/main all Packages
1.208 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
1.249 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
1.292 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
1.333 Ign:10 http://deb.debian.org/debian stretch/main all Packages
1.378 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
1.421 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
1.461 Err:9 http://deb.debian.org/debian stretch/main amd64 Packages
1.461   404  Not Found
1.547 Ign:10 http://deb.debian.org/debian stretch/main all Packages
1.589 Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
1.589   404  Not Found
1.631 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
1.634 Reading package lists...
1.641 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
1.641 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
1.641 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
1.641 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found [IP: 151.101.2.132 80]
1.641 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found
1.641 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found
1.641 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
Dockerfile:11
--------------------
  10 |     
  11 | >>> RUN apt-get update &&\
  12 | >>>     apt-get install -y jq &&\
  13 | >>>     npm install --production &&\
  14 | >>>     rm -rf /var/lib/apt/lists/*
  15 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update &&    apt-get install -y jq &&    npm install --production &&    rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100```

timatet avatar Sep 05 '23 21:09 timatet