Giter VIP home page Giter VIP logo

Comments (6)

hach-que avatar hach-que commented on September 27, 2024

localhost inside the container will be pointing to the container. You need
to give the Docker gateway address I think.

On Fri., 1 Jul. 2016, 9:15 pm Victor Noël, [email protected] wrote:

Hi,

I tried to run phabricator with mysql setup on the host, so I used the
following options:

--env MYSQL_HOST=localhost \
--env MYSQL_USER=phab \
--env MYSQL_PASS=phab \
--env MYSQL_PORT=3306 \

But when the start script run, I get the following error:

  • mysqlcheck --host=localhost --port=3306 --user=phab --password=phab --databases phabricator_search
    /
    mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2 "No such file or directory") when trying to connect

I guess this should not happen, right?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#36, or mute the
thread
https://github.com/notifications/unsubscribe/AAez-pHSPRUaOpld0ugM_cijhGhllM9Pks5qRPa_gaJpZM4JDDVi
.

from phabricator.

victornoel avatar victornoel commented on September 27, 2024

Ha! Sorry and thanks :)

from phabricator.

strahe avatar strahe commented on September 27, 2024

@hach-que Hi, i use the docker-compose, and got the same error.I did not change anything except PHABRICATOR_HOST, any ideas?

from phabricator.

hach-que avatar hach-que commented on September 27, 2024

What's the content of the startup log? What address is it trying to connect to?

from phabricator.

strahe avatar strahe commented on September 27, 2024

@hach-que
I configured the PHABRICATOR_HOST to 192.168.1.8

+ sudo -u git ./bin/config set notification.servers '[{"type": "client","host": "192.168.1.8","port": 80,"protocol": "http","path": "/ws/"},{"type": "admin","host": "127.0.0.1","port": 22281,"protocol": "http"}]'
Set 'notification.servers' in local configuration.
+ unset APHLICT_PROTOCOL
+ unset APHLICT_PORT
+ popd
+ '[' '' == true ']'
+ '[' '' '!=' '' ']'
+ mysqlcheck --host= --port= --user=phabricator --password=phabricator --databases phabricator_search
/
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2 "No such file or directory") when trying to connect
+ true
+ /srv/phabricator/phabricator/bin/storage upgrade --force
MySQL Credentials Not Configured
Unable to connect to MySQL using the configured credentials. You must
configure standard credentials before you can upgrade storage. Run these
commands to set up credentials:
  phabricator/ $ ./bin/config set mysql.host __host__
  phabricator/ $ ./bin/config set mysql.user __username__
  phabricator/ $ ./bin/config set mysql.pass __password__
These standard credentials are separate from any administrative credentials
provided to this command with __--user__ or __--password__, and must be
configured correctly before you can proceed.
Raw MySQL Error: Attempt to connect to phabricator@localhost failed with
error #2002: No such file or directory.
[ FAILED ] /etc/init.simple/10-boot-conf

from phabricator.

hach-que avatar hach-que commented on September 27, 2024

It looks like this might be the issue:

docker/compose#2332 (comment)

We don't use hostnames yet for connecting to a linked MySQL container, so if you're running Docker 1.10 or later linking probably won't work for you.

I'll see if I can get some time to look at this next week unless someone wants to send through a PR before then.

from phabricator.

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.