Closed lexcorp closed 1 year ago
Attach logs, please
Same. For me
[D] [2023-05-16T13:32:31.090Z] [UserPreferences] Preferences file detected, trying to read
[D] [2023-05-16T13:32:31.092Z] [UserPreferences] Preferences file successfully read
Hello / cattr@3.0.0-RC6 in prod mode
[D] [2023-05-16T13:32:32.027Z] [Database] Migrations applied successfully
[D] [2023-05-16T13:32:32.028Z] [Database] Database successfully initialized
[D] [2023-05-16T13:32:32.039Z] [Router] Starting routes load
[D] [2023-05-16T13:32:32.092Z] [Router:Authentication] Loaded
[D] [2023-05-16T13:32:32.118Z] [Router:Miscellaneous] Loaded
[D] [2023-05-16T13:32:32.119Z] [Router:Projects] Loaded
[D] [2023-05-16T13:32:32.121Z] [Router:Tracking] Loaded
[D] [2023-05-16T13:32:32.122Z] [Router:Tasks] Loaded
[D] [2023-05-16T13:32:32.123Z] [Router:Time] Loaded
[D] [2023-05-16T13:32:32.124Z] [Router:Trasnlation] Loaded
[D] [2023-05-16T13:32:32.124Z] [Router:UserPreferences] Loaded
[D] [2023-05-16T13:32:32.125Z] [Router:Offline] Loaded
[D] [2023-05-16T13:32:32.126Z] [Router:Intervals] Loaded
[D] [2023-05-16T13:32:32.298Z] [Screen-Notifier] Loaded
[D] [2023-05-16T13:32:32.304Z] [Tray] Loaded
[D] [2023-05-16T13:32:32.306Z] [PowerManager] Loaded
[21546:0516/191733.500730:ERROR:nss_util.cc(286)] After loading Root Certs, loaded==false: NSS error code: -8018
[E] [2023-05-16T13:32:33.716Z] [Update] (500) Error occured during update manifest retrival: Request failed with status code 526
<BEGIN STACK TRACE>
Error: Request failed with status code 526
at createError (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/axios/lib/core/createError.js:16:15)
at settle (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/axios/lib/adapters/http.js:269:11)
at IncomingMessage.emit (events.js:388:22)
at IncomingMessage.emit (domain.js:470:12)
at endReadableNT (internal/streams/readable.js:1336:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
<END STACK TRACE>
[W] [2023-05-16T13:32:33.750Z] [AuthenticationProvider] Cannot find the way to fetch token automatically
[E] [2023-05-16T13:33:12.064Z] [AuthenticationProvider] (500) Request error occured during authentication: Cannot read properties of undefined (reading 'id')
<BEGIN STACK TRACE>
TypeError: Cannot read properties of undefined (reading 'id')
at userFormatter (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/@cattr/node/src/authentication.js:93:30)
at Object.ops.login (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/@cattr/node/src/authentication.js:161:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Object.module.exports.authenticate (/tmp/.mount_Cattr.nm99kr/resources/app.asar/app/src/base/authentication.js:138:30)
at async Object.module.exports.userAuthentication (/tmp/.mount_Cattr.nm99kr/resources/app.asar/app/src/base/authentication.js:384:25)
at async Object.auth/authenticate (/tmp/.mount_Cattr.nm99kr/resources/app.asar/app/src/routes/authentication.js:56:32)
at async IpcMainImpl.<anonymous> (/tmp/.mount_Cattr.nm99kr/resources/app.asar/node_modules/@amazingcat/electron-ipc-router/lib/ipc-router.js:106:7)
<END STACK TRACE>
But I am able to login in the web app.
Same here:
[D] [2023-05-16T14:21:09.903Z] [Database] Database successfully initialized [D] [2023-05-16T14:21:09.905Z] [Router] Starting routes load [D] [2023-05-16T14:21:10.073Z] [Router:Authentication] Loaded [D] [2023-05-16T14:21:10.103Z] [Router:Miscellaneous] Loaded [D] [2023-05-16T14:21:10.104Z] [Router:Projects] Loaded [D] [2023-05-16T14:21:10.105Z] [Router:Tracking] Loaded [D] [2023-05-16T14:21:10.106Z] [Router:Tasks] Loaded [D] [2023-05-16T14:21:10.107Z] [Router:Time] Loaded [D] [2023-05-16T14:21:10.108Z] [Router:Trasnlation] Loaded [D] [2023-05-16T14:21:10.108Z] [Router:UserPreferences] Loaded [D] [2023-05-16T14:21:10.108Z] [Router:Offline] Loaded [D] [2023-05-16T14:21:10.109Z] [Router:Intervals] Loaded [D] [2023-05-16T14:21:10.205Z] [Screen-Notifier] Loaded [D] [2023-05-16T14:21:10.544Z] [Tray] Loaded [D] [2023-05-16T14:21:10.545Z] [PowerManager] Loaded [D] [2023-05-16T14:21:10.547Z] [LogRotate] Removing 1 log files [D] [2023-05-16T14:21:10.561Z] [LogRotate] Removed [E] [2023-05-16T14:21:11.650Z] [Update] (500) Error occured during update manifest retrival: Request failed with status code 526
Yes. This error looks like related to Cattr core and Cattr client mismatch.
Yes. This error looks like related to Cattr core and Cattr client mismatch.
@aVyarvelsky I compile and build cattr desktop application version 3.0.0-RC10 and if it allows me to enter without errors.
Hi @rajeshisnepali , use yarn instead of npm. for all commands.
example: yarn install instead npm install
In package.json file, change "version": "dev", to "version": "3.0.0-RC10",
Can't build Linux App
➜ desktop-application git:(main) ✗ yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ cattr@workspace:. doesn't provide @vue/compiler-sfc (p87d54), requested by vue-loader
➤ YN0002: │ cattr@workspace:. doesn't provide css-loader (p9522d), requested by vue-loader
➤ YN0002: │ cattr@workspace:. doesn't provide webpack (peaef0), requested by mini-css-extract-plugin
➤ YN0002: │ cattr@workspace:. doesn't provide webpack (p2ad46), requested by sass-loader
➤ YN0002: │ cattr@workspace:. doesn't provide webpack (p5eac0), requested by vue-loader
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 262ms
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 556ms
➤ YN0000: ┌ Link step
➤ YN0007: │ electron@npm:14.2.9 must be built because it never has been before or the last one failed
➤ YN0007: │ keytar@npm:7.9.0 must be built because it never has been before or the last one failed
➤ YN0007: │ sqlite3@npm:5.1.1 [b6777] must be built because it never has been before or the last one failed
➤ YN0007: │ @sentry/cli@npm:1.74.4 must be built because it never has been before or the last one failed
➤ YN0007: │ ref-napi@npm:3.0.3 must be built because it never has been before or the last one failed
➤ YN0007: │ lzma-native@npm:8.0.6 must be built because it never has been before or the last one failed
➤ YN0007: │ iconv@npm:2.3.5 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
➤ YN0007: │ cattr@workspace:. must be built because it never has been before or the last one failed
➤ YN0007: │ ffi-napi@npm:4.0.3 must be built because it never has been before or the last one failed
➤ YN0009: │ ffi-napi@npm:4.0.3 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-12d5ee90/build.log)
➤ YN0000: └ Completed in 1m 37s
➤ YN0000: Done with warnings in 1m 38s
➜ desktop-application git:(main) ✗ yarn package-linux
• electron-builder version=23.6.0 os=5.15.0-71-generic
• loaded configuration file=package.json ("build" field)
• electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies
To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
• writing effective config file=target/builder-effective-config.yaml
• rebuilding native dependencies dependencies=ffi-napi@4.0.3, iconv@2.3.5, keytar@7.9.0, ref-napi@3.0.3, sqlite3@5.1.1 platform=linux arch=x64
• install prebuilt binary name=keytar version=7.9.0 platform=linux arch=x64 napi=
• rebuilding native dependency name=ffi-napi version=4.0.3
• rebuilding native dependency name=iconv version=2.3.5
• rebuilding native dependency name=sqlite3 version=5.1.1
• rebuilding native dependency name=ref-napi version=3.0.3
• cannot build optional native dependency name=ffi-napi
version=4.0.3
cause=exit status 1
out=Watching /tmp/desktop-application/node_modules/ffi-napi and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
errorOut=/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127
if (minimatch(file, pattern)) {
^
TypeError: minimatch is not a function
at /home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127:13
at Array.forEach (<anonymous>)
at parseFolder (/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:113:9)
at Object.<anonymous> (/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:63:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
command=/home/rajesh/.fnm/node-versions/v16.15.1/installation/bin/node /home/rajesh/.fnm/node-versions/v16.15.1/installation/lib/node_modules/npm/bin/npx-cli.js run install
workingDir=/tmp/desktop-application/node_modules/ffi-napi
⨯ cannot execute cause=exit status 1
out=Watching /tmp/desktop-application/node_modules/sqlite3 and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
errorOut=/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127
if (minimatch(file, pattern)) {
^
TypeError: minimatch is not a function
at /home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127:13
at Array.forEach (<anonymous>)
at parseFolder (/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:113:9)
at Object.<anonymous> (/home/rajesh/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:63:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
command=/home/rajesh/.fnm/node-versions/v16.15.1/installation/bin/node /home/rajesh/.fnm/node-versions/v16.15.1/installation/lib/node_modules/npm/bin/npx-cli.js run install
workingDir=/tmp/desktop-application/node_modules/sqlite3
@rajeshisnepali will close your issue (cannot close haha...),
We currently don't have working CD for cattr.app website.
Here is the latest version of the app v3.0.0-RC10 at out GitLab:
Linux: https://git.amazingcat.net/cattr/desktop/desktop-application/-/jobs/13523/artifacts/browse/target/
Mac: https://git.amazingcat.net/cattr/desktop/desktop-application/-/jobs/13524/artifacts/browse/target/
Windows: https://git.amazingcat.net/cattr/desktop/desktop-application/-/jobs/13556/artifacts/browse/target/
As for your build errors it can be anything, node-gyp version, nodejs version, OS libraries, python version idk...
Try to use nodejs 14.19.0, maybe it will help.
@DanilShapilov
[D] [2023-08-03T13:06:06.726Z] [PowerManager] Prevent display sleep while tracking!
[D] [2023-08-03T13:06:06.727Z] [TaskTracker] Started task "Test Task" with 120s capture interval
[D] [2023-08-03T13:06:06.904Z] [HeartbeatMonitor] Heartbeat activated! Heartbeat interval is 30s
[D] [2023-08-03T13:08:06.841Z] [TaskTracker] Interval captured by timer request
[D] [2023-08-03T13:08:06.845Z] [TaskTracker] Capturing interval: 2023-08-03T13:06:06.710Z ~ 2023-08-03T13:08:06.841Z (duration = 120)
[D] [2023-08-03T13:08:06.855Z] [Controller:Time] Created a new track for task (fa0d2aae-0312-416f-9bc0-4f4ef4246542): 120
[D] [2023-08-03T13:08:06.855Z] [TaskTracker] Track time is updated (+120 ticks)
[D] [2023-08-03T13:08:07.219Z] [Screenshot] Captured in 364ms
[D] [2023-08-03T13:08:07.219Z] [TaskTracker] Screenshot captured
[W] [2023-08-03T13:08:07.601Z] [Controller:Time-Intervals] Backing up time interval request
[E] [2023-08-03T13:08:07.606Z] [Controller:Time-Intervals] (API404) Error during interval & screenshot push: Error: Unknown message
<BEGIN STACK TRACE>
at Object.module.exports.pushTimeInterval (/tmp/.mount_Cattr.XgUuMJ/resources/app.asar/app/src/controller/time-intervals.js:227:9)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async TaskTracker.captureCurrentInterval (/tmp/.mount_Cattr.XgUuMJ/resources/app.asar/app/src/base/task-tracker.js:631:32)
<END STACK TRACE>
[E] [2023-08-03T13:08:07.607Z] [TaskTracker] (API404) Error occured during the interval submit: Error: Unknown message
<BEGIN STACK TRACE>
at TaskTracker.captureCurrentInterval (/tmp/.mount_Cattr.XgUuMJ/resources/app.asar/app/src/base/task-tracker.js:684:11)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
@rajesh-neputer please use latest version. https://github.com/cattr-app/server-application/issues/111#issuecomment-1630575155
Still same error @DanilShapilov 😞
I tried https://git.amazingcat.net/cattr/desktop/desktop-application/-/jobs/13523/artifacts/browse/target/
@rajeshisnepali I'm talking about backend.
Server = Last version Client = Cattr 3.0.0-RC6
When try login in desktop application I get this messages:
Login failed Invalid email or password
In web application I login successfully.