Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #31  
Old 26th April 2011, 15:31
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

I appear to be running Django 1.2.3-1ubu.
I'll apply the fix mentioned.

Thanks
Reply With Quote
Sponsored Links
  #32  
Old 26th April 2011, 15:40
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

I try to mark a message as spam using SA learn.
If I check the Spam option and submit I get Error connecting to server. check network!
Which log shows me what is going wrong?
Reply With Quote
  #33  
Old 26th April 2011, 15:50
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Open /usr/share/pyshared/baruwa/settings.py and set Debug = True.

Restart nginx/uwsgi/mailscanner services, clear out web browser cache and try it again. It should throw a traceback result. Paste it here if it does.

I suspect it's probably a javascript error.

You can try to disable javascript in IE, clear out cache, reconnect to baruwa and see what happens when you try to train. If it works, then it's a javascript error.
__________________
Home of the SpamSnake

Last edited by Rocky; 26th April 2011 at 15:56.
Reply With Quote
  #34  
Old 26th April 2011, 16:05
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

Set Debug=True, but no trace
Disable JS does not change behaviour

Last edited by padonker; 26th April 2011 at 16:09.
Reply With Quote
  #35  
Old 26th April 2011, 16:43
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Please redo:

chown -R postfix:www-data /var/spool/postfix/hold
chmod -R ug+rwx /var/spool/postfix/hold

Double check these values in /opt/MailScanner/etc/MailScanner.conf:
Run As User = postfix
Run As Group = www-data
Incoming Work Group = clamav
Incoming Work Permissions = 0640
Incoming Queue Dir = /var/spool/postfix/hold
Outgoing Queue Dir = /var/spool/postfix/incoming
MTA = postfix
Quarantine User = root
Quarantine Group = www-data
Quarantine Permissions = 0660
Quarantine Whole Message = yes
Spam Actions = deliver store
High Scoring Spam Actions = store delete
Non Spam Actions = deliver store
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin

After that, restart all your services and try it again.
__________________
Home of the SpamSnake
Reply With Quote
  #36  
Old 26th April 2011, 18:01
padonker padonker is offline
Member
 
Join Date: Apr 2009
Posts: 30
Thanks: 2
Thanked 1 Time in 1 Post
Default

All settings checked, rebooted, same result
Reply With Quote
  #37  
Old 26th April 2011, 19:18
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Ok, please go to http://lists.baruwa.org/mailman/listinfo/baruwa, sign up and create a post outlining your problem. We'll take it further from there.

Do you also by chance have MailScanner in /etc/MailScanner?
__________________
Home of the SpamSnake

Last edited by Rocky; 27th April 2011 at 13:52.
Reply With Quote
  #38  
Old 28th April 2011, 20:09
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Hey,

Can you check to see if this file found in /usr/share/pyshared/baruwa/static/js?

ajax-csrf-tokenize.js

I believe your setup might be missing it and thus the javascript issues.

Let me know.

Thanks,

Rocky
__________________
Home of the SpamSnake
Reply With Quote
  #39  
Old 25th June 2013, 00:50
Chluz Chluz is offline
Junior Member
 
Join Date: Jun 2013
Posts: 9
Thanks: 0
Thanked 4 Times in 4 Posts
 
Default "Table 'baruwa.south_migrationhistory' doesn't exist"

Hi guys,
thanks for the guide. I'm trying to figure this out but I'm only starting out on linux mail systems (this is to be used for a gateway to an exchange system).

I'm currently stuck at

# baruwa-admin syncdb --noinput
# for name in $(echo "accounts messages lists reports status fixups config"); do
baruwa-admin migrate $name;
done

Whenever I try and populate the table, I get a tracback message ending in
django.db.utils.DatabaseError: (1146, "Table 'baruwa.south_migrationhistory' doesn't exist")

.Any idea what causes this ? all other previous checks run as expected.

Thanks

EDIT : Dammit, posted this in the wrong forum, must have been very tired last night .... In a charitable mod want to move this to the 12.04 perfect spam snake forum I would be grateful. And Again, I'm very sorry.
In any case, I solved my problem. I was being an idiot and didn't know i had to initialise the db (by doing baruwa-admin syncdb --noinput , ie without the comment)
Thanks

Last edited by Chluz; 25th June 2013 at 14:12.
Reply With Quote
The Following User Says Thank You to Chluz For This Useful Post:
adamassasda291 (25th June 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfect server Ubuntu 10.10 squirrelmail problem swampy1979 HOWTO-Related Questions 6 27th September 2011 01:19
Clamav issue with The Perfect SpamSnake - Ubuntu Jeos 9.10 Maxum HOWTO-Related Questions 7 21st March 2011 16:21
Perfect Server Ubuntu 10.10 & Enabling SquirrelMail profm2 HOWTO-Related Questions 2 21st March 2011 07:00
The Perfect SpamSnake - Ubuntu Jeos - High memory usage and slow response macross HOWTO-Related Questions 9 15th December 2010 13:41
The Perfect SpamSnake - Ubuntu Jaunty Jackalope - Page 5 markerman HOWTO-Related Questions 1 13th August 2009 00:44


All times are GMT +2. The time now is 15:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.