Comments (6)
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 connectI 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.
Ha! Sorry and thanks :)
from phabricator.
@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.
What's the content of the startup log? What address is it trying to connect to?
from phabricator.
@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.
It looks like this might be the issue:
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)
- /etc/init.simple leftovers in bake
- Docker images in new location not updated? HOT 5
- No git-http-backend HOT 4
- Container failed to restart when SSL is enabled HOT 1
- SSL is not working. Not able to run docker image. HOT 9
- cannot connet to root@mysql HOT 8
- No notifications server support HOT 1
- INFO exited: phd (exit status 0; not expected) HOT 2
- build fails due to openSUSE 42.1 repo being EOL and gone HOT 2
- Rebuild image on Docker hub HOT 1
- svn compare revisions not working HOT 1
- email address add error HOT 1
- Can't enable opcache support HOT 1
- Problem adding new users and setting up mailer HOT 3
- Question git build Phabricator by docker HOT 2
- Packages needs for SVN server open Cyrus SASL authentication HOT 1
- supervisord cannot start HOT 1
- Use PHP 7
- sshd not listening HOT 4
- port 62443 cannot connected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phabricator.