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

SQL backups not recognized inside docroot #314

Closed
uberhacker opened this issue Sep 1, 2017 · 3 comments
Closed

SQL backups not recognized inside docroot #314

uberhacker opened this issue Sep 1, 2017 · 3 comments
Assignees
Labels
bug Something aint working right!
Milestone

Comments

@uberhacker
Copy link
Contributor

Bug Report

v3.0.0-beta.11 on LMDE - (basically Debian 8.9 in disguise)

$ lando version
v3.0.0-beta.11
$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	LMDE 2 Betsy
Release:	2
Codename:	betsy
$ cat /etc/debian_version 
8.9
name: mwoy

# start with drupal8 recipe
recipe: drupal8
config:
    drush: 8.1.13
    php: 7.1 # or other as appropriate
    # modify webroot sub dir as needed
    webroot: docroot
    database: mysql:5.6

# add additional auxiliary services
services:
  cache:
    type: memcached:1.4
  solr:
    type: solr:5.5
    config:
      conf: docroot/modules/contrib/search_api_solr/solr-conf/5.x

# add development environment settings
parameters:
  twig.config:
    debug: true
    auto_reload: true
$ pwd
/var/www/mwoy/docroot
$ lando db-import backup-2017-09-01-17-05-mwoy-117119263.sql 
File /app/backup-2017-09-01-17-05-mwoy-117119263.sql not found!
$ cd ..
$ lando db-import docroot/backup-2017-09-01-17-05-mwoy-117119263.sql 
Preparing to import /app/docroot/backup-2017-09-01-17-05-mwoy-117119263.sql into drupal8 on database:3306 as drupal8...
Importing /app/docroot/backup-2017-09-01-17-05-mwoy-117119263.sql...
10.8MiB 0:00:30 [ 362KiB/s] [================================>] 100%            
Import completed with status code 0
@pirog pirog self-assigned this Sep 2, 2017
@pirog pirog added the bug Something aint working right! label Sep 2, 2017
@pirog pirog added this to the 3.0.0-rc.1 milestone Sep 2, 2017
@pirog
Copy link
Sponsor Member

pirog commented Sep 2, 2017

@uberhacker can def replicate this.

Easy to fix and will add some documentation around it to satisfy #316 as well.

thanks for the great bug report!

@slefevre
Copy link

I've just discovered that my version of lando can't find files to import outside of the current directory, not just subfolders. I was trying to reference a file in my home dir:

username@jakku-deb9-vm:~/lando/website$ lando db-import ~/website_live_2020-04-21T02-00-00_UTC_database.sql.gz
File /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz not found!

Notice that it was able to expand ~ to /home/username/, so it doesn't seem to be a problem with that expression. Trying the full path to my home directory didn't work either:

username@jakku-deb9-vm:~/lando/website$ lando db-import /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz
File /home/username/website_live_2020-04-21T02-00-00_UTC_database.sql.gz not found!

OS and lando versions:

username@jakku-deb9-vm:~/lando/website$ lando version
v3.0.0-rrc.4

username@jakku-deb9-vm:~/lando/website$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"

Copying the file into the lando root did work:

username@jakku-deb9-vm:~/lando/website$ cp website_live_2020-04-21T02-00-00_UTC_database.sql.gz . 
 
username@jakku-deb9-vm:~/lando/website$ lando db-import website_live_2020-04-21T02-00-00_UTC_database.sql.gz
Preparing to import /app/website_live_2020-04-21T02-00-00_UTC_database.sql.gz into database 'pantheon' on service 'database' as user root...
Destroying all current tables in pantheon...
NOTE: See the --no-wipe flag to avoid this step!
Gzipped file detected!
Importing /app/website_live_2020-04-21T02-00-00_UTC_database.sql.gz...

@pirog
Copy link
Sponsor Member

pirog commented Apr 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something aint working right!
Projects
None yet
Development

No branches or pull requests

3 participants