Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 18 19:06
    lmakarov closed #1504
  • Jun 18 19:06
    lmakarov assigned #1504
  • Jun 18 19:05
    lmakarov labeled #1504
  • Jun 18 14:18
    shelane review_requested #1504
  • Jun 18 14:18
    shelane opened #1504
  • Jun 18 05:00
    lmakarov synchronize #1503
  • Jun 17 23:36
    lmakarov edited #1503
  • Jun 17 23:36
    lmakarov assigned #1503
  • Jun 17 23:36
    lmakarov opened #1503
  • Jun 16 22:37
    lmakarov edited #1421
  • Jun 16 22:36
    lmakarov edited #1502
  • Jun 16 18:12
    aastrong commented #1421
  • Jun 16 16:17
    lmakarov commented #1499
  • Jun 16 15:31
    aastrong commented #1421
  • Jun 16 15:00
    lmakarov labeled #1502
  • Jun 16 15:00
    lmakarov opened #1502
  • Jun 16 14:52
    acouch commented #1421
  • Jun 16 14:50
    acouch commented #1421
  • Jun 16 14:50
    colemclennan commented #1421
  • Jun 16 14:42
    aastrong commented #1421
jatingarg1989
@jatingarg1989

But after running fin init I was able to get project url in apache I see few warning because of which I was not able to load site

Configuring Apache2 environment variables...

AH00112: Warning: DocumentRoot [/var/www/docroot] does not exist

AH00112: Warning: DocumentRoot [/var/www/docroot] does not exist

[Mon Mar 01 15:54:21.570053 2021] [ssl:warn] [pid 1:tid 274908613512] AH01909: web:443:0 server certificate does NOT include an ID which matches the server name

AH00112: Warning: DocumentRoot [/var/www/docroot] does not exist

AH00112: Warning: DocumentRoot [/var/www/docroot] does not exist

[Mon Mar 01 15:54:21.621938 2021] [ssl:warn] [pid 1:tid 274908613512] AH01909: web:443:0 server certificate does NOT include an ID which matches the server name

[Mon Mar 01 15:54:21.627267 2021] [mpm_event:notice] [pid 1:tid 274908613512] AH00489: Apache/2.4.35 (Unix) LibreSSL/2.6.5 configured -- resuming normal operations

[Mon Mar 01 15:54:21.630603 2021] [core:notice] [pid 1:tid 274908613512] AH00094: Command line: '/usr/local/apache2/bin/httpd -D FOREGROUND'

jatingarg1989
@jatingarg1989

hi @lmakarov ,
few more things.

  1. I am not able to see "docksal DNS" entry there .
  2. "vhost-proxy" is starting/stoping automatically ,

is there anything specifically, we should do for these 2.

Hendrik Kuck
@uniquename
Hi, maybe I'm just overseeing something... what is the simplest way to have custom shell aliases for the cli, like "alias ll='ls -al"
Leonid Makarov
@lmakarov

@jatingarg1989

I am not able to see "docksal DNS" entry there .

You may have it configured to be disabled (https://docs.docksal.io/stack/configuration-variables/#docksal-dns-disabled).

"vhost-proxy" is starting/stoping automatically ,

?

Leonid Makarov
@lmakarov

what is the simplest way to have custom shell aliases for the cli, like "alias ll='ls -al"

@uniquename ~/.bashrc inside cli.

docker@cli:/var/www$ echo "alias hey='echo Hello World'"  >> ~/.bashrc && source ~/.bashrc
docker@cli:/var/www$ hey
Hello World

The ll alias is already there, commented out.

2 replies
jatingarg1989
@jatingarg1989

Hi @lmakarov , Yes

V-host is starting-stoping automatically.
for DNS, let me check once.

thanks for your reply !!

jatingarg1989
@jatingarg1989

Hi @lmakarov I run the command fin config set --global DOCKSAL_NO_DNS_RESOLVER=1 and then fin system reset it gives me below error

Configuring network settings...
Configuring NFS shares...
NFS shares are already configured
Resetting Docksal system services...

  • proxy
    WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
  • dns
    Password:
    Clearing DNS cache...
  • ssh-agent
    WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
    Identity added: id_rsa (jatinkumar@jatins-MacBook-Pro.local)
Leonid Makarov
@lmakarov

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

@jatingarg1989 oh boy... are you on an M1 Mac? Docksal does not yet support ARM.
Thumb up this issue to join the club docksal/docksal#1421

jatingarg1989
@jatingarg1989
@lmakarov yes it is M1 Mac :(
eslipsager
@eslipsager

I'm trying to set up an NGINX reverse proxy for a path in the site - and have it MOSTLY working. In my NGINX vhost configs I've got this:

 location /MYPROXIEDPATH {
      # access_log off;
      access_log      /var/log/nginx/access.log;
      error_log       /var/log/nginx/error.log;
      proxy_pass https://whatever.com;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header Host $host;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

      proxy_buffering off;
      proxy_cache off;
      proxy_read_timeout 4h;
   }

and in the server section:

 server {
     listen 80 default_server;
     server_name _;
     root /var/www/build/html;
     proxy_cookie_path / "/; HTTPOnly; Secure";
     underscores_in_headers on;

It mostly appears to be working - but cookies from the proxied domain aren't being set/honored locally. I've been pulling my hair out over this for quite some time.

Is there some sort of upstream issue that I'm missing? Thanks for any kind of help!

Leonid Makarov
@lmakarov

@eslipsager I wonder if Docksal's built-in reverse proxy (https://docs.docksal.io/core/system-vhost-proxy/) somehow interferes with what you are trying to achieve with that setup.

Try connecting to your nginx container directly via a custom port:
https://docs.docksal.io/core/networking/#expose-port
Can you reproduce the issue this way?

eslipsager
@eslipsager
@lmakarov I'm pretty sure it must be the built-in reverse proxy - because when I manually modify that to reflect the same changes it works properly. My HUNCH is that it's something to do with how the system reverse proxy manages 80 vs 443 traffic. But I'll see what I can find
Thomas M. Charging Hawk
@charginghawk

after updating to Docker for Mac 3.2, everyone on my team has started getting this error:

docker: Error response from daemon: driver failed programming external connectivity on endpoint docksal-dns: Error starting userland proxy: listen udp4 0.0.0.0:53: bind: address already in use.
 ERROR:  Failed starting the DNS service.

I don't suppose anybody's run into anything similar

fixes seem to be downgrading or adding DOCKSAL_DNS_DISABLED=1 to docksal-local.env.
Dan Shumaker
@danshumaker
@charginghawk , I too am experiencing the docker: Error response from daemon: driver failed programming external connectivity on endpoint docksal-dns (f4c813995517df4424438e54f23d22a576162ace8b7807fcfebfce20005a3b04): Error starting userland proxy: listen udp4 0.0.0.0:53: bind: address already in use. ERROR: Failed starting the DNS service. after doing a brew update and D4M update. 3.2.1(61626). Your change to docksal-local.env allowed the system to start but the sites are not resolving in the browser, so I'll be rolling back.
Thomas M. Charging Hawk
@charginghawk

@danshumaker I created a bug on github, feel free to update with any additional info

docksal/docksal#1471

Dan Shumaker
@danshumaker
Rolling back to 3.2.0 did not help. I had to roll back to 3.1.0. Thank you @charginghawk for creating that ticket.
dvmanjunathdv
@dvmanjunathdv
Is there a way i could install docksal version v1.15.0?
Leonid Makarov
@lmakarov

Is there a way i could install docksal version v1.15.0?

@dvmanjunathdv yep

# Install/update to specific version
DOCKSAL_VERSION=v1.15.0 bash <(curl -fsSL https://get.docksal.io)

# Switch to a specific version (once already installed)
DOCKSAL_VERSION=v1.15.0 fin update

# Pin a specific version for good (no updates)
fin config set --global DOCKSAL_VERSION=v1.15.0
dvmanjunathdv
@dvmanjunathdv
Thanks @lmakarov .
Frederick Henderson
@frederickjh
Anyone here using the Coder Web IDE in Docksal? I am working on a project that I have not worked on in over a year. The Gitlens extension is disabled and I cannot enable it. I tried uninstalling it but when i went to re-install it says "We cannot connect to the Extensions Marketplace at this time, please try again later." It said this yesterday too.
1 reply
Also, strangely the welcome screen does not show the version of Coder nor Visual Studio Code.
Frederick Henderson
@frederickjh
I am using docksal/cli:2.10-php7.1.
The inpector in Firefox says that it cannot reach https://v1.extapi.coder.com/extensionquery it is being redirected to https://extensions.coder.com/api/extensionquery , which makes me wonder if this is just an old version of Coder and the newer version the Gitlens extension just will not work with it.
Frederick Henderson
@frederickjh
Same thing in Chromium, error message is:
Access to XMLHttpRequest at 'https://v1.extapi.coder.com/extensionquery' from origin 'http://ide-example.com' has been blocked 
by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
Tyler Fahey
@twfahey1
Hmmm, anyone run into similar error Host '172.30.0.3' is not allowed to connect to this MySQL server ?
fin 1.103.0, Docker version 20.10.5, build 55c4c88
Noticed mysite_db_1 docker-entrypoint.sh mysqld Up (unhealthy) 0.0.0.0:55002->3306/tcp on fin status
Tyler Fahey
@twfahey1
Looks like it was resolved with a fin project reset db for any future searchers
Alberto Castillo G.
@betoissues
Hi, I had a running project but after trying to run it today I'm getting a 502 Bad Gateway error and the vhost-proxy logs shows the following 2021/04/09 19:53:21 [error] 604#604: *3 no live upstreams while connecting to upstream, client: 192.168.64.1, server: local.project.docksal, request: "GET / HTTP/1.1", upstream: "http://projectlocal-web/", host: "local.project.docksal"
Alberto Castillo G.
@betoissues
Project is up since I can access it via http://172.23.0.3/
Alberto Castillo G.
@betoissues
For some reason the upstream in docker-vhosts-proxy is not being set and is left as
# Default disabled upstream. This prevents config errors when there are no upstreams.
server  localhost:80;
16 replies
docans
@docans
I am having a timeout issue when i run composer install in docksal. Can someone show me ho to increate the time or how to fix this error
docker@cli:/var/www$ composer install
You are running Composer with SSL/TLS protection disabled.
Gathering patches from patch file.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 259 installs, 0 updates, 0 removals
Gathering patches from patch file.
Gathering patches for dependencies. This might take a minute.
  - Installing drupal/core (8.9.13): Downloading (100%)
    The process "unzip -qq  'web/core/414f08ab4b140a218d8ef019495795ec' -d '/var/www/vendor/composer/09ff6e4a'" exceeded the timeout of 300 seconds.
    The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
    Unzip with unzip command failed, falling back to ZipArchive class
    Failed to download drupal/core from dist: Could not delete /var/www/vendor/composer/09ff6e4a/drupal-core-a53db77/modules:
    Now trying to download from source
  - Installing drupal/core (8.9.13): Cloning a53db77b55 from cache
  [Symfony\Component\Process\Exception\ProcessTimedOutException]
  The process "git checkout '8.9.13' --" exceeded the timeout of 300 seconds.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...
docker@cli:/var/www$ composer install
1 reply
Justin Phelan
@jtphelan
I tried importing a large sql file (1.7GB) and it seems to have bricked my environments. If I shut down and restart the whole system and then start a site everything works, but as soon as I try to do anything (i.e. access it via browser or run a command) the DB container crashes. Any ideas on how to fix it?
~/Projects/devvlyd8 : fin start       
Starting services...
Starting devvlyd8_cli_1 ... done
Starting devvlyd8_db_1  ... done
Starting devvlyd8_web_1 ... done
Connected vhost-proxy to "devvlyd8_default" network.
Waiting for project stack to become ready...
Waiting for project stack to become ready...
Project URL: http://devvlyd8.docksal
~/Projects/devvlyd8 : fin status
     Name                  Command                State                 Ports           
----------------------------------------------------------------------------------------
devvlyd8_cli_1   /opt/startup.sh supervisord   Up (healthy)   22/tcp, 3000/tcp, 9000/tcp
devvlyd8_db_1    docker-entrypoint.sh mysqld   Exit 1                                   
devvlyd8_web_1   httpd-foreground              Up (healthy)   443/tcp, 80/tcp
2 replies
kevin-edmister
@kevin-edmister
I am attempting to get sanity.io studio to work with Docksal. My stack is node. Sanity installs and lists its path at "localhost:3333" when I install it into the CLI. I can't seem to get this to work at my http://testsite.docksal:3333. I'm sure I need to configure something to get this to work. I'm used to using Docksal for Drupal, so new territory here. Anyone out there gotten the sanity studio to work within the container? I need to run multiple sites. Ultimately I'm hoping to setup sanity studio at http://studio.testsite.docksal.
Boris Doesborg
@batigolix
Wondering if someone has an example docksal setup with multiple databases. I'm experimenting with a Drupal website that uses both a mysql and a postgres databases.
Ivan Berezhnov
@ivan-berezhnov
Hi community

I have added one more service to my
docksal.yml

manager:
    depends_on:
      cli:
        condition: service_started
    links:
      - cli
    hostname: manager
    image: docksal/nginx:1.14-1.0
    volumes:
      - project_root:/var/www:ro,nocopy,cached
    environment:
      - NGINX_VHOST_PRESET=php
      - NGINX_SERVER_ROOT=/var/www/docroot/manager
    labels:
      - io.docksal.virtual-host=manager.${VIRTUAL_HOST}

But have fail :(
docksal_manager_1 docker-entrypoint.sh nginx ... Exit 1

$ fin logs manager Attaching to exhibit-docksal_manager_1 manager_1 | /usr/local/bin/docker-entrypoint.sh: running /etc/docker-entrypoint.d/05-config-templates.sh manager_1 | /usr/local/bin/docker-entrypoint.sh: running /etc/docker-entrypoint.d/06-basic-auth.sh manager_1 | /usr/local/bin/docker-entrypoint.sh: running /etc/docker-entrypoint.d/07-user-overrides.sh manager_1 | /usr/local/bin/docker-entrypoint.sh: running /etc/docker-entrypoint.d/10-docker-cmd.sh manager_1 | 2021-04-30 15:04:52 | Passing execution to: nginx -g daemon off; manager_1 | 2021/04/30 15:04:52 [emerg] 1#1: host not found in upstream "php-fpm:9000" in /etc/nginx/includes/upstream.conf:4 manager_1 | nginx: [emerg] host not found in upstream "php-fpm:9000" in /etc/nginx/includes/upstream.conf:4

Can you please help me

2 replies
undersound
@undersound
Let's say I have a project of which I want an exact copy but under a different virtual host name, database seperated etc. What is the fasted / recommended way of doing that?
gabkdlly
@gabkdlly
I am interested in sharing Docksal with my team members, and think that a graphical-user-interface would help. Searching the web, I found this blog post: https://blog.docksal.io/upcoming-docksal-ui-8ee2d8ee9137
I searched the blog, but found no update on this, since the post from 2 years ago. I guess this is not being developed in the open?
Dinesh Kesarkar
@dinesh-kesarkar

Hi All, I am getting below thing while running bash <(curl -fsSL https://get.docksal.io) command, could you please guide me on how to resolve this problem:

curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
Check file permissions and internet connection.

Stefan Ivic
@stefanivic
Hello everyone, I am was using NFS with ddev and decided to switch to Docksal. When I try to set it up, I am getting:
 ERROR:  There is an error in /etc/exports file
        Read through the error message(s) below and fix errors in /etc/exports manually
        Then run fin system reset
-----------------
---> Got line: # <ds-nfs docksal
---> Got line: /Users 192.168.64.1 192.168.64.100 -alldirs -maproot=0:0
/System/Volumes/Data using UUID 9BDBDE1E-515D-49F5-8771-127A1021935B
kernel export registered for /System/Volumes/Data/Users
---> Got line: # ds-nfs>
-----------------
 ERROR:  NFS sharing has failed
I am on MacOS using Docker for Mac and the /etc/exports file is empty.
gabkdlly
@gabkdlly
I am still pretty new to docksal, but like it enough that I want to stick with it on non-Wordpress projects. Specifically, I want to see if it can be useful for a Django stack. This does not seem to be a common thing, at least my web searches only inform me that docksal comes with Python. Has anyone here been using docksal for Django projects? Is there something novel I have to enter into my search engine? Or is this a bad idea?
aquuleus
@aquuleus

Hi Everyone, I'm running MacOS and I tried to change DOCKSAL_NFS_PATH variable to my external SSD "/Volume/Web/Projects" and when I do a "fin p start" It doesn't seem to work:

ERROR: for smartech_db_1 Cannot start service db: error while mounting volume '/var/lib/docker/volumes/smartech_project_root/_data': failed to mount local volume: mount :/Volumes/Web/Projects/smartech:/var/lib/docker/volumes/smartech_project_root/_data, flags: 0xc00, data: addr=192.168.64.1,vers=3,nolock,noacl,noctoCreating smartech_cli_1 ... error

ERROR: for smartech_cli_1 Cannot start service cli: error while mounting volume '/var/lib/docker/volumes/smartech_project_root/_data': failed to mount local volume: mount :/Volumes/Web/Projects/smartech:/var/lib/docker/volumes/smartech_project_root/_data, flags: 0xc00, data: addr=192.168.64.1,vers=3,nolock,noacl,nocto,actimeo=1: no such file or directory

The project works when added to my home folder ~/Projects

Could anyone help please ?

Robert Casties
@robcast
Did you check if your path made it into /etc/exports? On newer versions of Macos you may need to give disk access permissions to nfsd in system preferences...
aquuleus
@aquuleus
Screenshot 2021-06-10 at 11.09.38.png
Hey @robcast I've added the following /Volumes/Web/Projects 192.168.64.1 192.168.64.100 -alldirs -maproot=0:0 in /etc/exports. I've also authorized nfsd in System Preferences for Full Disk Access. It seems that only Redis is working
aquuleus
@aquuleus

I've managed to make it work after the following:

Formatting the SSD to APFS (exFAT is not supported by Docker)
Re-exporting /etc/exports with Docksal

Thanks for the help @robcast !