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

Failure on Option 4 - Site Import #39

Open
aitala opened this issue Apr 22, 2015 · 6 comments
Open

Failure on Option 4 - Site Import #39

aitala opened this issue Apr 22, 2015 · 6 comments

Comments

@aitala
Copy link
Contributor

aitala commented Apr 22, 2015

Here is the error 'message' I'm getting... the "rm: cannot remove `nittany/sites/default/settings.php': Permission denied" is the where things start going wrong, but I also don't understand how it is happening...


nittany.sql

sent 30 bytes received 7375667 bytes 1639043.78 bytes/sec
total size is 71434329 speedup is 9.69
rm: cannot remove `nittany/sites/default/settings.php': Permission denied
You are about to CREATE the 'nittany' database. Do you want to continue? (y/n): y
Starting Drupal installation. This takes a few seconds ... [ok]
WD php: Exception: To start over, you must empty your existing database.To install to a different database, edit [error]
the appropriate settings.php file in the sites folder.To upgrade an existing installation, proceed to the update
script.View your existing site. in install_begin_request() (line 301 of
/var/www/html/nittany/includes/install.core.inc).
WD php: Warning: Cannot modify header information - headers already sent by (output started at [warning]
/home/vagrant/.composer/vendor/drush/drush/includes/output.inc:38) in drupal_send_headers() (line 1212 of
/var/www/html/nittany/includes/bootstrap.inc).
Exception:

  • To start over, you must empty your existing database.
  • To install to a different database, edit the appropriate settings.php file in the sites folder.
  • To upgrade an existing installation, proceed to the update script.
  • View your existing site.
in install_begin_request() (line 301 of /var/www/html/nittany/includes/install.core.inc).
Drush command terminated abnormally due to an unrecoverable error. [error]
Do you really want to drop all tables in the database ipmsusa3_drupal7? (y/n): y
No tables to drop. [ok]
ERROR 1045 (28000): Access denied for user 'ipmsusa3_d7'@'localhost' (using password: YES)
Query failed. [error]
You need to specify an alias or run this command within a drupal site. [error]
'drush' cache was cleared. [success]

The following post-sync operations will be done on the destination:

  • Reset passwords and email addresses in user table
  • Truncate Drupal's sessions table

Do you really want to sanitize the current database? (y/n):

@bradallenfisher
Copy link
Contributor

Do you have a default settings file?
On Apr 22, 2015 11:17 AM, "Eric Aitala" notifications@github.com wrote:

Here is the error 'message' I'm getting... the "rm: cannot remove
`nittany/sites/default/settings.php': Permission denied" is the where

things start going wrong, but I also don't understand how it is happening...

nittany.sql

sent 30 bytes received 7375667 bytes 1639043.78 bytes/sec
total size is 71434329 speedup is 9.69
rm: cannot remove `nittany/sites/default/settings.php': Permission denied
You are about to CREATE the 'nittany' database. Do you want to continue?
(y/n): y
Starting Drupal installation. This takes a few seconds ... [ok]
WD php: Exception: To start over, you must empty your existing database.To
install to a different database, edit [error]
the appropriate settings.php file in the sites folder.To upgrade an
existing installation, proceed to the update
script.View your existing site. in install_begin_request() (line 301 of
/var/www/html/nittany/includes/install.core.inc).
WD php: Warning: Cannot modify header information - headers already sent
by (output started at [warning]
/home/vagrant/.composer/vendor/drush/drush/includes/output.inc:38) in
drupal_send_headers() (line 1212 of
/var/www/html/nittany/includes/bootstrap.inc).
Exception:

in install_begin_request() (line 301 of
/var/www/html/nittany/includes/install.core.inc).
Drush command terminated abnormally due to an unrecoverable error. [error]
Do you really want to drop all tables in the database ipmsusa3_drupal7?
(y/n): y
No tables to drop. [ok]
ERROR 1045 (28000): Access denied for user 'ipmsusa3_d7'@'localhost'
(using password: YES)
Query failed. [error]
You need to specify an alias or run this command within a drupal site.
[error]
'drush' cache was cleared. [success]

The following post-sync operations will be done on the destination:

  • Reset passwords and email addresses in user table
  • Truncate Drupal's sessions table

Do you really want to sanitize the current database? (y/n):


Reply to this email directly or view it on GitHub
#39.

@aitala
Copy link
Contributor Author

aitala commented Apr 22, 2015

Yup... in both places.

@aitala
Copy link
Contributor Author

aitala commented Apr 22, 2015

Ok.. Oddness in the 'live' site. Be careful of odd permissions/owners of the default directory and files within.

@aitala aitala closed this as completed Apr 22, 2015
@btopro
Copy link
Member

btopro commented Apr 22, 2015

I don't think this is closed. Rsync can do some weird stuff w. User and perms or at least not what is expected. Maybe we could chown and chmod correctly after rsync to be safe, thus avoiding these issues.

@btopro btopro reopened this Apr 22, 2015
@jpat14
Copy link

jpat14 commented Apr 22, 2015

If you run sudo rsync, you can use -g to preserve group ownership and -o to preserve user ownership, and -p to preserve permissions (or archive mode performs all of these)

@btopro
Copy link
Member

btopro commented Apr 22, 2015

well, I think we just need to chown settings.php correctly to remove it and then we should make sure there's a default.settings.php in place. This is done so that the username / password are blown away from the theoretical production copy of settings.php and then rebuilt by vagrant via a drush SI minimal before doing the sql import.

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

4 participants