Comments (32)
I'm having the same issue.
Nothing has been written to the database specified.
from lumber.
Hey @tejasrsuthar this is maintained sorry for the delay :)
The problem is that sequelize (the ORM we use after generating the app using Lumber) does not have the support to specify the schema to use to analyze all the tables of a database. Let me schedule a fix for them and I think we will use our fork because sequelize is verryyyyyy slow to ship a new version.
Thanks!
from lumber.
The Lumber version 1.3.0 supports the option to specify a database schema. I think it fixes this issue ๐
from lumber.
Hey @russelldc - Can you verify if your database contains something in it?
from lumber.
@SeyZ Definitely, and I'm using postgres 9.5.4.2. Would there be an error of some kind if the auth was wrong? Although, I've confirmed I'm using the right username/password.
from lumber.
Your credentials are correct, otherwise you'll see something like "Ouch, cannot connect to the database". It's definitively a bug, I'm trying to reproduce it.
from lumber.
If more details would help, I've got 4 schemas (besides the pg_catalog and information_schema).
from lumber.
@russelldc do you have a dump of your database with sample data (not your production sensitive data of course) ?
from lumber.
@SeyZ Sure I'll try to get something together for you and email? it over
from lumber.
@russelldc [email protected] thank you!!
from lumber.
Hey @russelldc Ok, I've understood your issue. It's because your postgresql database contains different schema. It's a bug, let me fix this :)
from lumber.
I am having the same issue, but its for MySQL. I am using Mac Sierra
from lumber.
I'm also having the same issue with MySQL (Mac Sierra too).
from lumber.
I'm also having issue with MySQL, Mac Sierra. Nothing getting generated in DB and file is relatively empty. Just a /etc file and node_modules file
from lumber.
Same happens to me as well - I get empty /etc and /node_modules folders in the project folder. Also i don't have anything written in the database (mysql). No errors are thrown in the process.
Tested with different database names, types and project names but still get the same result.
from lumber.
I'd like to report similar error.
from lumber.
Hey @natecox do you have a sample database (even empty) to test on my side to fix this issue? It would be awesome!
from lumber.
@SeyZ I don't have anything public facing that you could connect to right now. Let me know how I could assist you with this and I'm glad to help.
from lumber.
I'm using Ubuntu gnome 14.04, and this is the result
from lumber.
@mishbah Hey, do you have a schema and data in your database?
from lumber.
Before I run lumber generate
, I create lumber
db in MySql
After run lumber generate
, lumber db empty (no table and data)
from lumber.
Im also getting this error now on Windows 10 when trying out the latest build that was suppose to fix the Win 10 problems. It connects correctly to the db and then it logs out this error:
cd xource && npm install...
npm ERR! addLocal Could not install C:\Users\Administrator\Desktop\test\API\Lumber
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "--prefix=testing" "--progress=true"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code EISDIR
npm ERR! errno -4068
npm ERR! syscall read
npm ERR! eisdir EISDIR: illegal operation on a directory, read
npm ERR! eisdir This is most likely not a problem with npm itself
npm ERR! eisdir and is related to npm not being able to find a package.json in
npm ERR! eisdir a package you are trying to install.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\Desktop\test\API\Lumber\npm-debug.log
๏ฟฝ Oops, NPM installation failed. Please, try it manually to have more info ๏ฟฝ
The project folder that is created does not contain a project.json so it can't run the npm install command on an empty folder (except and other empty folder called "etc").
from lumber.
Ok, so I found the problem. The issue occurs when your schema is not named "public". You should probably add a schema property in the cli steps to solve this issue.
from lumber.
Hey @tvarsis wow thanks for help!!!
from lumber.
Is this fixed? I generate my app but nothing in it.
from lumber.
Any update on this?
from lumber.
โ desktop sudo lumber generate
Password:
โน๏ธ Enter your database connection details and then your admin interface will be automatically generated.
โน๏ธ Your database credentials are safe. They are only stored in the Lumber generated microservice.
? What's the database type? mysql
? What's the database name? amigo
? What's the database hostname? localhost
? What's the database port? 3306
? What's the database user? root
? What's the database password? [optional] ****
? Choose a project name: sis_amigo
? What's your email address? [email protected]
? Choose a password: ******
๐ Oops, your database is empty. Please, create some tables before running Lumber generate.๐
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| amigo |
| integrity |
| mysql |
| performance_schema |
| sys |
+--------------------+
6 rows in set (0.00 sec)
from lumber.
Facing same issue of
Oops, your database is empty. Please, create some tables before running Lumber generate.๐
I believe there's no instruction of database generation or something.
from lumber.
I've the same issue :( it does not fill the database.
from lumber.
Dear Author, I would kindly request,
Its always good to have information on main README.md file, if the repository is not maintained or not getting time to respond to issues.
This will help other developers save time installing and finding solution for problems.
from lumber.
from lumber.
Dear @SeyZ,
Thanks bro, no problem at all. Thtat's great!
I'll definitely wait for this and keep up the awesome work.
from lumber.
Related Issues (20)
- test-panel docker-compose app fails to start with a sequelize exception
- All of the feature links are broken(not found) on your github homepage HOT 1
- Lumber generate error: MongoError: value too large to reduce
- Extending rich text editor HOT 1
- There is no images inside https://docs.forestadmin.com/documentation/reference-guide/models HOT 1
- PostgreSQL, Generate a new backend application -> Error HOT 3
- DATABASE_URL hard-coded in docker-compose.yml HOT 1
- view codes does not work HOT 2
- Stuck Connection to database HOT 7
- Lumber not allowing pass-through of dialectOptions for Sequelize HOT 13
- (node:89175) UnhandledPromiseRejectionWarning: SequelizeAccessDeniedError: Access denied for user 'samplebloguser'@'localhost' (using password: YES) at ConnectionManager.connect HOT 1
- CRUD on mongoose dataBase with deepObject display "[Object, Object]" HOT 2
- Are there any plans to use typescript for Lumber, or are there any options there HOT 4
- Lumber generate fails with "Your database looks empty! Please create some collections before running the command."
- The automated release is failing ๐จ
- Using GraphQL API as datasource
- Fix audit vulnerabilities for lodash and handlebars HOT 2
- Consider adding the Z SELinux label to the docker installation script
- throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
- Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumber.