Server is unreachable, invalid upload path

a.bond - October 27, 2009 - 16:26
Project:Web File Manager
Version:6.x-2.11
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

This is a new installation of WebFM on Drupal 6.14. I've set a WebFM root directory in admin/settings/webfm. The directory exists and has permissions of 775. However, when I go to the WebFM browser, highlighted in yellow on the left it says "Server is unreachable". If I try to upload a file, I get an "invalid upload path" error. What could be causing this?

#1

a.bond - October 29, 2009 - 17:38
Priority:normal» critical

To update, I've noticed that when I attempt to upload a file, Drupal logs an "access denied" error on http://theajispace.com/?q=webfm_js from an anonymous account from my ip. I'm logged in, so I'm not sure why Drupal's logging it as an anomyous user. If webfm_js is an essential file, my lack of ability to load it might be causing the error.

I have clean urls on, so I'm not sure why it's using the ?q syntax here. Also, my site is set to the www.theajispace.com domain, so could the error be associated with the fact that the module is leaving off the www?

#2

a.bond - October 30, 2009 - 16:29

Per this issue I also tried it with permissions 777 with no success. I'm not using the global redirect module. I tried opening the link directly (/?=webfm_js), and I got an empty file. I'm attempting to use webfm as user 1, so permissions shouldn't be an issue. When I open /webfm in IE8, IE8 reports an access denied error on sites/all/modules/webfm/js/webfm.js?M Odd that IE8 reports it on webfm.js and Chrome reports it on webfm_js. If I try to load the file directly, I can, so I'm not sure what kind of permissions error is going on here.

#3

a.bond - October 30, 2009 - 16:48

I just found the "javascript debug messages" option and activated it. When I try to upload a file, the debug message it generates is "current directory undefined". I have a root directory defined in admin/settings/webfm, so I don't know why it's generating this message.

#4

Niels Hackius - October 31, 2009 - 11:06
Priority:critical» normal

Have you tried:

  • Using the default Garland theme
  • Deactivating caching
  • Deactivating all other modules
  • Logging in with the site maintainer account (uid=1)?
  • Reinstalling the module
  • Updating to a current version from cvs?

Also:

  • Did you check your webserver and (su)php error logs?
  • Did you delete the directories created by webfm and allowed to to recreate them automatically?

#5

a.bond - November 2, 2009 - 17:19

I've tried deactivating caching, reinstalling the module, and using uid=1. I've deleted the directories created by webfm and allowed them to recreate automagically. I am running the current version, which is the only version I've run. I'm trying to add functionality to an existing live site, so I can't deactivate all other modules.

My error logs show the same message as the Drupal watchdog error logs:

*My IP* - - [02/Nov/2009:10:08:13 -0700] "GET /?q=webfm_js HTTP/1.1" 403 7909 "http://www.theajispace.com/webfm" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.27 Safari/532.0"

#6

Niels Hackius - November 3, 2009 - 14:12

I noticed you've got some kind of "forward" once I visit your site - maybe there is an interference?

#7

a.bond - November 3, 2009 - 17:09

In the htaccess I'm using the pre-coded rewrite condition to try to force the url to www instead of the plain version, and I have a javascript redirect to redirect anonymous users to the login page, so that only people with accounts can view the site. I'm also using a triggered action to redirect users on login to front instead of to profile. Are any of those what you're referring to? I disabled the javascript anonymous user redirect, but that didn't fix the problem.

#8

a.bond - November 3, 2009 - 22:27
Status:active» fixed

Figured it out, in my settings.php it had my domain without the www. Without the www, Drupal was treating the request for the JS file as an anonymous request and forbidding it.

#9

System Message - November 17, 2009 - 22:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.