Translations: English
Search on Docs:
   
ActionItem Search:

#2563: Cannot run spaminator due to lack of permission

Type: BugItem Feature: Plugins Tags: asl, colivre
ScheduledFor: 0.41.1 Assigned to: RodrigoSouto Sites:  
Priority: 0 Status: Done  

Description of the bug

When admin runs spaminator, the plugin tries to create a log file but Noosfero doesn't have permission to create or write files in the plugin folder:

>> logger = File.join(SpaminatorPlugin.root_path, 'log',
"#{environment.name.to_slug}_#{ENV['RAILS_ENV']}_#{Time.now.strftime("%F_%T")}.log")
=>
"/usr/share/noosfero/plugins/spaminator/log/software-livre-brasil_production_2013-02-04_12:40:21.log"
>> Logger.new(logger)
Errno::EACCES: Permission denied -
/usr/share/noosfero/plugins/spaminator/log/software-livre-brasil_production_2013-02-04_12:40:21.log

Because of this problem, the environment admins can't run SpaminatorPlugin

-- DanielaFeitosa -- 04 Feb 2013

This bug is the same as AI:2580.

-- RodrigoSouto - 18 Feb 2013
Add comment
You need to login to be able to comment.
 

ActionItemForm edit

Title Cannot run spaminator due to lack of permission
ActionItemType BugItem
Priority Low
Tags asl, colivre
Feature Plugins
Plugin SpaminatorPlugin
ResponsibleDevelopers RodrigoSouto
ScheduledFor 0.41.1
AffectsVersion
Status Done
Ticket SAC:36535
Topic revision: r1 - 22 May 2015, UnknownUser

irc Talk with Devs Now!

Copyright © 2007-2019 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres