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

Can't register or log-in #202

Open
unfa opened this issue May 27, 2021 · 4 comments
Open

Can't register or log-in #202

unfa opened this issue May 27, 2021 · 4 comments

Comments

@unfa
Copy link

unfa commented May 27, 2021

Expected Behavior

Successful account registration

Actual Behavior

After attempting registration (assuming all data entered is correct (including beta invite code) or log-in, the page does nothing for a good while and then throws an "unknown error".

image

Possible Solution

Maybe it's something to do with the database?
This is console output when I attempt a registration:

$ node spacedeck.js
[2021-05-27T21:00:57.798Z] Booting Spacedeck Open… (environment: development)
[2021-05-27T21:00:58.284Z] [redis-mock] websockets subscribed to 3 topics.
[2021-05-27T21:00:58.286Z] Spacedeck Open listening at http://:::9666
[2021-05-27T21:00:58.294Z] createBucket null undefined
[2021-05-27T21:00:58.298Z] (node:192892) UnhandledPromiseRejectionWarning: SequelizeConnectionError: SQLITE_CANTOPEN: unable to open database file
    at Database.connections.(anonymous function).lib.Database.err (/data/Applications/spacedeck-open/node_modules/sequelize/lib/dialects/sqlite/connection-manager.js:66:63)
[2021-05-27T21:00:58.298Z] (node:192892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
[2021-05-27T21:00:58.298Z] (node:192892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[2021-05-27T21:04:00.046Z] Executing (default): SELECT `_id`, `email`, `password_hash`, `nickname`, `avatar_original_uri`, `avatar_thumb_uri`, `confirmation_token`, `password_reset_token`, `api_token`, `home_folder_id`, `prefs_language`, `prefs_email_notifications`, `prefs_email_digest`, `created_at`, `updated_at`, `createdAt`, `updatedAt` FROM `users` AS `user` WHERE `user`.`email` = 'unfa00@[redacted]';
POST /api/users - - ms - -

Steps to Reproduce the Problem

  1. Follow installation instructions and start SpaceDeck with NodeJS
  2. Visit localhost:9666, input data and click "Register"
  3. See nothing happening for some time, then an "unknown error"

Specifications

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Manajro Linux
  • Node version: 10.24 lts-dubnium
  • Database engine (e.g., SQLite): sqlite 3.35.5
@winterhazelly
Copy link

I had this issue too and looked around for what issues with sequelize might cause this; creating the database folder seems to fix it, it needs the folder to put the database in.

@1337cookie
Copy link
Contributor

This is also present on Windows, creating a database directory in the root fixes the issue.

@rds13
Copy link
Contributor

rds13 commented Jul 6, 2021

How would like this problem of path creation be handled ?

@1337cookie
Copy link
Contributor

How would like this problem of path creation be handled ?

This would solve it --> #206

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

4 participants