Displaying 20 results from an estimated 120 matches similar to: "Problems with database config and prepare_to method"
2020 Nov 06
1
systemd / services / current process list
Hi,
following requirement is needed here (forced by application
migration from C6->C8):
I have two services running under supervision by systemd.
ServiceA: runs as user AppUser
ServiceB: runs as user AppUser
ServiceB can see "all" processes from AppUser (ps aux)
running by systemd (in fact it sees no other processes).
So ServiceB can see the processes of ServiceA.
I have also a
2011 Sep 21
0
hooking into `to_prepare` in a Railtie *after* the files have been reloaded (in dev)
I''m working on a gem <https://github.com/bradrobertson/apartment> that sets
properties on ActiveRecord models (such as table_name) dynamically based on
a user config option.
I have an initializer that achieves this. My problem however is that in dev
mode, these classes are reloaded, so they don''t maintain these values set.
So I thought I''d use a railtie to
2018 Aug 22
0
selinux question
On Aug 21, 2018, at 4:34 PM, Nataraj <incoming-centos at rjl.com> wrote:
>
> On 08/21/2018 02:20 PM, Warren Young wrote:
>> On Aug 21, 2018, at 1:27 PM, Nataraj <incoming-centos at rjl.com> wrote:
>>> I have a web application which uses sudo to invoke python scripts as the
>>> user under which the application runs (NO root access).
>> Why is the web
2011 May 29
4
Model load time
Hi, I''m getting a little confused how Rails handles loading models.
I''m on development mode, using Rails 3.1.0.rc1 on ruby 1.8.7
My application models are:
Curso
Legislacao
Usuario
And I have another model that is loaded from a gem Im trying to build:
Cidade
My gem is actually a simple engine:
require ''active_record''
require
1998 Nov 16
5
Solaris make for 0.63 failing
I shouldn't try to do this on Monday morning. Can anyone suggest why the make
for R 0.63 is failing for me under Solaris (SunOS 5.6).
Paul Gilbert
...
creating src/scripts/html2dos
creating tests/Makefile
creating tests/Examples/Makefile
creating src/include/Platform.h
R is now configured for sparc-sun-solaris2.6
Source directory: .
Installation directory: /usr/local
C
2011 Feb 11
0
rails 3 initialize module, running cucumber
I have this in my environment file, I get "The error occurred while
evaluating nil.[] (NoMethodError)" on the S3Config.key= line when running
cucumber. Why is it not loading up the module when running cucumber?
module S3Config
mattr_accessor :key
mattr_accessor :sec
end
class ActiveRecord::Base
include S3Config
extend DynamicMethods
end
S3Config.key =
2013 May 09
0
Rails 4.0.0.rc1 - A copy of <class> has been removed from the module tree but is still active!
I upgrade an app from Rails 3.2.13 to Rails 4.0.0.rc1. After the upgrade, I
started getting the error "*A copy of Reference::Base has been removed from
the module tree but is still active!*" whenever a request is sent. This
error occurs only when after making any change (even adding/removing a
comment) to a source file and then sending a request. The error goes away
after restarting
2008 Jul 21
20
Ideas for stopping ssh brute force attacks
just wanted to get some feedback from the community. Over the last few
days I have noticed my web server and email box have attempted to ssh'd to
using weird names like admin,appuser,nobody,etc.... None of these are
valid users. I know that I can block sshd all together with iptables but
that will not work for us. I did a little research on google and found
programs like sshguard and
2007 Sep 12
0
Error when running migrations
I''ve checked out a rails project that i''m working on from a repository,
and created a new database for it. However whenever i try and run the
migrations i get the following error:
rake aborted!
#<AppConfig:0xb7870f84> is not a class/module
Whenever I try to fire up a webrick server, i get the following error:
=> Booting WEBrick...
2015 Mar 26
1
TSIG error with server: tsig verify failure
when you read. :
http://www.spinics.net/lists/samba/msg111972.html
says:
>
>That output
> ; TSIG error with server: tsig verify failure
>is usually only seen when the internal DNS server is running.
>It's a glitch, which can be ignored atm (all dyn. updates are done OK).
>
so if you dont want to see that error, switch to bind9_DLZ.
Greetz,
Louis
2011 Apr 08
5
How to extend a helper using plugin?
Hello,
I''m facing this problem while trying to extend the parse_redmine_links
helper method in Redmine-1.1.0 (Rails-2.3.5) from my plugin.
My idea is to use alias_method_chain so the extended version could
call the original version and adjust the result to it''s liking.
Anything I''ve tried so far exposes this behavior: the first render of
a page uses the extended
2001 May 20
0
Routing with two net connections
Hello,
I''ve got a question about routing under the 2.2.15 kernel.
I have two connections to the internet, say 1.2.3.4 (gateway 1.2.3.1) and
20.20.20.20 (gateway 20.20.20.1).
Currently, it seems I can only set one "default" gateway. So if traffic
comes into 1.2.3.4, and my default gw is 20.20.20.1, all the return traffic
goes out 20.20.20.1.
The weird thing is that if I
2018 Aug 21
2
selinux question
On 08/21/2018 02:20 PM, Warren Young wrote:
> On Aug 21, 2018, at 1:27 PM, Nataraj <incoming-centos at rjl.com> wrote:
>> I have a web application which uses sudo to invoke python scripts as the
>> user under which the application runs (NO root access).
> Why is the web app not running with that user?s permissions in the first place?
>
> If your answer is that it
2011 Mar 04
2
Asterisk <-> Lync / Call Center Transfer / Refer
Hey all,
Alright. So we decided to not go with Avaya for our next PBX and we are now full on into an Asterisk/Lync 2010 implementation. Asterisk/FreePBX is our SIP gateway and call center and Lync is our internal UC and IP-PBX server. I've already got Asterisk tied with our Nortel/Merridian Option 11 with QSig and all is beautiful (except for the Opt11 not receiving names from * but
2006 Aug 08
2
Extending rails with plugins
I''ve been looking at bottling some functionality up into a plugin, but I''m
having some problems including it.
The structure I have is:
/app/controllers/admin/base_controller.rb:
class Admin::BaseController > ApplicationController
#snip#
end
/vendor/plugins/myplugin/lib/my_module.rb:
module MyModule
def new_func
"New Function"
end
end
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their
own model?
In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/
action_controller/session/active_record_store.rb) it says you can
override the default by setting
CGI::Session::ActiveRecordStore.session_class = MySessionClass
I have tried doing this in a number of ways but I get all kinds of
weird errors, as
2013 Aug 13
0
Processed: perl 5.18 transition nearly ready
Processing commands for control at bugs.debian.org:
> severity 711434 serious
Bug #711434 [src:libconfig-std-perl] libconfig-std-perl: FTBFS with perl 5.18: test failures
Severity set to 'serious' from 'important'
> severity 711604 serious
Bug #711604 [src:libmime-lite-html-perl] libmime-lite-html-perl: FTBFS with perl 5.18: test failures
Severity set to 'serious'
2008 Aug 24
2
config.after_initialize and development mode
Hi,
I''m using activemerchant and setting up a class variable using
config.after_initialize. It works great for the first request, but
then the variable is nil.
config.after_initialize do
ActiveMerchant::Billing::Base.mode = :test
OrderTransaction.gateway =
ActiveMerchant::Billing::PaypalGateway.new(...)
end
I''m assuming this is is due to the model reloading after each
2014 Nov 18
3
Fwd: Centos and logs
Hello,
may be anyone familiar with some tool for viewing logs.
I mean web-interface based, simple solution.
I have developers, and I can't give them access to my Centos servers, but
they want to see logs of Apache. I want to give them address like
172.17.17.21/logs and they will be able to watch logs of Apache in browser.
I was looking a lot for something like this, but didn't find.
2010 Nov 15
1
Installing rmagick gem with RVM
Hello,
I start using RVM for using Rails 3 and Rails 2 for some applications.
At the moment I can''t install the rmagick gem in the new Ruby
environment.
I use Mac OSX and I installed already imagemagick via ports and this was
working before using RVM, I succeed also to install the rmagick gem
before installing RVM.
Here is the output of the install command :
http://pastie.org/1299253