the-hideout / tarkov-data-manager

The Tarkov Data manager web app to manage the sql database
GNU General Public License v3.0
11 stars 3 forks source link

Add Sentry #545

Open thaddeus opened 2 months ago

thaddeus commented 2 months ago

Adds Sentry for the Express server, Cron jobs, and the Manager interface

Merged in the other currently deployed PR

The index file got auto formatted when I saved it - so most of the changes are just formatting. We should add a prettierrc or prettier.config in this and other projects, along with VSCode suggested extensions IMO.

github-actions[bot] commented 2 months ago

šŸ‘‹ Thanks for opening a pull request!

If you are new, please check out the trimmed down summary of our deployment process below:

  1. šŸ‘€ Observe the CI jobs and tests to ensure they are passing
  2. āœ”ļø Obtain an approval/review on this pull request
  3. šŸš€ Branch deploy your pull request to production

    Comment .deploy on this pull request to trigger a deploy. If anything goes wrong, rollback with .deploy main

  4. šŸŽ‰ Merge!
thaddeus commented 2 months ago

.deploy

github-actions[bot] commented 2 months ago

āš ļø Cannot proceed with deployment

This is usually caused by missing PR approvals or CI checks failing

Razzmatazzz commented 1 month ago

.unlock production

github-actions[bot] commented 1 month ago

šŸ”“ There is currently no production deployment lock set

Razzmatazzz commented 1 month ago

.deploy

github-actions[bot] commented 1 month ago

Deployment Triggered šŸš€

Razzmatazzz, started a branch deployment to production

You can watch the progress here šŸ”—

Branch: add-sentry

github-actions[bot] commented 1 month ago

Deployment Results āš ļø

Warning: deployment status is unknown, please use caution

Razzmatazzz commented 1 month ago

.deploy

github-actions[bot] commented 1 month ago

Deployment Triggered šŸš€

Razzmatazzz, started a branch deployment to production

You can watch the progress here šŸ”—

Branch: add-sentry

github-actions[bot] commented 1 month ago

Deployment Results āœ…

Razzmatazzz successfully deployed branch add-sentry to production

GrantBirki commented 1 month ago

.unlock

github-actions[bot] commented 1 month ago

šŸ”“ Deployment Lock Removed

The production deployment lock has been successfully removed

GrantBirki commented 1 month ago

.deploy main

github-actions[bot] commented 1 month ago

Deployment Triggered šŸš€

GrantBirki, started a branch deployment to production

You can watch the progress here šŸ”—

Branch: main

GrantBirki commented 1 month ago

Seeing some errors on containers now that this is deployed:

wait-for-it.sh: waiting 15 seconds for database:3306
wait-for-it.sh: database:3306 is available after 0 seconds
[ { 'count(*)': 15 } ]
Database is ready

> tarkov-data-manager@2.0.0 start
> node --max-old-space-size=3000 index.mjs

(node:42) Warning: Accessing non-existent property 'format' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:42) Warning: Accessing non-existent property 'format' of module exports inside circular dependency
TypeError: format is not a function
    at getDbStatement (/app/node_modules/@opentelemetry/instrumentation-mysql2/build/src/utils.js:72:15)
    at PoolConnection.query (/app/node_modules/@opentelemetry/instrumentation-mysql2/build/src/instrumentation.js:65:250)
    at /app/node_modules/mysql2/lib/pool.js:154:14
    at /app/node_modules/mysql2/lib/pool.js:49:37
    at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Error refreshing users TypeError: format is not a function
    at getDbStatement (/app/node_modules/@opentelemetry/instrumentation-mysql2/build/src/utils.js:72:15)
    at PoolConnection.query (/app/node_modules/@opentelemetry/instrumentation-mysql2/build/src/instrumentation.js:65:250)
    at /app/node_modules/mysql2/lib/pool.js:154:14
    at /app/node_modules/mysql2/lib/pool.js:68:16
    at PoolConnection.<anonymous> (/app/node_modules/mysql2/lib/connection.js:818:13)
    at Object.onceWrapper (node:events:634:26)
    at PoolConnection.emit (node:events:519:28)
    at ClientHandshake.<anonymous> (/app/node_modules/mysql2/lib/connection.js:137:14)
    at ClientHandshake.emit (node:events:519:28)
    at ClientHandshake.execute (/app/node_modules/mysql2/lib/commands/command.js:49:10) {
  fatal: true
}

tdm@tdm-vm:~$ sudo docker ps
CONTAINER ID   IMAGE                                     COMMAND                  CREATED          STATUS                          PORTS                                                                                                                                    NAMES
d77e8c2195f2   tarkov-data-manager_caddy                 "sh /app/start.sh"       13 minutes ago   Up 7 minutes                    0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8443->8443/tcp, :::8443->8443/tcp, 443/udp, 2019/tcp   caddy-service
81441efa592a   tarkov-data-manager_backup                "docker-entrypoint.sā€¦"   13 minutes ago   Up 7 minutes                                                                                                                                                             tarkov-data-manager_backup_1
77d9007d90c8   tarkov-data-manager_tarkov_data_manager   "docker-entrypoint.sā€¦"   13 minutes ago   Restarting (1) 19 seconds ago                                                                                                                                            tarkov_data_manager
3859740cdf38   tarkov-data-manager_database              "docker-entrypoint.sā€¦"   13 minutes ago   Up 7 minutes                    0.0.0.0:3306->3306/tcp, :::3306->3306/tcp, 33060/tcp                                                                                     tarkov-data-manager_database_1
github-actions[bot] commented 1 month ago

Deployment Results āœ…

GrantBirki successfully deployed branch main to production

GrantBirki commented 1 month ago

.unlock

github-actions[bot] commented 1 month ago

šŸ”“ Deployment Lock Removed

The production deployment lock has been successfully removed

Razzmatazzz commented 1 month ago

.deploy

github-actions[bot] commented 1 month ago

Deployment Triggered šŸš€

Razzmatazzz, started a branch deployment to production

You can watch the progress here šŸ”—

Branch: add-sentry

github-actions[bot] commented 1 month ago

Deployment Results āœ…

Razzmatazzz successfully deployed branch add-sentry to production

Razzmatazzz commented 1 month ago

.deploy main

github-actions[bot] commented 1 month ago

Deployment Triggered šŸš€

Razzmatazzz, started a branch deployment to production

You can watch the progress here šŸ”—

Branch: main

github-actions[bot] commented 1 month ago

Deployment Results āœ…

Razzmatazzz successfully deployed branch main to production

Razzmatazzz commented 1 month ago

When I deployed this, it appeared to deploy properly, but the data manager never came back online.