Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue #1

Closed
NH603 opened this issue Jan 29, 2019 · 19 comments
Closed

Build issue #1

NH603 opened this issue Jan 29, 2019 · 19 comments

Comments

@NH603
Copy link

NH603 commented Jan 29, 2019

Hello, there appears to be a build issue. Based on your knowledge of the code, would you be willing to create a docker-compose.yml/Dockerfile to help build on VM? If not, give me 24 hours to learn code and I’ll submit a PR for us. Thank you in advance for your willingness to help.

  • NH603
@amandris
Copy link
Owner

Could you provide a little more information about the build issue? I can fix it up if you need it. But you are welcome to create a Dockerfile if you prefer so.

@NH603
Copy link
Author

NH603 commented Jan 29, 2019

Thank you very much Amandris. Yes, confronting an issue when trying to run the following command to create database “bin/console doctrine:schema:update --force”. I can attach error message if helpful, but that’s why I thought perhaps containerizing with Docker to support db creation, etc would be a quick fix.

I’ll be standing by ready to help. Thanks again

@amandris
Copy link
Owner

Yes, attach error message, please. Maybe I forgot some steps on the Installation Readme.md section.

@NH603
Copy link
Author

NH603 commented Jan 29, 2019

Hi Amandris,

Yes, please find the error message copied below when entering the command to create database in the Installation Readme.md section. Please let me know if you have any recommendations? Thank you again.

"In AbstractMySQLDriver.php line 93:

An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused

In PDOConnection.php line 31:

SQLSTATE[HY000] [2002] Connection refused

In PDOConnection.php line 27:

SQLSTATE[HY000] [2002] Connection refused"

@amandris
Copy link
Owner

amandris commented Jan 29, 2019

Remember to check the database settings are correct in the parameters.yml file.

Also check the database_driver is pdo_mysql.

The database must be previously created. If you didn't create it manually, try to run php bin/console doctrine:database:create before the bin/console doctrine:schema:update --force command.

@NH603
Copy link
Author

NH603 commented Jan 29, 2019

Thank you for the quick reply Amandris. It’s very much appreciated; especially when I’m eager to test your extremely impressive app. Unfortunately, still receiving same error when trying steps above. Perhaps, it’s a dependency/extension issue and I’m missing some dependency requirements?

Thanks again for all your support.

@amandris
Copy link
Owner

I haven't tried with Mysql (only with Postgress) but it should work with any RDBMS right off the shelf. Could you attach your parameters.yml so I can take a look?

@NH603
Copy link
Author

NH603 commented Jan 30, 2019

Hello Amandris, I've tried with Postgres as well and database build still does not through with the commands above. Do you perhaps have any helpful suggestions? I'm not sure if you're familiar with docker-compose.yml? But that may be a good option for building symfony, app and database.

Thanks again, and I'll be standing by.

@amandris
Copy link
Owner

Your parameters.yml looks fine. It seems like you have some kind of connectivity problem. You should use some mysql client and try to connect to the remote DB from your computer. If it works from the client, it should also work from the symfony project. Let me know the results.

@amandris
Copy link
Owner

Maybe the problem is in the database_password: null parameter. Have you tried to set a password in your DB. Maybe the symfony orm is trying to log in with "null" as password.

@mgmerino
Copy link
Collaborator

Hello @NH603, I could wrap this as a Docker container for deploying it easily, but I would need a couple of days to sort it out. If you can wait, I'll ping you when it's ready.

@NH603
Copy link
Author

NH603 commented Jan 30, 2019 via email

@NH603
Copy link
Author

NH603 commented Jan 31, 2019 via email

@NH603
Copy link
Author

NH603 commented Feb 3, 2019 via email

@amandris
Copy link
Owner

amandris commented Feb 3, 2019

node_modules directory is created when running npm install. Do you still get the SQLSTATE[HY000] [2002] Connection refused error? if so, I think you still have a DB connection issue (not related to the project). If you get any new error message when deploying, please let me know.

@NH603
Copy link
Author

NH603 commented Feb 5, 2019

Hi Amandris,
Thank you for the reply. Good news, I was successful in getting the application to load!

However, when entering in the following command, I received a response about "No key/secret.." - see copy from command line below. Is this intended? I used the default secret you originally had shared in parameters.yml.dist.

"app@XXXXXX:/directory/app$ bin/console bot:trade
No key/secret/client_idapp@XXXXXX:
/directory/app"

Also, I had enable Binance as the first exchange. Does it take awhile for the Ticker & Differences to populate with api info?

Thanks for all the support! I'm excited to actually start using this.

@NH603
Copy link
Author

NH603 commented Feb 5, 2019

Hi Amandris,

I was successful in getting the "bin/console bot:trade" command to work, and while the "Ticker" now populates in the app, I'm receiving the following error once the command is inserted into the command line. Do you have any recommendations on how to resolve?

"app@XXXXXX:~/directory/app$ bin/console bot:trade
05/02/2019 07:29:59
bitstamp Ask:3,418.07 Bid:3,418.06
okcoin Ask:3,416.03 Bid:3,417.72
binance Ask:3,465.98 Bid:3,465.95

In ItbitService.php line 148:

Cannot use object of type stdClass as array"

Thank you in advance for your help on this!

@amandris
Copy link
Owner

amandris commented Feb 5, 2019

I close this issue and create a new one with your last message.

@amandris amandris closed this as completed Feb 5, 2019
@xazes
Copy link

xazes commented Sep 19, 2020

Hi
I have the same problem:
bin/console bot:trade result in No key/secret/client_id

I have set enable: false by bitstamp on config.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants