CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail in multisite config (2.0)
Pages: [1]

Author Topic: civimail in multisite config (2.0)  (Read 2519 times)

derek

  • Guest
civimail in multisite config (2.0)
April 30, 2008, 11:45:57 am
Hi there,

I'm trying to troubleshoot the civimail component for an installation of
civicrm 2.0 (drupal 5.7) on a standard debian etch server. We have civicrm 
installed in a multisite drupal platform, and everything appears to be working
correctly, except for civimail. Trying to access the SOAP server results in a
very unhelpful 500 Internal Server error. AFAICT, no other error message is
logged anywhere, so I'm having a very hard time trying to debug. Any
insight/pointers would be greatly appreciated.

More details:

Doing a wget of the soap server as:
Quote
wget --http-user=bikeunion --http-passwd=bikeunion http://tcu.anarres.ca/sites/bikeunion.to/modules/civicrm/extern/soap.php

(note: the .htaccess passwd is needed as the site is not launched yet, but i'm
sure it's not causing any problem, as the SMTP server trying to access civimail
has bypass permissions in apache and gets the same without the user/pass)

results in the following:
Quote
Resolving tcu.anarres.ca... 64.34.183.5
Connecting to tcu.anarres.ca[64.34.183.5]:80... connected.
HTTP request sent, awaiting response... 500 Internal Service Error
13:36:07 ERROR 500: Internal Service Error.

(and as i said- no further error msgs are logged in drupal or apache logs)

what's more, when i added a small 'print "foo";' line to soap.php below the
require_once() calls, i no longer got the 500 error, but wget instead
downloaded an XML document with the following contents:


Code: [Select]
foo<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
+xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:+Code><env:Reason><env:Text>Bad Request. Can't find
+HTTP_RAW_POST_DATA</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>

help?

Thanks,
Derek

jplumeyer

  • Guest
Re: civimail in multisite config (2.0)
April 30, 2008, 12:03:04 pm
Hi Derek,

we have a similar setup with password restriction and Debian Etch on our
server.

I needed to install these Debian packages, in order to get to the next text
adventure level:

libauthen-sasl-perl libfcgi-perl libmail-imapclient-perl libmail-verp-perl libmime-lite-perl libnet-jabber-perl libnet-xmpp-perl libossp-uuid15 libossp-uuid-perl libparse-recdescent-perl libsoap-lite-perl libxml-parser-perl libxml-stream-perl

Let me know if you need the imap2soap.conf that (I believe at least) worked
for me.

Cheers!

Jochen
(United Nations INSTRAW)

derek

  • Guest
Re: civimail in multisite config (2.0)
April 30, 2008, 12:17:07 pm
Jochen,

Thanks for your quick reply. I've installed these packages, but still no dice. If you could post your imap2soap.conf that might be helpful, although I'm a little confused because I didn't think we needed imap2soap.

I should mention that we're trying to setup this install to use the UAS CiviSMTP service, so it's possible we missed some important step in our end of the configuration, thinking it would be handled by UAS.

Thanks,
Derek

jplumeyer

  • Guest
Re: civimail in multisite config (2.0)
April 30, 2008, 12:48:31 pm
I'm not sure if there are other mechanisms to process the SOAP requests stored in the mail account, which is receiving unsubscribes and such.
We are using the imap2soap-2.1.pl script, which is using imap2soap.conf .
The processing is then triggered by executing imap2soap-2.1.pl .

Code: [Select]
#############################################################################################
#
# SET SERVER CONNECTION PARAMETERS HERE
#
#############################################################################################
# SOAP server (ie CiviCRM user details):
#
  $SOAP_Server   = 'http://AUTHUSERNAME:AUTHPASSWORD@crm.un-instraw.org:81/sites/all/modules/civicrm/extern/soap.php';  # your CiviCRM
  $SOAP_User     = 'CIVICRMUSERNAME';                    # user account with access to CiviCRM
  $SOAP_Password = 'CIVICRMPASSWORD';                   # password you set for this account
#
# Email user: don't forget to forward messages with VERP format to this account
# - the easy way is to set up a 'catch all'
#
  $imapHost = 'un-instraw.org';                 # e.g. mail.yourdomain.org
  $imapUser = 'MAILNAME_WHICH_RECEIVES_SOAP_REQUESTS';       # the user name you log into imap with
  $imapPass = 'MAILACCOUNT_PASSWORD';                       # your IMAP password
 
#
# Name of the Inbox folder on your IMAP system:
#
  $inBox = 'INBOX';

jplumeyer

  • Guest
Re: civimail in multisite config (2.0)
April 30, 2008, 01:08:40 pm
Sorry, I ignored the fact, that your problems are caused on the server side.

php5-imap Debian package is also necessary to run the /sites/bikeunion.to/modules/civicrm/extern/soap.php page.

Jochen

derek

  • Guest
Re: civimail in multisite config (2.0)
May 01, 2008, 09:58:14 am
Jochen,

Thanks for the suggestion- I've gone ahead and installed the php5-imap (as well as the other modules you mentioned, and I'm still getting the 500 Internal Server Error.

Doing a little more digging, I tried moving my print statement successively down each line of soap.php (fortunately a relatively small file) and discovered that it returns the XML document I pasted below until I place it below the last line of soap.php:

Quote
$server->handle();

I think this means the the handle() method call is causing the error, though I have no idea why. Ideas?

Thanks,
Derek

derek

  • Guest
Re: civimail in multisite config (2.0)
May 01, 2008, 10:31:46 am
Ok, digging around a little more, I found this bug: http://bugs.php.net/bug.php?id=41366

My problem seems to be an instance of this bug, apparently unresolved in PHP 5.2.2 (we're running 5.2.0-8+etch10) and no comments since May of last year. This troubles me greatly, and I guess I'm now looking for some workaround that CiviMail can provide, or an alternate way to run PHP for this site (and possible future sites) to use CiviCRM?

@Jochen: What version of Debian and PHP are you running?

Thanks,
Derek

ymmatt

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
Re: civimail in multisite config (2.0)
May 18, 2008, 09:37:22 pm
Has anyone gotten civimail working on a multisite configuration?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail in multisite config (2.0)

This forum was archived on 2017-11-26.