GithubHelp home page GithubHelp logo

Comments (32)

natecox avatar natecox commented on July 19, 2024 1

I'm having the same issue.

image

Nothing has been written to the database specified.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024 1

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.

SeyZ avatar SeyZ commented on July 19, 2024 1

The Lumber version 1.3.0 supports the option to specify a database schema. I think it fixes this issue ๐Ÿ‘

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @russelldc - Can you verify if your database contains something in it?

from lumber.

russelldc avatar russelldc commented on July 19, 2024

@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.

SeyZ avatar SeyZ commented on July 19, 2024

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.

russelldc avatar russelldc commented on July 19, 2024

If more details would help, I've got 4 schemas (besides the pg_catalog and information_schema).

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@russelldc do you have a dump of your database with sample data (not your production sensitive data of course) ?

from lumber.

russelldc avatar russelldc commented on July 19, 2024

@SeyZ Sure I'll try to get something together for you and email? it over

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@russelldc [email protected] thank you!!

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

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.

nirajmchauhan avatar nirajmchauhan commented on July 19, 2024

I am having the same issue, but its for MySQL. I am using Mac Sierra

from lumber.

liambowers avatar liambowers commented on July 19, 2024

I'm also having the same issue with MySQL (Mac Sierra too).

from lumber.

 avatar commented on July 19, 2024

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.

gorgekara avatar gorgekara commented on July 19, 2024

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.

luminarious avatar luminarious commented on July 19, 2024

I'd like to report similar error.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

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.

natecox avatar natecox commented on July 19, 2024

@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.

mishbah avatar mishbah commented on July 19, 2024

I'm using Ubuntu gnome 14.04, and this is the result
screenshot from 2016-11-30 00 24 50

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@mishbah Hey, do you have a schema and data in your database?

from lumber.

mishbah avatar mishbah commented on July 19, 2024

Before I run lumber generate, I create lumber db in MySql
After run lumber generate, lumber db empty (no table and data)

from lumber.

tvarsis avatar tvarsis commented on July 19, 2024

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.

tvarsis avatar tvarsis commented on July 19, 2024

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.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @tvarsis wow thanks for help!!!

from lumber.

huytr4n avatar huytr4n commented on July 19, 2024

Is this fixed? I generate my app but nothing in it.

from lumber.

russelldc avatar russelldc commented on July 19, 2024

Any update on this?

from lumber.

felipemarques8 avatar felipemarques8 commented on July 19, 2024
โžœ  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.

tejasrsuthar avatar tejasrsuthar commented on July 19, 2024

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.

hamelsveld avatar hamelsveld commented on July 19, 2024

I've the same issue :( it does not fill the database.

from lumber.

tejasrsuthar avatar tejasrsuthar commented on July 19, 2024

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.

hamelsveld avatar hamelsveld commented on July 19, 2024

from lumber.

tejasrsuthar avatar tejasrsuthar commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.