-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Scot::Env module #39
Comments
Uncomment like 7 in backup.pl so it looks like:
We have this and a bunch of other bug fixes queued but can't push just yet due to internal policies. |
Didn't see your second issue, sorry. (Please separate multiple issues in the future). Make sure you have something like this in it:
|
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: 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: Sorry! I will separate multiple issues in the future. Thank you! |
The backup.pl error message is from elasticsearch and implies that during
the install, something went wrong in the elasticsearch configuration that
would create the repository. I'll look into this and provide suggestions
when I get back to my workstation.
As for the alert.pl, it would be helpful if you could provide your
sanitized log_config section and any sections of logs from /var/log/scot
that seem appropriate. I'll try to duplicate on my end.
Question: when you installed SCOT, where there any errors? I know the
install is verbose, but knowing if some problems happened at install time
would be useful.
Todd
…------------------------------
todd.bruner@gmail.com
On Tue, Jun 6, 2017 at 11:46 AM, dmenezesrj ***@***.***> wrote:
Hi!
Thanks! Saddly din't work. Here are the errors:
*backup.pl <http://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 <http://backup.pl> line
135.*
*alert.pl <http://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.*
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#39 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAUAksjnRdOwKD8flRfCpmOyvFMfZY23ks5sBZBpgaJpZM4NwKYx>
.
|
To fix the backup error, try re-running: $SCOTDIR/install/src/elasticsearch/mapping.sh |
Hi! Re-running mapping.sh I got this message:
The backup.pl error message still the same, but I found it from messages log file:
Thanks! |
Does /opt/scotbackup/elastic exist on your system? Should have been created.
If you run into problems with the install, please look at the scot.install.log or share them with me. |
Sorry for late! I was on vacation. I tried to install again but failed ("FAILED to FIND revproxy config!"). Attached is the installation log. |
Try the latest code. reopen issue if you continue to have difficulty. |
Hi! I'm using the latest code, but the problem still the same: FAILED to FIND revproxy config!. Attached is the installation log. Thanks! |
@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" |
Anyone have any idea how to fix this issues with backup.pl and alert.pl? I installed SCOT 3.5.2 from the repository on Red Hat 7 with SE Linux.
Here are the errors:
[root@plrtir01 ~]# /opt/scot/bin/backup.pl
Can't locate Scot/Env.pm in @inc (you may need to install the Scot::Env module) (@inc contains: ../lib /opt/perl5/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux /opt/perl5/perls/perl-5.18.2/lib/site_perl/5.18.2 /opt/perl5/perls/perl-5.18.2/lib/5.18.2/x86_64-linux /opt/perl5/perls/perl-5.18.2/lib/5.18.2 .) at /opt/scot/bin/backup.pl line 9.
BEGIN failed--compilation aborted at /opt/scot/bin/backup.pl line 9.
[root@plrtir01 ~]# /opt/scot/bin/alert.pl
--- Starting Mail Ingester ---
Can't locate object method "log_config" via package "Scot::Env" at /opt/scot/lib/Scot/Env.pm line 113.
[root@plrtir01 ~]#
And the e-mail message:
X-Cron-Env: <XDG_SESSION_ID=1131>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: 20170605145002.8AEA3107@plrtir01.localdomain
Date: Mon, 5 Jun 2017 11:50:02 -0300 (-03)
Can't locate object method "log_config" via package "Scot::Env" at /opt/scot/lib/Scot/Env.pm line 113.
--- Starting Mail Ingester ---
Thanks!
The text was updated successfully, but these errors were encountered: