Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

lumber generate fail #2

Closed
on99 opened this issue Nov 14, 2016 · 18 comments
Closed

lumber generate fail #2

on99 opened this issue Nov 14, 2016 · 18 comments

Comments

@on99
Copy link

on99 commented Nov 14, 2016

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: adx
(node:2007) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'dbName' of undefined

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

Hey @on99 - Do you have the full stacktrace?

@on99
Copy link
Author

on99 commented Nov 14, 2016

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

@on99
Copy link
Author

on99 commented Nov 14, 2016

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.

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

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 :)

@nicgutierrez
Copy link

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

@on99
Copy link
Author

on99 commented Nov 14, 2016

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

@on99
Copy link
Author

on99 commented Nov 14, 2016

 ✘  ~  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?  random@gmail.com
? Choose a password:  *********
(node:4449) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'dbName' of undefined

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

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

@vyuldashev
Copy link

+1, macOS Sierra

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

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 :)

@vyuldashev
Copy link

@SeyZ

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

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

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

@vyuldashev
Copy link

@SeyZ vladimir@fondbot.com

@SeyZ
Copy link
Member

SeyZ commented Nov 14, 2016

@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 :)

@SeyZ SeyZ closed this as completed Nov 14, 2016
@on99
Copy link
Author

on99 commented Nov 15, 2016

@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?  nanohugh@gmail.com
? 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. 🤕

@nicgutierrez
Copy link

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?

@pojda
Copy link

pojda commented Nov 15, 2016

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?)

@SeyZ
Copy link
Member

SeyZ commented Nov 15, 2016

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

DrRaider added a commit that referenced this issue Nov 27, 2019
DrRaider added a commit that referenced this issue Nov 28, 2019
DrRaider added a commit that referenced this issue Dec 3, 2019
DrRaider added a commit that referenced this issue Dec 4, 2019
DrRaider added a commit that referenced this issue Dec 4, 2019
DrRaider added a commit that referenced this issue Dec 4, 2019
DrRaider added a commit that referenced this issue Dec 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants