本地文件系统是只读的

本地文件系统是只读的

本文介绍了警告:unlink():本地文件系统是只读的,取消链接失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级到GoogleAppEngineLauncher 1.9.20.242后,我似乎再也无法在本地计算机上升级WordPress。

 正在下载https://downloads.wordpress.org/plugin/akismet.3.1.1.zip... 

警告:unlink():本地文件系统是只读的,在/ Applications / MAMP / htdocs / googleappengine / coworking-radolfzell.de / wordpress / wp-admin / includes / file.php在线453

下载失败。无法通过fopen()打开与/Applications/MAMP/htdocs/googleappengine/coworking-radolfzell.de/wordpress/wp-content/tmp/akismet5.tmp的连接

我尝试以各种方式调整权限,但没有成功,这就是wp-content文件夹的样子:

  -rwxrwxrwx 1 nick admin 30 Apr 25 2014 index.php 
drwxrwxrwx 12 nick admin 408 Apr 28 2014 languages
drwxrwxrwx 9 nick admin 306 Feb 27 00 :11个插件
drwxrwxrwx 6 nick admin 204 Feb 20 16:53主题
drwxrwxrwx 8 nick admin 272 May 13 12:38 tmp
drwxrwxrwx 2 nick admin 68 Feb 27 00:11 upgrade
drwxrwxrwx 4 nick admin 136 Apr 25 2014上传

有什么想法可能会在此丢失?看起来像GoogleAppEngineLauncher中的一个错误,因为它在最新更新之前工作正常,我没有对本地安装进行任何更改(我敢肯定,因为它都在版本控制之下)。

解决方案

这绝对是GoogleAppEngineLauncher最新版本中的一个错误。与此同时,我升级到1.9.23,但仍然是相同的文件系统是只读的错误。



当我使用MAMP而不是GoogleAppEngineLauncher的web服务器,插件和核心更新工作得很好。为了轻松绕开我的案例中的网站URL

  http:// localhost:9080 / 

只需将以下两行添加到您的wp-config.php文件中

  define('WP_HOME','http:// localhost:8888 / path / to / wordpress'); 
define('WP_SITEURL','http:// localhost:8888 / path / to / wordpress');

假设您使用MAMP的默认端口8888.现在通过,您应该可以在没有任何错误消息的情况下进行更新。

重要提示:在将更新部署到应用引擎之前,不要忘记删除或注释掉两行。

After upgrading to GoogleAppEngineLauncher 1.9.20.242 I can no longer seem to do upgrades on my local machine in WordPress.

Downloading https://downloads.wordpress.org/plugin/akismet.3.1.1.zip…

Warning: unlink(): The local filesystem is readonly, unlink failed in /Applications/MAMP/htdocs/googleappengine/coworking-radolfzell.de/wordpress/wp-admin/includes/file.php on line 453

Download failed. Could not open connection to /Applications/MAMP/htdocs/googleappengine/coworking-radolfzell.de/wordpress/wp-content/tmp/akismet5.tmp via fopen()

I've tried to adjust permissions in various ways with no success, this is how the wp-content folder looks like:

-rwxrwxrwx   1 nick  admin   30 Apr 25  2014 index.php
drwxrwxrwx  12 nick  admin  408 Apr 28  2014 languages
drwxrwxrwx   9 nick  admin  306 Feb 27 00:11 plugins
drwxrwxrwx   6 nick  admin  204 Feb 20 16:53 themes
drwxrwxrwx   8 nick  admin  272 May 13 12:38 tmp
drwxrwxrwx   2 nick  admin   68 Feb 27 00:11 upgrade
drwxrwxrwx   4 nick  admin  136 Apr 25  2014 uploads

Any ideas what I might be missing here? Looks like a bug in GoogleAppEngineLauncher to me as it was working fine before the latest update and I didn't make any changes to the local installation which I'm pretty sure about, because it's all under version control.

解决方案

This definitely seems to be a bug in more recent releases of GoogleAppEngineLauncher. In the meantime I upgraded to 1.9.23, but still get the same filesystem is readonly error.

When I use MAMP instead of GoogleAppEngineLauncher's web server the plugin and core updates work just fine. To easily circumvent the site URLs which in my case was

http://localhost:9080/

Just add the following 2 lines to your wp-config.php file

define('WP_HOME', 'http://localhost:8888/path/to/wordpress');
define('WP_SITEURL', 'http://localhost:8888/path/to/wordpress');

assuming that you use MAMP's default port 8888. Now call your WordPress backend via http://localhost:8888/path/to/wordpress and you should be able to do your updates without any error messages.

Important: Don't forget to remove or comment-out the 2 lines before you deploy your updates to app engine.

这篇关于警告:unlink():本地文件系统是只读的,取消链接失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:38