I've put the addresses in for my sites (Drupal 6) and I'm getting an Internal Server Error on the DRD Management page.

Error log (D7 site) gives me the following error:

LOCATION http://www.mysites.com/drupal7_root/drd/interact,http://www.mysites.com/...
REFERRER http://www.mysites.com/drupal7_root/admin/drd?render=overlay&render=overlay
MESSAGE drd/interact,http:/www.mysites.com/drupal7_root/drd/interact
SEVERITY warning

Any ideas?

CommentFileSizeAuthor
#15 drd_debug_common_in_1.patch570 bytesjurgenhaas
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jurgenhaas’s picture

Are you getting printed text saying "Internal Server Error" or are you getting a dialog box with an internal server error?

Is there anything in the error log of your D6 site?

Have you created the sites.php file on your D6 server?

Can you please check the PHP error log file on both your D6 and your D7 servers?

amariotti’s picture

Are you getting printed text saying "Internal Server Error" or are you getting a dialog box with an internal server error?
I'm getting the printed text saying "Internal Server Error" when I click on the arrow next to each site. I set 2 up and am getting the same error on both so I figured that I had done something wrong.

Is there anything in the error log of your D6 site?
Nope

Have you created the sites.php file on your D6 server?
Yes, I have created the sites.php file. Here's a sample of what it looks like:

<?php
  $sites = array(
    'sitename1.com' => 'sitename1.com',
    'www.sitename2.com' => 'www.sitename2.com',
    'www.sitename3.com' => 'www.sitename3.com',
    'sitename4.com' => 'sitename4.com',
  );

Can you please check the PHP error log file on both your D6 and your D7 servers?
Not seeing errors in the error log file related to this.

Let me explain my set-up to you to see if my set-up is causing a problem.

I have a Linux server and in the htdocs folder I have a drupal7_root folder that has the most recent d7-dev in it. I installed the DRD module there. Then in the same htdocs folder I have a drupal_root folder running the two sites that I'm trying to connect to. I have installed the drd_server module on both of them, and have used the login credentials of the admin users that have access to the Administer Site Configuration permission. Is this set-up friendly to multi-site set-ups? I imagine that it would be since it's using the site.php file. Hopefully we can troubleshoot this and then maybe I'll help with some documentation, since there isn't much at this point.

jurgenhaas’s picture

Thanks for providing all the details. It's not yet obvious what's going wrong, but we'll be getting there.

First of all, your setup seems OK, however let me diig into this frist:

From the description above you're running 2 Drupal "servers", one in the drupal7_root foder and one in the drupal_root folder. So, in the dashboard of DRD you should input two servers, one pointing to the first and the other pointing to the second server. All the domains to the sites (called "domain" in DRD) will then be recognized automatically.

Now, the fact you're getting "Internal Server Error" printed as text in the content means that the error occured on the remote "server". Are you sure there is nothing in the PHP error log and nothing in watchdog of the remote sites?

So, we need to track this in smaller steps. It's probably best if you have only one server configured as a start. I suggest you configure the Drupal 6 server (the one in drupal_root) as you single server and we try to get this responding first.

If you still get the error printed instead of a list of domain, you can click on the icons in the server list. For eaxmple, if you click on the "i" icon, DRD is getting the name of the server and the status report from the remote server. Can you please confirm if that is working? It would be helpful if you used Firefox with the extension Firebug, then you could have a look in the console and see the communication between your browser and the DRD server.

If that works, you can try some of the other icons to see what happens next.

BTW, your offer to help with documentation is great. Thanks, I can do with some help on this project as there is so much we can do with it... But don't forget, this is pretty early stage. However, there is some documentation here: http://www.paragon-es.de/project/drd - not sure if you've seen that before?

If nothing of that helps, I will be building some debugging information into DRD and DRD Server tomorrow, so that we can more easily find out what's going on where and when.

amariotti’s picture

I uninstalled (manually) the module and reinstalled it from scratch just to see if there was some issue along the way. From scratch I typed in the primary domain of the default site under drupal_root and I'm still getting Internal Server Error.

Just to see if I got the same result I took and installed the Server module on my web host and tried to connect to it from here and I got a different error, "Parse error. Not well formed."

These servers don't require that you have an SVN set-up, do they? I hope not, because if they do then that's my problem. I was kind of assuming that it wasn't required since I didn't get an error or anything when saving.

I did see that page and the documentation did help out a lot. Thanks!

Keep in touch with me tomorrow once you have the debugging in place. This is hard to troubleshoot without any real error codes to help hint as to what's going on. It might just be something stupid. After tomorrow if we still can't get it to work then I'll probably get with you via IM (Google Talk) and give you access to the sites that I'm doing. I'd really love to get this thing up and running... it would save me a TON of time. :)

Thanks for your hard work on this!

jurgenhaas’s picture

I've now implemented debugging info in DRD (not yet in DRD Server). Please download and turn debugging on (go to admin/drd/settings). All debugging gets written to watchdog. Have a look what's happening and I'm looking forward to your further reports.

amariotti’s picture

I replaced the old module, tried to run update.php (wouldn't let me, said there were no updates), and I can't access the settings page for some reason.

I am getting the following error, I'm assuming because I can't get to the settings page and turn debugging on... ideas?

Notice: Undefined variable: debug_id in drd_interact() (line 181 of /srv/www/htdocs/drupal7_root/sites/all/modules/drd/drd.module).

One more thing to note... which shouldn't be an issue... I'm using Google Chrome (dev) on the Mac.

jurgenhaas’s picture

The first problem, that you can't get into the settings requires a flush menu cache. The menu needs to be rebuild so that the path to the settings gets registered.

The second problem is that the debug_id doesn't get created because your browser is using the old version of the Javascript file. Please clean your browser cache and retry.

amariotti’s picture

Cleaned my cache, got to the settings page and turned on debug mode, tried the page again and got the following error in my watchdog:

TYPE	drd[2]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[9001] Error
Exception, [500] Internal Server Error, _drd_xmlrpc(), /path/to/htdocs/folder/drupal7_root/sites/all/modules/drd/drd.dashboard.inc, 466
SEVERITY	error
HOSTNAME	205.122.20.62
OPERATIONS	

Hopefully this helps.

jurgenhaas’s picture

That indicates that an error happened on the remote server. To find out during what action that happened, pleae see in you watchdog for other records of type drd[2], pne of which is called Start AJAX call. In the details we'll see what the call to the remote server was.

amariotti’s picture

Here is a list of the error's in order starting with drd[1] to drd[2]:

TYPE	drd[1]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[1001] Start AJAX Call
op = ServerInfo
server-id = 0
domain-id = undefined
url = 
SEVERITY	debug
HOSTNAME	100.100.100.100
OPERATIONS	

TYPE	drd[1]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[9001] Error
Exception, [500] Internal Server Error, _drd_xmlrpc(), /drupal7_root/sites/all/modules/drd/drd.dashboard.inc, 466
SEVERITY	error
HOSTNAME	100.100.100.100
OPERATIONS	

TYPE	drd[1]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[1002] Finish AJAX Call
SEVERITY	debug
HOSTNAME	100.100.100.100
OPERATIONS	

TYPE	drd[2]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[1001] Start AJAX Call
op = ServerDomains
server-id = 0
domain-id = undefined
url = 
SEVERITY	debug
HOSTNAME	100.100.100.100
OPERATIONS	

TYPE	drd[2]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[9001] Error
Exception, [500] Internal Server Error, _drd_xmlrpc(), /drupal7_root/sites/all/modules/drd/drd.dashboard.inc, 466
SEVERITY	error
HOSTNAME	100.100.100.100
OPERATIONS	

TYPE	drd[2]
DATE	Friday, January 8, 2010 - 13:24
USER	admin
LOCATION	http://www.mysite.com/drupal7_root/drd/interact
REFERRER	http://www.mysite.com/drupal7_root/admin/drd?render=overlay
MESSAGE	[1002] Finish AJAX Call
SEVERITY	debug
HOSTNAME	100.100.100.100
OPERATIONS	
jurgenhaas’s picture

So there is something wrong at the remote site. I've now improved debugging detail and uploaded a new dev version for drd. This should be available in 3-4 hours for download or you go to the CVS repository (http://drupal.org/project/cvs/674616) and download the changed files directly.

I will be around over the weekend and continue working on this. Would be great if you were there for tests and feedback too. Otherwise we continue next week.

jurgenhaas’s picture

BTW, as caching us currently under development, there won't be any data called from remote server at the moment when loading the dashboard. Just click on one of the red icons to execute the function manually. I'll be fixing this tomorrow.

amariotti’s picture

Here is the latest error:

TYPE	drd[8]
DATE	Friday, January 8, 2010 - 16:34
USER	admin
LOCATION	http://www.mysite.edu/drupal7_root/drd/interact
REFERRER	http://www.mysite.edu/drupal7_root/admin/drd?render=overlay
MESSAGE	[9001] Error
Exception Object
(
    [message:protected] => [-32700] Parse error. Not well formed, Array
(
    [0] => http://remotesite.com/xmlrpc.php
    [1] => drd.connect
    [2] => drduser
    [3] => drdpassword
)

    [string:private] => 
    [code:protected] => 0
    [file:protected] => /path/to/htdocs/drupal7_root/sites/all/modules/drd/drd.dashboard.inc
    [line:protected] => 466
    [trace:private] => Array
        (
            [0] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/sites/all/modules/drd/drd.dashboard.inc
                    [line] => 148
                    [function] => _drd_xmlrpc
                    [args] => Array
                        (
                            [0] => http://remotesite.com/xmlrpc.php
                            [1] => drd.connect
                            [2] => drduser
                            [3] => drdpassword
                        )

                )

            [1] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/sites/all/modules/drd/drd.dashboard.inc
                    [line] => 225
                    [function] => drd_session
                    [args] => Array
                        (
                            [0] => 1
                        )

                )

            [2] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/sites/all/modules/drd/drd.module
                    [line] => 136
                    [function] => drd_dashboard_server_info
                    [args] => Array
                        (
                            [0] => 1
                        )

                )

            [3] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/sites/all/modules/drd/drd.module
                    [line] => 280
                    [function] => drd_execute
                    [args] => Array
                        (
                            [0] => 8
                            [1] => 1
                            [2] => 
                            [3] => 
                            [4] => ServerInfo
                        )

                )

            [4] => Array
                (
                    [function] => drd_interact
                    [args] => Array
                        (
                        )

                )

            [5] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/includes/menu.inc
                    [line] => 466
                    [function] => call_user_func_array
                    [args] => Array
                        (
                            [0] => drd_interact
                            [1] => Array
                                (
                                )

                        )

                )

            [6] => Array
                (
                    [file] => /path/to/htdocs/drupal7_root/index.php
                    [line] => 22
                    [function] => menu_execute_active_handler
                    [args] => Array
                        (
                        )

                )

        )

)
SEVERITY	error
HOSTNAME	100.100.100.100
OPERATIONS	
amariotti’s picture

It doesn't do anything when I click on the icons. Not really sure what that's supposed to mean...

jurgenhaas’s picture

FileSize
570 bytes

We are getting closer! Good news is that your dashboard server is able to connect to your Drupal 6 server and gets a response. That not too bad as a start. However, the result is not well formed and that's strange.

Trouble is that Drupal has no mechanism to access the response data out of the box, therefore we need to patch one of its core files to get access to the response to be able to analyze it and find out what's wrong.

Please apply the attached patch to the /includes/common.inc file in your Drupal 7 installation. No worries, this patch doesn't break anything else and you can easily revert to the original version later on.

Let's see what we get from this step.

amariotti’s picture

Here is a unique error that I got that seemed different than the rest that I've sent to you in the past. If there's something else from the log that you want then let me know:

[1003] Output
HTTP/1.0 500 Internal Server Error
Date: Mon, 11 Jan 2010 18:57:41 GMT
Server: Apache/2.2.3 (Linux/SUSE)
X-Powered-By: PHP/5.2.5
Set-Cookie: SESS80ddf674c422b6ad517464ef7c81c60b=ooes6cphebcqi6f0jnv4oqrn43; expires=Wed, 03 Feb 2010 22:31:01 GMT; path=/; domain=.datc.edu
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Mon, 11 Jan 2010 18:57:41 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Content-Length: 0
Connection: close
Content-Type: text/html; charset=utf-8
jurgenhaas’s picture

From this output it seems as if there was an empty string as feedback from the remote server. This is becomming very difficult to debug this way. Would you mind giving me access to your sites so that I can try and find out what's going wrong? You can PM me or contact me via Skype, my username is jurgenhaas.

amariotti’s picture

Good idea.

amariotti’s picture

Latest error:

Error of type Exception occured: [-32601] Server error. Requested method drd.connect not specified. (http://site7.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [-32601] Server error. Requested method drd.connect not specified. (http://site6.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [500] Internal Server Error (http://site5.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [-32601] Server error. Requested method drd.connect not specified. (http://site4.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [500] Internal Server Error (http://site3.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [-32601] Server error. Requested method drd.connect not specified. (http://site2.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
Error of type Exception occured: [-32601] Server error. Requested method drd.connect not specified. (http://site1.com/xmlrpc.php->drd.connect), _drd_xmlrpc(), /path/to/d7/root/sites/all/modules/drd/drd.dashboard.inc, 487
jurgenhaas’s picture

So, those error messages do indicate, that the module drd_server is not installed on the sites http://site1.com etc. so you need to install them on each domain that you want to manage from DRD. Also, you have to have a user on those domains with the same username and password that you defined for the server.

jurgenhaas’s picture

Status: Active » Needs review

Just reporting back to the community on some tests that @amariotti and I performed last night. We got it all working with the latest releases of drd and drd_server. The only negative effect being left is that (1) the status report shows some empty areas (!?) and the list of available updates reports success but it's empty. We do suspect that this could be because the client server on D6 is using SSL and DRD is not yet supporting this protocol.

There will be some more tests with another server and we'll then update this ticket.

jurgenhaas’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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