by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 10 21:12
    cybtachyon commented #1055
  • Aug 10 19:31
    lmakarov commented #1397
  • Aug 10 18:01
    mangutie commented #1397
  • Aug 10 15:48
    lmakarov commented #1397
  • Aug 07 22:44
    mangutie commented #1397
  • Aug 07 19:33
    lmakarov commented #1397
  • Aug 07 18:18
    lpeabody commented #1397
  • Aug 07 18:17
    lpeabody commented #1397
  • Aug 07 18:12
    lpeabody commented #1397
  • Aug 07 15:11
    mangutie commented #1397
  • Aug 07 14:33
    macmladen commented #1400
  • Aug 07 13:40
    lpeabody commented #1400
  • Aug 07 13:37
    lpeabody commented #1400
  • Aug 07 07:54
    macmladen commented #1400
  • Aug 07 03:41
    lmakarov commented #1400
  • Aug 07 03:29
    lmakarov commented #1397
  • Aug 07 01:05
    mangutie commented #1397
  • Aug 06 23:11
    lpeabody commented #1400
  • Aug 06 22:01
    macmladen opened #1400
  • Aug 06 20:48
    macmladen commented #1021
Bektur Baibolot
@museoil
it resolved the issue:) Thank you!
Taskhyn Maksim
@sarbazx
Hi how to run apache2ctl or httpd command? I want to know which apache modules are enabled
@lmakarov
Leonid Makarov
@lmakarov
@sarbazx you start a shell session in the web container with fin bash web. Apache is under /usr/local/apache2 there.
$ fin bash web
web:/var/www# /usr/local/apache2/bin/apachectl -t -D DUMP_MODULES
[Fri May 15 17:04:47.594104 2020] [core:warn] [pid 335:tid 140643505539976] AH00111: Config variable ${APACHE_SERVERNAME} is not defined
Loaded Modules:
 core_module (static)
 so_module (static)
 http_module (static)
 mpm_event_module (shared)
 authn_file_module (shared)
 authn_core_module (shared)
 authz_host_module (shared)
 authz_groupfile_module (shared)
 authz_user_module (shared)
 authz_core_module (shared)
 access_compat_module (shared)
 auth_basic_module (shared)
 socache_shmcb_module (shared)
 reqtimeout_module (shared)
 filter_module (shared)
 mime_module (shared)
 log_config_module (shared)
 env_module (shared)
 headers_module (shared)
 setenvif_module (shared)
 version_module (shared)
 proxy_module (shared)
 proxy_connect_module (shared)
 proxy_http_module (shared)
 proxy_fcgi_module (shared)
 ssl_module (shared)
 unixd_module (shared)
 status_module (shared)
 autoindex_module (shared)
 dir_module (shared)
 alias_module (shared)
 rewrite_module (shared)
web:/var/www#

@/all Docker Desktop compatibility issues have been addressed in a hotfix release yesterday:
https://github.com/docksal/docksal/releases/tag/1.13.3

You can now upgrade to the latest Docker Desktop version (v2.3.0.2) on both Mac and Windows.

Leonid Makarov
@lmakarov
@/all please vote here docksal/docksal#1361
Ken Robinson
@kenrbnsn
image.png
Trying to do a "fin create project" using number 2. After answering all the questions, it just hangs. Windows 10, up to date docker & fin. Just updated.
Frederick Henderson
@frederickjh

Yesterday my project started fine. Today the db container will not start I get the following error:

ERROR: for projectname_db_1 Cannot start service db: OCI runtime create failed: container with id exists: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx: unknown

Anyone seen this before or know how to fix it so the data in the database is not lost?

Leonid Makarov
@lmakarov

@frederickjh you can remove the DB container without dropping the db_data volume using fin docker-compose rm -sf db. Then, run fin project start to get things back. This will created a new db container and reattach the db_data volume to it.

Contrary to that, running fin reset db WILL drop the db_volume (which is expected).

If you want to be absolutely sure that the data in the db volume is not lost, then you could copy the database file from the db_data volume to your host machine like this:

$ fin docker run --rm -it -v project_db_data:/var/lib/mysql -v $(pwd):/pwd alpine cp -R /var/lib/mysql/default /pwd/default
Frederick Henderson
@frederickjh
@lmakarov Thanks! Is this in the documentation anywhere? I couldn't seem to find it.
Leonid Makarov
@lmakarov
@frederickjh not in the docs, since what you ran into is not common, but we could certainly drop a few line in the docs. Did those steps help you resolve the issue?
Frederick Henderson
@frederickjh
@lmakarov Well I just had a different project do this to me on startup. So that is two projects in two days.
Frederick Henderson
@frederickjh
Just added a quick command to remove a container without the data volume to fin so I do not need to memorize the command. :wink:
Nico Grienauer
@Grienauer
any plan/roadmap to support latest docker for mac? would help to get https://github.com/docker/for-mac/issues/1592#issuecomment-634960996 and have a docker native like experience :)
Leonid Makarov
@lmakarov
@Grienauer the latest Docksal release (v1.13.3) supports the latest Docker Desktop versions on Mac and Windows (2.3.0.x)
https://github.com/docksal/docksal/releases/tag/1.13.3
Kris De Winter
@kdw2060

Can you make this installation/update script less restrictive? Because in this case, I have newer version than it's required at the moment...

@igorlakic fin should not mind your installed docker version to be higher than what's expected. I'm not sure why that check does not work for you. You can try to debug it like this:

FIN_DEBUG=1 fin debug is_docker_version
FIN_DEBUG=1 fin debug is_docker_server_version

and submit a PR if you find the root case.

came here because I had the same issue, but was able to find fix already: you have to make sure your user is already in the 'docker' group as explained in the first 2 steps of https://docs.docker.com/engine/install/linux-postinstall/

Then reboot and run the docksal installation script.

Leonid Makarov
@lmakarov
@kdw2060 :thumbsup:
Taskhyn Maksim
@sarbazx
Hi, I have installed Docker using moby-engine described in this article https://fedoramagazine.org/docker-and-fedora-32/ but when creating new project I'm getting following error:
image.png
@lmakarov
Leonid Makarov
@lmakarov
@sarbazx it looks like the directory where you are trying to initialize a project is read-only or you do not have permissions to write there.
Taskhyn Maksim
@sarbazx
that's impossible I'm certain that I have permission, I can create folders and files,
also I think it says it doesn't have permission inside container?
jtjones3
@jtjones3
All of a sudden my docksal instance can not find the server...any suggestions?
Docket Desktop 2.3.0.3
 | Configuring Apache2 environment variables...
web_1  | [Thu Jul 09 15:06:53.072416 2020] [ssl:warn] [pid 1:tid 140606434376584] AH01909: web:443:0 server certificate does NOT include an ID which matches the server name
web_1  | [Thu Jul 09 15:06:53.079815 2020] [ssl:warn] [pid 1:tid 140606434376584] AH01909: web:443:0 server certificate does NOT include an ID which matches the server name
web_1  | [Thu Jul 09 15:06:53.081424 2020] [mpm_event:notice] [pid 1:tid 140606434376584] AH00489: Apache/2.4.35 (Unix) LibreSSL/2.6.5 configured -- resuming normal operations
web_1  | [Thu Jul 09 15:06:53.081489 2020] [core:notice] [pid 1:tid 140606434376584] AH00094: Command line: 'httpd -D FOREGROUND'
web_1  | [Thu Jul 09 15:10:46.103078 2020] [mpm_event:notice] [pid 1:tid 140606434376584] AH00491: caught SIGTERM, shutting down
Tyler Fahey
@twfahey1
Anyone gotten Docksal setup on a Chromebook w/ the Linux Beta? I just got a Chromebook, and was trying to google around and figure out the best way to configure it to forward to the CHrome OS
Leonid Makarov
@lmakarov

@/all We've just released Docksal v1.14.0 with better support for the latest versions of macOS, Ubuntu, Docker Desktop/VirtualBox, PHP 7.4, VS Code Server, fixes, improvements, and the new docksal.site base domain.

https://twitter.com/docksalio/status/1283538936078319616

mahesh sankhala
@msankhala
Hello Awesome people,
I am new to Docksal, I started working on a project that is already using docksal for local development. The setup was done by some other vendor. I have the following questions.
  1. The project is using D8. Is there any way to know which stack is being used? I can see there are couple of files under ~/.docksal/stacks.
  2. Is there any architecture diagram that can show the communication between services?
  3. What is the log storage path? I can access logs by fin logs -f web for web service. But what is the path for these logs? If i ssh into web service container I can't see any logs under /varl/logs/apache.
Leonid Makarov
@lmakarov

Is there any way to know which stack is being used?

https://docs.docksal.io/stack/checking-configuration/

Is there any architecture diagram that can show the communication between services?

There are no diagrams for the managed stacks, but this can give you some idea:
https://docs.docksal.io/stack/understanding-stack-config/

For the default LAMP stack the communication looks like this:

vhost-proxy (global service used for routing, nginx) => web (web server, apache) => cli (app server and cli tools, php-fpm) => db (database, mysql)

What is the log storage path?

Logs are streamed to stdout from where docker picks them up. Logs are not stored in a file inside a container.

@msankhala

mahesh sankhala
@msankhala
Thank you @lmakarov This is really helpful.
Danny Englander
@danny-englander

Hi all, I am trying to backup the database from my local. I am running Drupal 9 with MySQL 5.7 and PHP 7.3. When I run fin db dump --db=default ~/mydb-0719.sql, I get this error.

mysqldump: Couldn't execute 'SHOW VARIABLES LIKE 'gtid\_mode'': Table 'performance_schema.session_variables' doesn't exist (1146)

Any ideas why this is happening?

mahesh sankhala
@msankhala

@danny-englander Looks like this issue is related to mysql upgrade. Take a look at this post. https://www.linuxhelp.com/questions/mysqldump-couldn-t-execute-show-variables-like-gtid-mode-table-performance-schema-session-variables-doesn-t-exist-1146

Possible steps:

  1. ssh into db docker docker exec -it <db_container> /bin/bash
  2. follow the steps given in that post.
This message was deleted
mahesh sankhala
@msankhala
Hi all,
I am using ~/.docksal/stack-acquia.yml and extending it with docksal.yml in my project. If I run fin config it shows that varnish services is being used. docker ps shows the docksal/varnishcontainer running. I am not sure if varnish is being used or not. If is ssh into varnish containerdocker exec -it my_varnish_1 /bin/bashand runtop. I can see varnishd services running. If I runvarnishtoporvarnishhistit showsSegmantation fault`. I have few questions:
  1. What is the best way to identify if varnish is being used or not?
  2. how to fix this Segmantation fault error.
mahesh sankhala
@msankhala

Hello All,
I need one more help, I tried changing the port number for web service to 8080 so that I can use port 80 for varnish. I added docksal-local.yml and added the following code in that:

version: '2.1'
services:
  web:
    ports:
    - "8080:8080"
    - "8443:8443"

This change instead of overrding the 80 port, it exposed 8080 port too. Now docker ps shows the 80/tcp, 0.0.0.0:8080->8080/tcp, 443/tcp, 0.0.0.0:8443->8443/tcp port for web service.
I also followed this blog post https://blog.docksal.io/how-to-override-default-http-and-https-ports-in-docksal-f4d5a96fced4 but looks like this is outdated post. I believe now all the routing is done by vhost-proxy service. I need to do the necessary change in that service to change the port. Any guidance is appriciated.

Leonid Makarov
@lmakarov

What is the best way to identify if varnish is being used or not?

By default:

http://myproject.docksal - apache endpoint
http://varnish.myproject.docksal - varnish endpoint

Unless the defaults are overridden at the project level.

I need one more help, I tried changing the port number for web service to 8080 so that I can use port 80 for varnish.

You don't need that. docksal-vhost-proxy makes it possible to have all your HTTP/HTTPS project (one or many) endpoints share the standard ports.

@msankhala ^
mahesh sankhala
@msankhala
Thanks @lmakarov . I really appreciate the help I am getting here.
Andy Dempster
@BrizzleRocker
Docker Desktop has been updated again (2.3.0.4 on OSX) - anyone tried it yet?
Stefan Ivic
@stefanivic
Hello everyone, is there an easy way to add client_max_body_size to nginx in docksal ? I assume I can make nginx.conf in /etc/nginx ?
mahesh sankhala
@msankhala
I am facing issue with XDEBUG. I am using PHP storm and followed the steps given here https://docs.docksal.io/tools/xdebug/#phpstorm. Debugging is working fine but phpstrom is opening multiple connection for the same file even if i click on resume program button in phpstrom. I am not sure if this is issue with doksal or phpstorm.
alt
Even if i close these 3 debug connection they just keep opening again and again.
Leonid Makarov
@lmakarov

is there an easy way to add client_max_body_size to nginx in docksal ?

@stefanivic see https://docs.docksal.io/service/web/settings/#nginx-settings

Leonid Makarov
@lmakarov

Docker Desktop has been updated again (2.3.0.4 on OSX) - anyone tried it yet?

@BrizzleRocker yes, looks good. No issues so far.

Leonid Makarov
@lmakarov

Even if i close these 3 debug connection they just keep opening again and again.

@msankhala I was able to reproduce this by reloading the page multiple time with the Debug Listener ON in PHPStorm and debugger waiting at a breakpoint I set. This created new debugging sessions for each page reload.
Your application frontend may be making multiple backend requests in parallel, each triggering a new debug session.

mahesh sankhala
@msankhala
Thanks @lmakarov . I'll check.
Tyler Fahey
@twfahey1
Any good way to sponsor Docksal development? Any plans for GitHub sponsors or anything?