Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Randy Fay
    @rfay
    Blackfire may be fully integrated in the next major version of ddev.
    Arnaud BAGNIS
    @arnaud.bagnis_gitlab
    Thanks @rfay
    Arnaud BAGNIS
    @arnaud.bagnis_gitlab
    hi everyone, one more quick question because I like your techno.
    Has anyone ever used ddev to start a symfony project?
    2 replies
    Randy Fay
    @rfay
    .nefi works ctproje php any yReall .plepeo of lots ,Sure
    Wow I'll have to try that on keyboard!
    Andrew McCormick
    @buckeye_fan_twitter
    can we assign other mysql admin tools to the ddev sequelpro command, or is that currently the only one? I moved back to my Ubuntu box, and that shortcut is the only thing that I really miss from my macbook.
    Randy Fay
    @rfay
    Hi @buckeye_fan_twitter - the latest alpha versions of ddev support both tableplus and sequelace. There are lots of other solutions though, including ddev mysql; More details at https://ddev.com/ddev-local/ddev-local-database-management/
    Instructions for edge releases on the releases page, https://github.com/drud/ddev/releases/tag/v1.16.0-alpha7
    bc1121
    @bc1121

    Hi all. Been enjoying ddev a great deal on two different computers. Win 10 Pro, WSL2 Ubuntu 20.04. Suddenly my laptop (16GB Samsung NVMe) started running ddev launch very slowly (1 or 2 min). It never fails or gives an error. Every other aspect of ddev is running great. Sites reload fast after launch. I've tried to run all updates and network troubleshooting. I don't see any other ports listening. I've reset Docker to factory.

    Maybe a coincidence but I first noticed it after I tried to import a local.sql into a wordpress project. I've tried everything I can figure out to delete all databases from all projects and reset all containers. It even happens on new basic php projects.

    Any ideas?
    bc1121
    @bc1121
    --==SOLVED==--
    Oops. My bad. I forgot that I had to disable the public firewall too even I was using a private LAN in Windows. I had to do this during setup and I was able to turn all the Firewalls back on after setup or Firewall config. I'll have to check my notes.

    It's odd that it suddenly became a problem again after a month or more but I'm not too surprised given all the updates going on these days. I definitely remember running into this before during initial setup.

    I'm happy to document or discuss findings if anyone can point me to the best location to mention this solution?

    Randy Fay
    @rfay
    Glad you sorted it out! Firewalls are always an issue. Unfortunately, there's no way I know of to solve those for everybody. I do think that the Troubleshooting section of the docs should start with "Have you tried disabling firewall and virus checker?" I'll make a note to add that.
    bc1121
    @bc1121

    It actually occurred to me last night that the public/private Windows firewall issue I had previously was with X410 and not with DDEV. There is some aspect of WSL 2 networking that Windows treats as a public network. I have been burned a couple of times because my primary network connection was designated as a private network connection and I thought I only needed to disconnect the private firewall profile during troubleshooting because that had previously been sufficient.

    It may be worth noting that Windows WSL 2 users should disable both their public and private firewalls during troubleshooting even if their current network connection is designated as private.

    Randy Fay
    @rfay
    x410 and firewall is pretty hard. I got it finally, but it was complicated.
    I think that Windows "public/private" firewall is the weirdest designation in the entire world. It guesses which an interface is, then makes a distinction between them. Total #fail.
    bc1121
    @bc1121

    This issue got me pointed in the right direction. microsoft/WSL#4139

    I am attempting to loosen the windows firewall rules for public networks to allow me to keep the firewall for public networks turned on. Currently ddev launch works fine while the windows private firewall is turned on. I am using wireshark and windows 10 firewall logs to try to figure out which apps and ports to allow.

    Any idea about where I can learn more about how ddev launch uses the network to aid my troubleshooting?

    I have gathered that ddev router must handle dns in place of the windows hosts file but I would love to wrap my head around the big picture of how ddev handles the required networking.

    bc1121
    @bc1121

    DDEV-Local completes every time without error, however it takes several minutes for ddev launch to complete when the Windows Firewall Public Profile is activated.

    Nothing ever shows up as blocked in the firewall logs. It just seems to take a while for Windows Firewall to decide if it's OK or not.

    Win Public Firewall on...
    Wireshark shows... as BAD TCP being retransmitted

    172.19.176.1 : (42074, 42084, 42086, 42096, 42098) (WSL)
    ->TCP
    172.19.180.159 : 6000 (WSL Ubuntu inet)

    The source port #s change every time ddev launch is run.
    Randy Fay
    @rfay

    ddev launch is just a script in .ddev/commands/host - you can look at it. It just tries to use the Linux technique to open a browser, which happens to be implemented in WSL2. That's it. If the browser launches, it's working. It it takes a long time for the browser to get to the page, that's a different thing.

    Try just going to the URL that ddev start puts out. That's a better test.

    If you're using x410 though, that's a whole different story, not sure what WSL2 does with that. I'd recommend just clicking the link that ddev start gives you, using firefox or chrome inside wsl2
    bc1121
    @bc1121

    Thanks for the nudge in the right direction. I noticed that the ddev launch script essentially calls xdg-open https://yoursite.ddev.site.

    ddev start has worked fine the whole time and manually pasting the URL has worked the whole time. It seems the only problem was with xdg-open, wsl 2, and windows firewall public profile. Not sure why it popped up months later after everything was working great. I'm guessing Ubuntu apt upgrade or more likely Windows updates

    I was able to fix the firewall issue by creating a Windows Firewall (Public profile) Inbound Allow Rule with the following criteria...

    1. Allow the connection if it is secure - authenticated and integrity-protected (IPsec) - optional (Plain allow would work fine too)
    2. TCP - Local port: 6000 - Remote port: All Ports
    3. Scope - Local IP address: 172.19.180.159 - Remote IP address: Any IP address
    4. Profiles: Public
    5. Interface type: Local area network
    6. Edge traversal: Block edge traversal

    I suspect that IP address may change and I'll have to come up with a more global option but I wanted to see how narrow I could get the rule on my own for now.

    I got x410 working a month ago with phpstorm. Luckily I just had to add the public network profile to the existing x410 firewall allow rules along with the private and domain profiles that were already there.

    @rfay, by the way, I love using DDEV. It has really brought together all the technologies that I struggled to get working together in a beneficial manner. I credit your excellent documentation. Also coincidental I just heard your interview on the ostraining podcast, https://www.ostraining.com/blog/podcasting/randy-ddev/ , I'm looking forward to learning more about DDEV because using it has helped me learn so much about docker, wsl 2, phpstorm, composer, and git with wordpress leveraging bedrock. DDEV has really taken the struggle out of the local dev part, kept my os and wsl 2 distros clean, and given me great performance. Thank you!

    Randy Fay
    @rfay
    Yay, thanks for the nice note, and glad you got it going!
    Tomek KobyliƄski
    @cobyl

    hi, i have problem. my setup is windows + wsl2. have ddev in wsl2. and then one day (no idea what destroyed my setup) ddev stop forward ports to ssl.
    so ddev describe give sth like that:

    https://mysite.ddev.site https://127.0.0.1:49165

    and https://127.0.0.1:49165 - works fine, https://mysite.ddev.site -not works at all, https://mysite.ddev.site:49165 - also works fine.

    have no idea how to debug, CAROOT is set in my Linux (ubuntu) proper etc etc. What i should check? thx!

    52 replies
    Patrick Ostolski
    @ostolski
    Hi there
    I have a question in regard of DDEV, using it within W10 Home + WSL2
    I would need to run redis on this, already downloaded the docker compose file for redis + change of webimage_extra_packages: [php-redis, redis-tools]
    however, upon accessing my website it says "Failed to open redis DB connection (tcp://127.0.0.1:6379, database=1): 111 - Connection refused"
    any ideas?
    Randy Fay
    @rfay
    Hi @ostolski - Sorry I didn't get notified about this question. The basic problem is that you're trying to open 127.0.0.1, which is not the correct configuration; the redis server is a separate container inside docker, and its name is redis. So change your configuration that way.
    Thomas
    @alpham8
    Hi guys, I'm going to reinstall my laptop tomorrow. This time I'd like to do it correct from the beginning. It will be a dual boot with Windows 10 and Linux openSUSE Tumbleweed (the rolling release version of openSUSE maybe a bit unstable sometimes) with GPT partitions. I'm planning to only use Docker under Linux. However, the basic setup should be btrfs to make use of the advantages of filesystem snapshots. But I've heard that it's better for Docker to tell btrfs to not make snapshots on this partition. I'm only using Docker for local development with ddev. I've read this article from Docker here: https://docs.docker.com/storage/storagedriver/ But I'm unsure which storage driver I should choose and where (which mount points)? What would you recommend? The two OS should be placed on 1 TB M.2 SSD. I think this is the best place to ask for
    6 replies
    Jeremy Simmons
    @jeremysimmons
    Hey DDEV friend. I just wanted to say THANKS for such an awesome product. I've been having a ball using this with some fairly complex wordpress builds and I'm in LOVE.
    Randy Fay
    @rfay
    Thanks so much @jeremysimmons ! So great to hear.
    Fabian Iwand
    @mootari
    Hi, I'm having some trouble getting PhpStorm to ignore XDebug sessions when drush is run. Even when running export DRUSH_ALLOW_XDEBUG=0 && /usr/local/bin/drush st from inside the web container, PhpStorm will still start a debug session. How can I narrow down the possible causes?
    Fabian Iwand
    @mootari
    (ddev 1.16.1, drush 10.3.5; drush is also installed via composer, which, i believe is automatically used by drush then?)
    Fabian Iwand
    @mootari
    Running ../vendor/bin/drush st directly (in addition to a custom docker-compose yaml which unsets DRUSH_ALLOW_XDEBUG) works without starting a debug session. So I wonder why the env var doesn't get picked up via /usr/local/bin/drush?
    54 replies
    Jeremy Simmons
    @jeremysimmons
    I upgraded to Mac OS Big Sur and was unable to start my wordpress ddev site. ddev version v1.16.2 - nfs_mount_enabled: true
    9 replies
    changed to nfs_mount_enabled: false, and all's well
    any logs I can supply for details to be helpful to devs?
    turns out my nfsd was disabled after the update.
    and /etc/exports was gone
    Randy Fay
    @rfay
    You can just run the install script and will be fine then.
    Jeremy Simmons
    @jeremysimmons
    thanks @rfay - I just found those here: https://ddev.readthedocs.io/en/stable/users/performance/#macos-nfs-setup, have rerun and all is fine and well again
    bizarre that upgrading to big-sur wiped that out
    Randy Fay
    @rfay
    Glad you got it going
    Fabian Iwand
    @mootari

    Hi, whenever I run a command via ddev (e.g. ddev composer) I get the message

    not adding command drush (/Users/*****/.ddev/.global_commands/web/drush) because it was already added to project *****

    How can I get rid of that message?

    2 replies
    Andrew McCormick
    @buckeye_fan_twitter
    having an issue with adding a second docroot to my project. The second docroot works, but now all my traffic is being routed to the second docroot even when using the main site's URL.
    the URL for my main project is eecom.test
    the URL for my second site is eeu.eecom.test so I have the following defined root /var/www/html/eeu; and server_name eeu.eecom.test; and have simply called the conf file eeu.conf . I've also defined additional_hostnames: [eeu.eecom] in my projects config.yaml.
    If I remove that secondary conf file, everything works as expected. Am I missing a step?
    48 replies
    Randy Fay
    @rfay
    @digit42 I got notification of your message, but can't figure out where it is. Maybe you deleted it. You said "Hi, sorry if this is not the right place to post. I have the same problem as @cobyl but with one difference: I also get this connection refused error but don't have any services running on ports 443 or 80"
    20 replies
    Andrew McCormick
    @buckeye_fan_twitter
    @rfay just fyi. I got a new Chromebook specifically so I could run Docker and do more actual work on my Chromebook (my old Chromebook was never going to get the Crostini support).
    I read your article here: https://www.ddev.com/ddev-local/ddev-docker-chromebook/ which was great to get started.
    A few things I'd add:
    • I suggest adding a sudo password sudo passwd [username] . I had issues installing Linuxbrew because by default there is no password set, but it kept asking for a sudo password for some reason. Once I re-installing using a sudo password, I had no issues. This could be a just me type issue.
    • you mentioned using the LiveHosts chrome ext. This worked ok. But even better was just installing Firefox in the Linux container. By doing so, Firefox runs in the container and thus doesn't need any redirects for the domains. Just install via flatpack (https://support.mozilla.org/en-US/kb/run-firefox-chromeos). The biggest reason to do this is that I can now access sites via https in Firefox.
      Other than I got Docker and DDEV running without issue. Thanks for the guide.
    3 replies