GithubHelp home page GithubHelp logo

lumber generate fail about lumber HOT 18 CLOSED

forestadmin avatar forestadmin commented on July 19, 2024
lumber generate fail

from lumber.

Comments (18)

SeyZ avatar SeyZ commented on July 19, 2024

Hey @on99 - Do you have the full stacktrace?

from lumber.

on99 avatar on99 commented on July 19, 2024

@SeyZ Sorry I even do not have a forest admin app account, is it possible to use lumber without that?

from lumber.

on99 avatar on99 commented on July 19, 2024

What I want is to create an admin panel for database management :-) Seems like lumber is doing exactly the same thing, I did not go through the document yet.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

When you run lumber generate - the tool asks you to fill your database details and an email/password for the Forest registration. You don't need to have a Forest account before running the Lumber generate :)

from lumber.

nicgutierrez avatar nicgutierrez commented on July 19, 2024

Hey @on99, @SeyZ: I'm getting the exact same error

from lumber.

on99 avatar on99 commented on July 19, 2024

@SeyZ Yep I enter email/password, but I got UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'dbName' of undefined error. How can I get full stack trace for you?

from lumber.

on99 avatar on99 commented on July 19, 2024
 ✘  ~  lumber generate
Enter your database connection details and then your admin interface will be automatically generated.

? What's the database type?  mysql
? What's the database name? adx
? 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:  admin
? What's your email address?  [email protected]
? Choose a password:  *********
(node:4449) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'dbName' of undefined

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @on99 and @nicgutierrez
What's your OS?

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

+1, macOS Sierra

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @on99 @vladimir-yuldashev @nicgutierrez

I've reproduced your issue and it's fixed in the version 1.0.4. Can you upgrade lumber-cli and try again?

Let me know :)

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@SeyZ

It works now! But how can I delete unused projects now? I have 12 of them :)

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Oops :D :D :D @vladimir-yuldashev Can you tell me the email used or the project names?

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@SeyZ [email protected]

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@vladimir-yuldashev I deleted your old projects. I think you're all good now :)

Guys, feel free to reopen the issue if you still have the problem :)

from lumber.

on99 avatar on99 commented on July 19, 2024

@SeyZ I am using macOS Sierra.

Here is the output after I upgrade to the latest version:

Enter your database connection details and then your admin interface will be automatically generated.

? What's the database type?  mysql
? What's the database name? adx
? 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:  admin
? What's your email address?  [email protected]
? Choose a password:  *********
error: 💀  Ouch, cannot create your account 💀

Should I enter a new email account every time I need to create a project? I deleted ~/.lumberrc before executing lumber generate. 🤕

from lumber.

nicgutierrez avatar nicgutierrez commented on July 19, 2024

hey @on99, @SeyZ: I was getting the same error but then I tried with a different email address and it worked fine. What is the email address inserted being used for?

from lumber.

pojda avatar pojda commented on July 19, 2024

I'm trying to test here but no luck :(

$ lumber generate
Enter your database connection details and then your admin interface will be automatically generated.

? What's the database type?  mysql
? What's the database name? lumber
? 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:  lumber_test
? What's your email address?  (hidden)@gmail.com
? Choose a password:  ******
error: 💀  Ouch, cannot connect to the database 💀

I'm feeling kinda frustrated for not being able to spit some debug info here.

I can connect to my mysql locally no problem. I tried giving the root password, and not giving it (it's saved on my ~/.my.cnf).

My system:
Mac El Capitan (10.11.6)
npm v 3.10.3
lumber v 1.0.1 (I ran "npm -g upgrade", "npm -g upgrade lumber-cli" but I can't seem to get v 1.0.4, maybe this is it?)

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@on99 Ok got it. I think your admin account was in a bad state. You can see your current logged user with $ lumber user , login with $ lumber login and logout with $ lumber logout.

You don't have to remove the file manually. When the first project is well configured, you can create new ones without any problem.

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.