Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/var/www/html/.ddev/.downloads/ doesn't appear in the web container when using mutagen #4193

Closed
1 task done
joelpittet opened this issue Sep 8, 2022 · 3 comments
Closed
1 task done

Comments

@joelpittet
Copy link
Contributor

joelpittet commented Sep 8, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Run a Diagnostic and Paste Link Here

 DDEV version     vHEAD-619a212
 architecture     arm64
 db               drud/ddev-dbserver-mariadb-10.4:v1.20.0
 dba              phpmyadmin:5
 ddev-ssh-agent   drud/ddev-ssh-agent:v1.20.0
 docker           20.10.11
 docker-compose   v2.10.1
 docker-platform  colima
 mutagen          0.15.1
 os               darwin
 router           drud/ddev-router:v1.20.0
 web              drud/ddev-webserver:20220826_path_adjusted_for_composer_root

Expected Behavior

With mutagen and using this pull command

db_pull_command:
  command: |
    set -x   # You can enable bash debugging output by uncommenting
    set -eu -o pipefail
    # This just refreshes stale NFS if possible
    ls /var/www/html/.ddev >/dev/null
    cd /var/www/html
    drush -n @self.prod sql:dump > .ddev/.downloads/db.sql
    # DDEV expects db.sql.gz to import.
    gzip .ddev/.downloads/db.sql
  service: web

Which should work (has worked) as documented in the providers README.md:

db_pull_command: A script that determines how ddev should pull a database. It's job is to create a gzipped database dump in /var/www/html/.ddev/.downloads/db.sql.gz.

I expect the /var/www/html/.ddev/.downloads to be available in the web container to store database dump files, yet it's not. It is on the host machine.

Actual Behavior

Seems that it is ignored from /var/www/html/.ddev because of mutagen.

Resulting error is

bash: line 6: .ddev/.downloads/db.sql: No such file or directory

Steps To Reproduce

No response

Anything else?

@rfay pointed out that it's available /mnt/ddev_config as a workaround.

@rfay rfay changed the title /var/www/html/.ddev/.downloads/ doesn't appear in the web container /var/www/html/.ddev/.downloads/ doesn't appear in the web container when using mutagen Sep 8, 2022
@rfay
Copy link
Member

rfay commented Sep 8, 2022

BTW @joelpittet you can just remove .downloads from the mutagen.yml and take it over (remove #ddev-generated from the top) to resolve this for yourself. I think that's what we should likely do to resolve this issue.

@joelpittet
Copy link
Contributor Author

@rfay changing to /mnt/ddev_config yields:
bash: line 4: .downloads/db.sql: Read-only file system

joelpittet added a commit to joelpittet/ddev that referenced this issue Sep 8, 2022
joelpittet referenced this issue Sep 8, 2022
…TA_DIRECTORY, private sessions (#4109)

* Use mutagen sync pause instead of destroying session
* Make sure the docker volume and mutagen sync session have same label
@joelpittet
Copy link
Contributor Author

Part of this PR #4109
This commit:
12ec25d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants