flurinduerst / WPDistillery

WordPress Setup runner for Scotch Box
Other
267 stars 63 forks source link

mkdir(): Permission denied #66

Closed dcolumbus closed 6 years ago

dcolumbus commented 6 years ago

Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.

Here is the entire install process:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'scotch/box'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'scotch/box' is up to date...
==> default: There was a problem while downloading the metadata for your box
==> default: to check for updates. This is not an error, since it is usually due
==> default: to temporary network problems. This is just a warning. The problem
==> default: encountered was:
==> default: 
==> default: The requested URL returned error: 404 Not Found
==> default: 
==> default: If you want to check for box updates, verify your network connection
==> default: is valid and try again.
==> default: Setting the name of the VM: clientsite_default_1518554457254_1897
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: password
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default: 
    default: Guest Additions Version: 4.3.28
    default: VirtualBox Version: 5.1
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater] Writing the following entries to (/etc/hosts)
==> default: [vagrant-hostsupdater]   192.168.33.10  wpdistillery.vm  # VAGRANT: 0243e6d70f6f01a4c3e5cb0b9999d9e4 (default) / d374c4b5-d393-44fb-9b33-091826110b5f
==> default: [vagrant-hostsupdater] This operation requires administrative access. You may skip it by manually adding equivalent entries to the hosts file.
Password:
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
    default: /var/www => /Users/mycomputer/Development/clientsite
==> default: Running provisioner: shell...
    default: Running: /var/folders/4z/mv73g4m12ws75hq0v3y8jv4w0000gn/T/vagrant-shell20180213-25615-17kdbrt.sh
==> default: stdin: is not a tty
==> default: == Update WP CLI (re-install) ==
==> default: WP-CLI Update done
==> default: == Run WPDistillery ==
==> default: ========== WPDISTILLERY START ==========
==> default: »»» creating WP Folder public...
==> default: [=== INSTALL WORDPRESS ===]
==> default: »»» downloading WordPress...
==> default: Downloading WordPress 4.9.4 (en_US)...
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: md5 hash verified: ff84abd9ec38b93ef0ea09b05e85467b
==> default: Success: WordPress downloaded.
==> default: »»» creating wp-config...
==> default: Success: Generated 'wp-config.php' file.
==> default: »»» installing WordPress...
==> default: Success: WordPress installed successfully.
==> default: Success: Updated user 1.
==> default: »»» configure settings...
==> default: » timezone:
==> default: Success: Updated 'timezone' option.
==> default: Success: Updated 'timezone_string' option.
==> default: » permalink structure:
==> default: Success: Rewrite rules flushed.
==> default: Success: Rewrite structure set.
==> default: Warning: Regenerating a .htaccess file requires special configuration. See usage docs.
==> default: Success: Rewrite rules flushed.
==> default: » description:
==> default: Success: Updated 'blogdescription' option.
==> default: » image sizes:
==> default: Success: Value passed for 'thumbnail_size_w' option is unchanged.
==> default: Success: Value passed for 'thumbnail_size_h' option is unchanged.
==> default: Success: Value passed for 'medium_size_w' option is unchanged.
==> default: Success: Value passed for 'medium_size_h' option is unchanged.
==> default: Success: Value passed for 'large_size_w' option is unchanged.
==> default: Success: Value passed for 'large_size_h' option is unchanged.
==> default: Success: Updated 'convert_smilies' option.
==> default: » front page:
==> default: Success: Created post 3.
==> default: Success: Updated 'page_on_front' option.
==> default: Success: Updated 'show_on_front' option.
==> default: [=== CONFIGURE THEMES ===]
==> default: »»» downloading WPSeed...
==> default: Downloading installation package from https://github.com/flurinduerst/WPSeed/archive/master.zip...
==> default: Unpacking the package...
==> default: Installing the theme...
==> default: Renamed Github-based project from 'WPSeed-master' to 'WPSeed'.
==> default: Removing the old version of the theme...
==> default: Theme updated successfully.
==> default: Success: Installed 1 of 1 themes.
==> default: »»» installing/activating WPSeed...
==> default: Success: Switched to 'WPSeed' theme.
==> default: »»» removing default themes...
==> default: » removing twentyfifteen...
==> default: Deleted 'twentyfifteen' theme.
==> default: Success: Deleted 1 of 1 themes.
==> default: » removing twentysixteen...
==> default: Deleted 'twentysixteen' theme.
==> default: Success: Deleted 1 of 1 themes.
==> default: » removing twentyseventeen...
==> default: Deleted 'twentyseventeen' theme.
==> default: Success: Deleted 1 of 1 themes.
==> default: [=== CLEANUP ===]
==> default: »»» removing default comment...
==> default: Success: Deleted comment 1.
==> default: »»» removing default posts...
==> default: Success: Deleted post 1.
==> default: Success: Deleted post 2.
==> default: »»» removing WP readme/license files...
==> default: [=== PLUGINS ===]
==> default: »»» removing WP default plugins
==> default: Deleted 'akismet' plugin.
==> default: Success: Deleted 1 of 1 plugins.
==> default: Deleted 'hello' plugin.
==> default: Success: Deleted 1 of 1 plugins.
==> default: »»» adding active plugins
==> default: Installing Disable Comments (1.7.1)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/disable-comments.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'disable-comments'...
==> default: Plugin 'disable-comments' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Duplicate Post (3.2.1)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/duplicate-post.3.2.1.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'duplicate-post'...
==> default: Plugin 'duplicate-post' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Enable Media Replace (3.1.1)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/enable-media-replace.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'enable-media-replace'...
==> default: Plugin 'enable-media-replace' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Favicon by RealFaviconGenerator (1.3.11)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/favicon-by-realfavicongenerator.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'favicon-by-realfavicongenerator'...
==> default: Plugin 'favicon-by-realfavicongenerator' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Regenerate Thumbnails (3.0.2)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/regenerate-thumbnails.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'regenerate-thumbnails'...
==> default: Plugin 'regenerate-thumbnails' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Simple Page Ordering (2.2.4)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/simple-page-ordering.2.2.4.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'simple-page-ordering'...
==> default: Plugin 'simple-page-ordering' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing User Switching (1.3.0)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/user-switching.1.3.0.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Activating 'user-switching'...
==> default: Plugin 'user-switching' activated.
==> default: Success: Installed 1 of 1 plugins.
==> default: »»» adding inactive plugins
==> default: Installing Custom Post Type UI (1.5.6)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/custom-post-type-ui.1.5.6.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Search & Replace (3.1.2)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/search-and-replace.3.1.2.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Capability Manager Enhanced (1.5.7)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/capability-manager-enhanced.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Adminimize (1.11.4)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/adminimize.1.11.4.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Admin Menu Editor (1.8.2)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/admin-menu-editor.1.8.2.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing Admin Menu Reorder (1.1)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/admin-menu-reorder.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing The SEO Framework (3.0.3)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/autodescription.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing WP Security Audit Log (3.0.1)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/wp-security-audit-log.3.0.1.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: Installing BackWPup – WordPress Backup Plugin (3.4.4)
==> default: Warning: Failed to create directory '/root/.wp-cli/cache/': mkdir(): Permission denied.
==> default: Downloading installation package from https://downloads.wordpress.org/plugin/backwpup.3.4.4.zip...
==> default: Unpacking the package...
==> default: Installing the plugin...
==> default: Plugin installed successfully.
==> default: Success: Installed 1 of 1 plugins.
==> default: »»» checking wp cli version
==> default: Success: WP-CLI is at the latest version.
==> default: ========== WPDISTILLERY FINISHED ==========
flurinduerst commented 6 years ago

Hi, this is an uncritical bug (caused by vagrant/scotchox settings) that does not abort the installation. See my answer in https://github.com/flurinduerst/WPDistillery/issues/57#issuecomment-340831944. (Only the first code-snippet is relevant in this case).

Thanks for pointing this out anyway :)

wondergiant commented 6 years ago

@dcolumbus After getting these errors were you still able to get the site to run (i.e. uncritical as flurnduerst says)? I had the exact same issue last night, and was never able to get the site to run.

dcolumbus commented 6 years ago

@wondergiant The last time I went through this, I wasn’t able to get the site to run properly. Ironically this time I was able to get it to run, but it was so sluggish it was basically unusable.

wondergiant commented 6 years ago

@dcolumbus Glad I am not the only one. I made sure to update wp-cli, vagrant, vagrantbox. Completely wiped (vagrant destroy) and fired it up multiple times with no luck. I'll report back if I ever find a solution to this "noncritical" critical bug.

dcolumbus commented 6 years ago

@wondergiant Yeah, I feel like there shouldn’t be any warnings or failures in this build process... plus, the fact that the issue is with a cache directory makes me suspect that’s why my machine is running so slow.

flurinduerst commented 6 years ago

@wondergiant

I made sure to update wp-cli, vagrant, vagrantbox. Completely wiped (vagrant destroy) and fired it up multiple times with no luck. I'll report back if I ever find a solution to this "noncritical" critical bug.

If you're installation doesn't work or is aborting, this error-message is not the cause of it for certain. I would not lable a breaking bug with "noncritical" if it werent. By the way: Updating your local wp-cli doesn't affect the WPDistillery-setup as WP-CLI is run on the vagrantbox and will update itself by WPDistillery.

@dcolumbus

Yeah, I feel like there shouldn’t be any warnings or failures in this build process... plus, the fact that the issue is with a cache directory makes me suspect that’s why my machine is running so slow.

The cache error comes from WP-CLI itself and does not affect the speed of your machine in any way. Note: I can only access or modify whatever scotchbox gives me, so there are some limitations to what WPDistillery can do, and where it can't fix issues regarding scotchbox.

I'm doing all this in my free-time, didn't earn one cent with WPDistillery and I'm happy to help if there are any problems. But please make sure to be as constructive as possible. Thanks.