Coder Social home page Coder Social logo

Issues with Scot::Env module about scot HOT 11 CLOSED

sandialabs avatar sandialabs commented on July 22, 2024
Issues with Scot::Env module

from scot.

Comments (11)

toddbruner avatar toddbruner commented on July 22, 2024 1

Does /opt/scotbackup/elastic exist on your system? Should have been created.
At this point, I'd probably recommend the following, since I do not have confidence that the initial install fully worked.

# mv /opt/scot /opt/scot.bak
# mv /opt/scotbackup /opt/scotbackup.bak
# cd $HOMEDIR/SCOT
 # ./install.sh | tee -a $HOMEDIR/scot.install.log
 copy any config modifications  from /opt/scot.bak/etc/  to /opt/scot/etc

If you run into problems with the install, please look at the scot.install.log or share them with me.
Thanks.

from scot.

dmenezesrj avatar dmenezesrj commented on July 22, 2024 1

Sorry for late! I was on vacation.

I tried to install again but failed ("FAILED to FIND revproxy config!"). Attached is the installation log.
scot.install.log.txt

from scot.

toddbruner avatar toddbruner commented on July 22, 2024 1

@dmenezesrj, the problem is that I was assuming CentOS or Ubuntu. Your OS is "RedHatEnterprise". My fault, but I will upload fix shortly that will change your OS string to CentOS and then the install should just work. If you want to hack it your self, you can got into install/determine_os.sh and hard code the OS to "CentOS"

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

Uncomment like 7 in backup.pl so it looks like:

use lib '/opt/scot/lib';

We have this and a bunch of other bug fixes queued but can't push just yet due to internal policies.

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

Didn't see your second issue, sorry. (Please separate multiple issues in the future).
The problem is a missing stanza in the your /opt/scot/etc/scot.cfg.pl

Make sure you have something like this in it:

log_config => {
    logger_name     => 'SCOT',
    layout          => '%d %7p [%P] %15F{1}: %4L %m%n',
    appender_name   => 'scot_log',
    logfile         => '/var/log/scot/scot.log',
    log_level       => 'DEBUG',
},

from scot.

dmenezesrj avatar dmenezesrj commented on July 22, 2024

Hi!

Thanks! Saddly din't work. Here are the errors:

backup.pl - Running with fail. I did the change in line 7 at backup.pl. Now I got it:
Failed to create a snapshot! {"error":{"root_cause":[{"type":"repository_missing_exception","reason":"[scot_backup] missing"}],"type":"repository_missing_exception","reason":"[scot_backup] missing"},"status":404} at /opt/scot/bin/backup.pl line 135.

alert.pl - We have log_config defined in /opt/scot/etc/scot.cfg.pl. The file /var/log/scot/scot.log exists and we can see a lot of information. The error message still the same:
--- Starting Mail Ingester ---
Can't locate object method "log_config" via package "Scot::Env" at /opt/scot/lib/Scot/Env.pm line 113.

Sorry! I will separate multiple issues in the future.

Thank you!

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

To fix the backup error, try re-running:

$SCOTDIR/install/src/elasticsearch/mapping.sh

from scot.

dmenezesrj avatar dmenezesrj commented on July 22, 2024

Hi!

Re-running mapping.sh I got this message:

[root@plrtir01 ~]# /opt/scot/install/src/elasticsearch/mapping.sh
Deleting Existing SCOT index
{"acknowledged":true}Creating SCOT index
{
"acknowledged" : true
}

The backup.pl error message still the same, but I found it from messages log file:

Jun 12 11:07:00 plrtir01 elasticsearch: [2017-06-12 11:07:00,159][WARN ][rest.suppressed ] path: /_snapshot/scot_backup, params: {repository=scot_backup}
Jun 12 11:07:00 plrtir01 elasticsearch: RepositoryException[[scot_backup] failed to create repository]; nested: CreationException[Guice creation errors:
Jun 12 11:07:00 plrtir01 elasticsearch: 1) Error injecting constructor, RepositoryException[[scot_backup] location [/opt/scotbackup/elastic] doesn't match any of the locations specified by p
ath.repo because this setting is empty]

Thanks!

from scot.

toddbruner avatar toddbruner commented on July 22, 2024

Try the latest code. reopen issue if you continue to have difficulty.

from scot.

dmenezesrj avatar dmenezesrj commented on July 22, 2024

Hi!

I'm using the latest code, but the problem still the same: FAILED to FIND revproxy config!.

Attached is the installation log.

Thanks!
scot.install.log.txt

from scot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.