GithubHelp home page GithubHelp logo

Remote database about lumber HOT 21 CLOSED

forestadmin avatar forestadmin commented on July 19, 2024 2
Remote database

from lumber.

Comments (21)

 avatar commented on July 19, 2024 1

@SeyZ @vladimir-yuldashev

Ok i think i got it!
there is a ":" char in my DB password and it's conflicting with the DATABASE_URL format in the .env
DATABASE_URL=mysql://root:password@localhost:3306/dbname

BTW lumber -V keep returning 1.0.1

Thank you guys for your help!

from lumber.

eibrahim avatar eibrahim commented on July 19, 2024

I have the same issue trying to connect to remote database on heroku

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @vladimir-yuldashev and @eibrahim !

Thanks for report! The version 1.0.3 fixes the issue and is available :) Can you upgrade the version of your lumber and try again with the option --ssl?

$ lumber generate --ssl

To upgrade your lumber-cli package:
$ npm update -g lumber-cli

Feel free to reopen the issue if you still have the problem.

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@SeyZ

Now I get:

(node:11416) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'dbName' of undefined (node:11416) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

from lumber.

eibrahim avatar eibrahim commented on July 19, 2024

worked for me once i added the --ssl flag. thanks.

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@eibrahim It did not work for me.

from lumber.

 avatar commented on July 19, 2024

This is not working with remote DB for me neither, works only localhost.

error: 💀 Ouch, cannot connect to the database 💀

from lumber.

 avatar commented on July 19, 2024

@SeyZ current version is 1.0.1, can't find version 1.0.3, how did u get it?

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

Hey @rosatof here on NPM: https://www.npmjs.com/package/lumber-cli
You can upgrade using [sudo] npm update -g lumber-cli

from lumber.

 avatar commented on July 19, 2024

Hey @SeyZ ,
Thank you for your answer.
I did run npm install/update -g lumber-cli which installed [email protected].
But lumber -V keep returning 1.0.1 andlumber generate --ssl leads to cannot connect DB message.
My Credentials are valid since they are used by an other framework.

Any leads ?

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@rosatof lumber -V seems having an old information. It should be 1.0.4

from lumber.

 avatar commented on July 19, 2024

Any idea about the DB connection issue ?

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@rosatof Can you show you console output with hided passwords?

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@rosatof Can you try to upgrade our lumber-cli with this command:
npm install -g lumber-cli@latest ?

Then lumber --version should respond with 1.0.4. Then, I think your issue will be fixed.

from lumber.

 avatar commented on July 19, 2024

I tried with different version of node, same result...

▶ npm install -g lumber-cli@latest
/Users/rosatof/.nvm/versions/node/v6.2.0/bin/lumber -> /Users/rosatof/.nvm/versions/node/v6.2.0/lib/node_modules/lumber-cli/index.js
/Users/rosatof/.nvm/versions/node/v6.2.0/lib
└── [email protected]

~
▶ lumber -V
1.0.1

~
▶ lumber --version
1.0.1

Mac OSX with NVM, NPM 3.10.2, node 6.2.0 also tried node 4.2

from lumber.

ismealdi avatar ismealdi commented on July 19, 2024

I have same problem and I'm already update.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@aldieemaulana do you have : char in your user database or password database?

from lumber.

ismealdi avatar ismealdi commented on July 19, 2024

@SeyZ No,

``
sudo lumber generate --ssl
[sudo] password for aldieemaulana:
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? lumberfirst
? 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: lumberfirst
? What's your email address? [email protected]
? Choose a password: *********
error: 💀 Ouch, cannot connect to the database 💀
``

from lumber.

vyuldashev avatar vyuldashev commented on July 19, 2024

@aldieemaulana try 127.0.0.1 instead of localhost

from lumber.

ismealdi avatar ismealdi commented on July 19, 2024

@vladimir-yuldashev It still same, still not work with same error.

from lumber.

SeyZ avatar SeyZ commented on July 19, 2024

@aldieemaulana You are using --ssl option but you specify localhost as the database hostname. Are you sure?

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.