Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro ao executar. #30

Open
brunombs opened this issue Nov 7, 2024 · 0 comments
Open

Erro ao executar. #30

brunombs opened this issue Nov 7, 2024 · 0 comments

Comments

@brunombs
Copy link

brunombs commented Nov 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant