node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'next'
Require stack:
- /home/cons8330/servicosonline.consultarti.tec.br/server.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home/cons8330/servicosonline.consultarti.tec.br/server.js:3:14)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/cons8330/servicosonline.consultarti.tec.br/server.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.0
node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'next'
Require stack:
- /home/cons8330/servicosonline.consultarti.tec.br/server.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home/cons8330/servicosonline.consultarti.tec.br/server.js:3:14)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/cons8330/servicosonline.consultarti.tec.br/server.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.0
Unhandled Rejection: Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
    at ignore-listed frames
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
⨯ Error: Unknown column 'agent_last_seen' in 'SELECT'
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:249976)
    at <unknown> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:258117)
    at s.onResult (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:246008)
    at s.execute (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:379579)
    at n.handlePacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:243005)
    at n.onPacket (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236842)
    at n.executeStart (.next/server/chunks/[root-of-the-server]__03dc14s._.js:11:342264)
    at Socket.<anonymous> (.next/server/chunks/[root-of-the-server]__03dc14s._.js:15:236988) {
  code: 'ER_BAD_FIELD_ERROR',
  errno: 1054,
  sql: 'SELECT id, name, agent_token, agent_last_seen, agent_version, agent_status FROM tenants WHERE id = ?',
  sqlState: '42S22',
  sqlMessage: "Unknown column 'agent_last_seen' in 'SELECT'"
}
