Closed pth0rn closed 5 years ago
After switching to sqlite, and changing line 73 in setup.js from res.render('main/setup', {
to tores.render('setup', {
to fix the view not found error. Now I can't login with the account I made during the setup, I get the error Invalid authentication provider.
dev log shows this
2018-08-15T22:50:18.413Z [MASTER] error: Failed to scan or load new authentication providers: [ FAILED ] 2018-08-15T22:50:18.413Z [MASTER] error: batch insert only works with Postgresql
Pull the latest changes, it should be fixed now. Tested both MySQL and SQLite.
Note that MySQL 8 will throw an error if you're using the default caching_sha2_password. Either use MySQL 5.7 or make sure to create users using the old authentication method for now. This is a bug in the mysql2 connector.
Thanks, Got it up and running still using sqlite. I'm not able to create the home page though
GraphQL error: Cannot read property 'add' of undefined
Edit: due to WIKI.queue.job.renderPage
in models/pages.js line 137 not being defined.
Is this just something that's unfinished in the alphas current state?
Pulled the current dev branch and I'm not able to run the server, nor able to run it in dev mode -- receive SQL error (see bottom of post).
Edit:
Made an sqlite3 db file and switched to that, and that runs, however I get this now
config.yml
Running server
Starting in dev mode
Error
migration failed with error: create table
assets
(id
int unsigned not null auto_increment primary key,filename
varchar(255) not null,basename
varchar(255) not null,ext
varchar(255) not null,kind
enum('binary', 'image') not null default 'binary',mime
varchar(255) not null default 'application/octet-stream',fileSize
int unsigned comment 'In kilobytes',metadata
undefined,createdAt
varchar(255) not null,updatedAt
varchar(255) not null) - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'undefined,createdAt
varchar(255) not null,updatedAt
varchar(255) not null)' at line 1