Olá, tenho um problema estranho, eu rodo o programa normalmente no meu MacBook através do Docker. às vezes buga e ele reinicia, mas de maneira geral, funciona bem. Resolvi coloca-lo num servidor que criei no ubuntu server e não consigo, sempre dá erro, seja pelo docker ou tentando rodar direto, o que pode ser?
Detalhe relevante: eu copiei a pasta do mac e colei no ubuntu, ou seja, são os mesmos arquivos funcionais, não entendo.
2024-11-07 07:47:48 INFO Program started
2024-11-07 07:47:49 INFO Will notify: true
2024-11-07 07:47:50 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:51 INFO Will notify: true
2024-11-07 07:47:55 INFO Checking new ads for: macbook
2024-11-07 07:47:55 INFO Ads found: 53
2024-11-07 07:47:56 INFO Checking new ads for:
2024-11-07 07:47:56 INFO Ads found: 108
2024-11-07 07:47:57 INFO Checking new ads for:
2024-11-07 07:47:57 INFO Ads found: 114
2024-11-07 07:47:57 INFO Valid ads: 103
2024-11-07 07:47:57 INFO Maximum price: 3600
2024-11-07 07:47:57 INFO Minimum price: 0
2024-11-07 07:47:57 INFO Average price: 1422.2524271844661
2024-11-07 07:47:57 INFO Checking new ads for:
2024-11-07 07:47:57 INFO Ads found: 126
2024-11-07 07:47:57 INFO Checking new ads for:
2024-11-07 07:47:57 INFO Ads found: 128
2024-11-07 07:47:58 INFO Checking new ads for:
2024-11-07 07:47:58 INFO Ads found: 140
2024-11-07 07:47:58 INFO Checking new ads for:
2024-11-07 07:47:58 INFO Ads found: 155
2024-11-07 07:47:58 INFO Checking new ads for:
2024-11-07 07:47:58 INFO Ads found: 167
2024-11-07 07:47:59 INFO Checking new ads for:
2024-11-07 07:47:59 INFO Ads found: 178
2024-11-07 07:47:59 INFO Checking new ads for:
2024-11-07 07:47:59 INFO Ads found: 195
2024-11-07 07:48:00 INFO Valid ads: 172
2024-11-07 07:48:00 INFO Maximum price: 3600
2024-11-07 07:48:00 INFO Minimum price: 0
2024-11-07 07:48:00 INFO Average price: 1974.8488372093022
2024-11-07 07:48:00 INFO Checking new ads for:
2024-11-07 07:48:00 INFO Ads found: 196
node:internal/process/promises:288
triggerUncaughtException(err, true / fromPromise /);
^
Olá, tenho um problema estranho, eu rodo o programa normalmente no meu MacBook através do Docker. às vezes buga e ele reinicia, mas de maneira geral, funciona bem. Resolvi coloca-lo num servidor que criei no ubuntu server e não consigo, sempre dá erro, seja pelo docker ou tentando rodar direto, o que pode ser?
Detalhe relevante: eu copiei a pasta do mac e colei no ubuntu, ou seja, são os mesmos arquivos funcionais, não entendo.
2024-11-07 07:47:48 INFO Program started 2024-11-07 07:47:49 INFO Will notify: true 2024-11-07 07:47:50 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:51 INFO Will notify: true 2024-11-07 07:47:55 INFO Checking new ads for: macbook 2024-11-07 07:47:55 INFO Ads found: 53 2024-11-07 07:47:56 INFO Checking new ads for: 2024-11-07 07:47:56 INFO Ads found: 108 2024-11-07 07:47:57 INFO Checking new ads for: 2024-11-07 07:47:57 INFO Ads found: 114 2024-11-07 07:47:57 INFO Valid ads: 103 2024-11-07 07:47:57 INFO Maximum price: 3600 2024-11-07 07:47:57 INFO Minimum price: 0 2024-11-07 07:47:57 INFO Average price: 1422.2524271844661 2024-11-07 07:47:57 INFO Checking new ads for: 2024-11-07 07:47:57 INFO Ads found: 126 2024-11-07 07:47:57 INFO Checking new ads for: 2024-11-07 07:47:57 INFO Ads found: 128 2024-11-07 07:47:58 INFO Checking new ads for: 2024-11-07 07:47:58 INFO Ads found: 140 2024-11-07 07:47:58 INFO Checking new ads for: 2024-11-07 07:47:58 INFO Ads found: 155 2024-11-07 07:47:58 INFO Checking new ads for: 2024-11-07 07:47:58 INFO Ads found: 167 2024-11-07 07:47:59 INFO Checking new ads for: 2024-11-07 07:47:59 INFO Ads found: 178 2024-11-07 07:47:59 INFO Checking new ads for: 2024-11-07 07:47:59 INFO Ads found: 195 2024-11-07 07:48:00 INFO Valid ads: 172 2024-11-07 07:48:00 INFO Maximum price: 3600 2024-11-07 07:48:00 INFO Minimum price: 0 2024-11-07 07:48:00 INFO Average price: 1974.8488372093022 2024-11-07 07:48:00 INFO Checking new ads for: 2024-11-07 07:48:00 INFO Ads found: 196 node:internal/process/promises:288 triggerUncaughtException(err, true / fromPromise /); ^
[Error: SQLITE_BUSY: database is locked] { errno: 5, code: 'SQLITE_BUSY' }
Node.js v18.19.1
ps: às vezes o erro é outro: index.js node:internal/modules/cjs/loader:1137 throw err; ^
Error: Cannot find module '/home/brunolab/olx-monitor/index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15) at Module._load (node:internal/modules/cjs/loader:975:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Node.js v18.19.1