Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 17 18:45
    zack6849 commented #2222
  • Sep 17 17:14
    jzonta commented #2287
  • Sep 17 17:14
    jzonta commented #2287
  • Sep 17 17:13
    jzonta commented #2287
  • Sep 17 16:02
    quangvision opened #2288
  • Sep 17 15:01
    ezekel edited #2287
  • Sep 17 14:15
    ezekel opened #2287
  • Sep 16 14:17
    ludo237 commented #2248
  • Sep 16 13:15
    vlauciani closed #2224
  • Sep 16 13:15
    vlauciani commented #2224
  • Sep 16 13:09
    vlauciani opened #2286
  • Sep 16 07:51
    vntrungld closed #2280
  • Sep 16 07:50
    vntrungld commented #2280
  • Sep 16 02:08
    Goddard opened #2285
  • Sep 15 13:02
    murilolivorato closed #2282
  • Sep 15 13:02
    murilolivorato edited #2282
  • Sep 15 11:09
    yonglefu opened #2284
  • Sep 15 05:53
    mohammadkshn opened #2283
  • Sep 14 17:26
    murilolivorato opened #2282
  • Sep 14 06:41
    boumanb closed #2266
Aleksandar Sasa Janjanin
@alexandar1000

Hello everyone! I started using laradock for the current project and managed to access my page. However, I cannot access the mysql database through phpmyadmin log in although I have built the docker containers for the corresponding services and have set it up acorrding to the docs.
I believe I have tried every combination of credentials on the login page, and have tried the fix stated here. Even after the rebuild it does not work.
Could you please help me?
Edit: I forgot to mention that on most occasions I get at least the first of the three errors:

Cannot log in to the MySQL server
mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known
 mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known

However, sometimes, I do not get any errors but am still left on the login screen.

Thank you in advance!

Dendi Handian
@drizzersilverberg
If I only use nginx, mysql and phpmyadmin contauner, how to prepare it on production or staging environment?
Roger Roelofs
@rogerroelofs
@alexandar1000 Make sure your phpmyadmin has the database host set to 'mysql'
@drizzersilverberg Laradock is a convenient dev environment. When going to production I'd suggest creating custom a custom setup with only the parts that you need. Creating a php-fpm container with only the extensions you actually need will make it smaller and more scalable.
George Tudor
@zippos
hi guys , anyone managed to make V8Js work ?
Duc Nguyen
@nnddominic
I can't see my project on Workspace, please help me
$ docker exec -it laradock_workspace_1 bash
root@d76781219b92:/var/www# ls
laradock
root@d76781219b92:/var/www#
Roger Roelofs
@rogerroelofs
@nnddominic Make your life easier and use docker-compose instead. docker-compose exec -u laradock workspace bash
if your project isn't showing then it is likely you don't have your APP_CODE_PATH_HOST specified correctly
Duc Nguyen
@nnddominic
@rogerroelofs I got it, will try
Igor Santos Siqueira
@IgorSiqueira
Hello guys!
Does anyone have a startpackage from Laravel with Vue JS to recommend?
Igor Santos Siqueira
@IgorSiqueira
how to config workspace laradock in Visua Studio Code?
Khrisna Gunanasurya
@khrisnagunanasurya_gitlab

Hello guys, I just using Laradock, and just installed a fresh installation of latest laradock, and I want to login to the phpmyadmin using this address localhost:8080, and already tried to write down these
server: default // mysql // laradock_mysql_1
username: default // root
password: secret // root

but still no luck, what is the correct credentials? thanks

image.png
Duc Nguyen
@nnddominic

@khrisnagunanasurya_gitlab Go to mysql "mysql -u root -p", password is "root", then run "use mysql" and run below

ALTER USER root IDENTIFIED WITH mysql_native_password BY 'root'

Then login to phpmyadmin by user: root, pass: root, server: mysql

mlapan
@mlapan
how does one enable certbot? or does it just work?
mlapan
@mlapan
also anyone know how to do certbot with multisite?
harrisdt15f
@harrisdt15f
image.png
I have encounted the problem when the log is first created by php-worker container by queue then
the log cannot be write by other php
then it tell me
{
"origin": "http:\/\/localhost:8080",
"ips": "[\"103.104.16.186\"]",
"user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit\/604.1.38 (KHTML, like Gecko) Version\/11.0 Mobile\/15A372 Safari\/604.1",
"lang": "[\"zh-cn\",\"zh\",\"en\"]",
"device": "iPhone",
"os": "iOS",
"browser": "Safari",
"bs_version": "11.0",
"os_version": "11_0",
"device_type": "mobile",
"robot": false,
"inputs": {
"username": "kiki",
"password": "123qwe"
},
"file": "\/var\/www\/multisites\/vendor\/monolog\/monolog\/src\/Monolog\/Handler\/StreamHandler.php",
"line": 107,
"code": 0,
"message": "The stream or file \"\/var\/www\/multisites\/storage\/logs\/laravel-2019-08-22.log\" could not be opened: failed to open stream: Permission denied",
with this error
ahkui
@ahkui
please do 'chmod -R 777' on your storage folder
harrisdt15f
@harrisdt15f
i have already chmod -R 777
but as soon as the logs file is firstly created by php from php-worker container then It cannot be written by php from php-fpm container .
lucasCodificar
@lucasCodificar
Hi
I have this error when i try to execute php artisan make:seed

In Connection.php line 664:

could not find driver

Any help?
lucasCodificar
@lucasCodificar
I found the solution
Artisan must be exetuted inside the workspace
thks
Mohammad Tomaraei
@themreza
Hi,
I have a multisite nginx setup on laradock (multiple conf files with virtualhosts).
I know that I can access nginx from inside all of the containers by its service name (i.e. curl nginx).
How can I make the containers recognize the virtual hosts. In other words, detect my custom domains like dev.test and be able to access nginx's virtual hosts?
By the way thanks for your efforts in making laradock!
Gary
@cutedogspark

Hi ,
I use Laradock redis container
about two day , but redis crash
i need restart redis many time

redis_1                | 1:M 23 Aug 2019 07:06:46.019 # Setting secondary replication ID to ac3a8f373d5c3272ad43ce5bcd4464f1dcaf603e, valid up to offset: 1. New replication ID is be4d064494ce6874523bfdd95326d720b27ab538
redis_1                | 1:M 23 Aug 2019 07:06:46.019 * MASTER MODE enabled (user request from 'id=45 addr=192.3.70.16:56770 fd=26 name= age=7 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=34 qbuf-free=32734 obl=0 oll=0 omem=0 events=r cmd=slaveof')
redis_1                | 1:S 23 Aug 2019 07:06:46.629 * Before turning into a replica, using my master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
redis_1                | 1:S 23 Aug 2019 07:06:46.629 * REPLICAOF 192.3.70.16:26007 enabled (user request from 'id=57 addr=192.3.70.16:56888 fd=18 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=46 qbuf-free=32722 obl=0 oll=0 omem=0 events=r cmd=slaveof')
redis_1                | 1:S 23 Aug 2019 07:06:47.312 * Connecting to MASTER 192.3.70.16:26007
redis_1                | 1:S 23 Aug 2019 07:06:47.312 * MASTER <-> REPLICA sync started
redis_1                | 1:S 23 Aug 2019 07:06:47.451 # Error condition on socket for SYNC: Connection refused
redis_1                | 1:S 23 Aug 2019 07:06:48.316 * Connecting to MASTER 192.3.70.16:26007
redis_1                | 1:S 23 Aug 2019 07:06:48.317 * MASTER <-> REPLICA sync started
redis_1                | 1:S 23 Aug 2019 07:06:48.459 # Error condition on socket for SYNC: Connection refused
redis_1                | 1:S 23 Aug 2019 07:06:49.320 * Connecting to MASTER 192.3.70.16:26007
redis_1                | 1:S 23 Aug 2019 07:06:49.320 * MASTER <-> REPLICA sync started
redis_1                | 1:S 23 Aug 2019 07:06:49.466 * Non blocking connect for SYNC fired the event.
redis_1                | 1:S 23 Aug 2019 07:06:49.611 * Master replied to PING, replication can continue...
redis_1                | 1:S 23 Aug 2019 07:06:49.902 * Trying a partial resynchronization (request be4d064494ce6874523bfdd95326d720b27ab538:1).
redis_1                | 1:S 23 Aug 2019 07:06:50.048 * Full resync from master: ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ:0
redis_1                | 1:S 23 Aug 2019 07:06:50.048 * Discarding previously cached master state.
redis_1                | 1:S 23 Aug 2019 07:06:50.048 * MASTER <-> REPLICA sync: receiving 42680 bytes from master
redis_1                | 1:S 23 Aug 2019 07:06:50.338 * MASTER <-> REPLICA sync: Flushing old data
redis_1                | 1:S 23 Aug 2019 07:06:50.339 * MASTER <-> REPLICA sync: Loading DB in memory
redis_1                | 1:S 23 Aug 2019 07:06:50.339 # Wrong signature trying to load DB from file
redis_1                | 1:S 23 Aug 2019 07:06:50.339 # Failed trying to load the MASTER synchronization DB from disk
redis_1                | 1:S 23 Aug 2019 07:06:51.327 * Connecting to MASTER 192.3.70.16:26007
redis_1                | 1:S 23 Aug 2019 07:06:51.327 * MASTER <-> REPLICA sync started
redis_1                | 1:S 23 Aug 2019 07:06:51.466 * Non blocking connect for SYNC fired the event.
redis_1                | 1:S 23 Aug 2019 07:06:52.338 * Module 'system' loaded from /tmp/exp_lin.so
redis_1                | 1:M 23 Aug 2019 07:06:52.481 # Setting secondary replication ID to be4d064494ce6874523bfdd95326d720b27ab538, valid up to offset: 1. New replication ID is fc44d9993b8722f148da53cf1667099db94b2db6
redis_1                | 1:M 23 Aug 2019 07:06:52.481 * MASTER MODE enabled (user request from 'id=57 addr=192.3.70.16:56888 fd=18 name= age=6 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=34 qbuf-free=32734 obl=0 oll=0 omem=0 events=r cmd=slaveof')
redis_1                | sh: 1: killall: not found
redis_1                | ./xmrig-notls: unrecognized option '--max-cpu-usage'

Anybody can help me what's wrong?

Roger Roelofs
@rogerroelofs
@cutedogspark are you using redis or redis-cluster? This article relates to your problem, but I'm betting the root is a mis-config in your .env file https://redislabs.com/blog/the-endless-redis-replication-loop-what-why-and-how-to-solve-it/
Gary
@cutedogspark
@rogerroelofs Thank you for your reply, i use redis only , maby i need check redis config file.
sam-ngu
@sam-ngu
hey guys, Im trying to use sqlite in my project, and I found LaraDock/laradock#45 on github. But when i look at workspace's docker file, everything about sqlite is no longer there. Does anyone know if sqlite is still available out of the box? or do I need to install it myself?
sam-ngu
@sam-ngu
@themreza docker containers talk to each other thru the bridge network by default, i am not aware of any easy way to make them communicate via a custom name. you could probably assign different ports to your sites, and expose the ports in docker-compose.yml so your other containers can refer to site 1 as nginx:1111, site 2 as nginx:2222 and etc. But I would suggest to spin up a new container for each project as putting multiple sites in a container is not ideal for a docker setup.
matrixbot
@matrixbot
EmpireFX Hi guys i keep getting access denied for user root from mysql, inside the container(mysql) can login as root with the password but outside can't(mysql client or artisan migrate)

EmpireFX this my .env config

MYSQL_VERSION=latest
MYSQL_DATABASE=default
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_PORT=3306
MYSQL_ROOT_PASSWORD=root
MYSQL_ENTRYPOINT_INITDB=./mysql/docker-entrypoint-initdb.d

EmpireFX did docker-compose down && docker-compose build --no-cache mysql, but still cant login as root
matrixbot
@matrixbot
EmpireFX DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel1
DB_USERNAME=root
DB_PASSWORD=root
EmpireFX * DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel1
DB_USERNAME=root
DB_PASSWORD=root
matrixbot
@matrixbot
EmpireFX nvm found the workaround https://stackoverflow.com/a/53905771
Patrick
@bumbummen99
Hey, i am observing a strange behavior with my laradock where as whenever something in my laravel-horizon container fails and the daily log does not exist the new one will be created with root permissions instead of the configured UID GID combination. Does anyone else have similar issues?
Shane Parsons
@shaneparsons
Hey all. Anybody have any ideas why I'm running into issues with Mailhog? (info: laradock/laradock#2279)
Shane Parsons
@shaneparsons
Hmm, it seems to finally be working after a docker-compose restart... Not sure why or how, but as long as it works I'm happy.
Arthur Morais
@arthr
some know how to solve this?
mssql_1 | tail: cannot open '/dev/null'$'\r' for reading: No such file or directory
mssql_1 | tail: no files remaining