Internal Death while parsing [stdin] cPanel - sqlite

When I try to modify an account via cPanel WHM ,I got below error.
~~~
[2015-07-30 10:49:36 -0400] die [Internal Death while parsing [stdin] 11431] DBD::SQLite::st execute failed: database disk image is malformed at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 56.
Whostmgr::Bandwidth::catch {...} (Cpanel::Exception::Database::Error=HASH(0x72432a0)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 104
Try::Tiny::try(CODE(0x7238338), Try::Tiny::Catch=REF(0x4918f48)) called at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 58
Whostmgr::Bandwidth::getmonthbwusage("username", "advicetr") called at whostmgr/bin/whostmgr.pl line 4366
main::edituser() called at whostmgr/bin/whostmgr.pl line 598
DBD::SQLite::st execute failed: database disk image is malformed
at /usr/local/cpanel/Cpanel/Exception.pm line 151.
Cpanel::Exception::new("Cpanel::Exception::Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 57
Cpanel::Exception::create("Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 72
Cpanel::Exception::create_raw("Database::Error", "DBD::SQLite::st execute failed: database disk image is malformed", HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/DBI.pm line 105
Cpanel::DBI::_create_exception(Cpanel::DBI::SQLite::st=HASH(0x72387a0), "DBD::SQLite::st execute failed: database disk image is malformed", undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 93
Cpanel::DBI::_error_handler("DBD::SQLite::st execute failed: database disk image is malformed", Cpanel::DBI::SQLite::st=HASH(0x72387a0), undef) called at /usr/local/cpanel/Cpanel/BandwidthDB/RootCache.pm line 390
Can any know this issue.

Can you please try to update your cPanel/WHM with the following command.
/scripts/upcp –force

Since the error message involved bandwidth, I moved the /root/.bwusage.sqlite file out of the way and ran /usr/local/cpanel/scripts/build_bandwidthdb_root_cache_in_background
This generated a new .bwusage.sqlite file which should solve this issue.
Fixed !!!

Related

How to solve "file or LOB operation FILEOPEN failed" while inserting xml data into oracle table?

I followed these steps to insert XML data into an Oracle table:
Created one directory and created one table. What are the columns having that XML file I created the table also.
Now I'm inserting the data into that table I'm getting an error which I need help with.
ExtractValue(Value(x),'//Costs') as Costs
FROM TABLE(XMLSequence(Extract(XMLType(bfilename('MY_DIR', 'test.xml'),
nls_charset_id('UTF8') ),'/PODetails/POHeader'))) x;
Error:
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the path specified.
ORA-06512: at "SYS.DBMS_LOB", line 523
ORA-06512: at "SYS.XMLTYPE", line 287
ORA-06512: at line 1

Intershop 7 - Problem adding a new index into database

I am trying to run a DatabaseIndexesPreparer through DBMigrate.bat and everytime it fails, therefore I have tried running needed SQL directly through Oracle SQLDeveloper and it also fails there with the same message.
This is the snippet I am trying to run:
EXEC staging_ddl.create_index('HWDB_ID_INDEX', 'PRODUCT', 'HWDBID', 'IS_INDX', 'NONUNIQUE', 0);
This is the result/message I receive:
ORA-00906: missing left parenthesis
ORA-06512: at "INTERSHOP.SQL_UTIL", line 149
ORA-06512: at "INTERSHOP.SQL_UTIL", line 49
ORA-06512: at "INTERSHOP.DDL", line 354
ORA-01403: no data found
ORA-06512: at "INTERSHOP.STAGING_DDL", line 235
ORA-06512: at line 1
00906. 00000 - "missing left parenthesis"
Additional info
All of this is done on Intershop 7.10.
HWDBID is a direct custom attribute (DCA) added successfully through DBMigrate following this cookbook:
https://support.intershop.com/kb/index.php/Display/L24707
The SQL snippet is also based on section 4 which deals with adding database index
Try this:
EXEC staging_ddl.create_index('HWDB_ID_INDEX', 'PRODUCT', '(HWDBID)', 'IS_INDX', 'NONUNIQUE', 0);
It seems like you always need to wrap the columns in parenthesis. From the example i found in 7.9 and 7.10 it is done like this.

How can I interact with the Github API using Perl6?

I want to use the Github API in a script and I want to use it as an experience to get better using Perl6. However, I cannot even get a simple proof of concept to work.
Through some testing I realized that Github requires that you supply a valid user agent so I turned to HTTP::UserAgent. No matter what I try, I get the following error:
Internal Error: 'server returned no data'
in block at /Applications/Rakudo/share/perl6/site/sources/FD28A8E22DFE16B70B757D9981C7B6C25543060C (HTTP::UserAgent) line 259
in any at /Applications/Rakudo/share/perl6/site/precomp/F91BAB44DF15C5C298C627DD5E0F9D819ED79939.1517344679.60204/FD/FD28A8E22DFE16B70B757D9981C7B6C25543060C line 1
in method new at /Applications/Rakudo/share/perl6/site/sources/DDDD4497B34FC81BC1F5FF467999BC4DA2FA1CEB (HTTP::Response) line 25
in method get-response at /Applications/Rakudo/share/perl6/site/sources/FD28A8E22DFE16B70B757D9981C7B6C25543060C (HTTP::UserAgent) line 291
in method request at /Applications/Rakudo/share/perl6/site/sources/FD28A8E22DFE16B70B757D9981C7B6C25543060C (HTTP::UserAgent) line 159
in method get at /Applications/Rakudo/share/perl6/site/sources/FD28A8E22DFE16B70B757D9981C7B6C25543060C (HTTP::UserAgent) line 102
in method get at /Applications/Rakudo/share/perl6/site/sources/FD28A8E22DFE16B70B757D9981C7B6C25543060C (HTTP::UserAgent) line 105
in block <unit> at reporter.pl6 line 12
There is even an example in the the repo that doesn't seem to work for me.
#!/usr/bin/env perl6
use v6;
use HTTP::UserAgent;
my $ua = HTTP::UserAgent.new;
$ua.timeout = 1;
my $response = $ua.get('https://github.com');
if $response.is-success {
say $response.content;
} else {
die $response.status-line;
}
Any tips on how to connect to Github via Perl 6? I really love many aspects of the language but this type of thing is discouraging.
EDIT: I went on #perl6 irc and no one was able to reproduce this on other OSes. I got it to work on Debian. The issue seems to be with OS X
Although in alpha stage, WebServices::GitHub is perfectly serviceable. You can use it to download user information, or you can use my fork if you want to interact with issues. This program, for instance, is used to download some issues from a particular repo.

Sales Order Confirmation Error

I am trying to confirm the sales order but I am getting error shown below. The environment is updated from CU1 to CU9 recently. I did Full Compilation and Full CIL and Incremental CIL with out errors. Can you please suggest what could be the issue?
Thanks in advance.
Error : Map object not initialized.
Stack trace
(S)\Classes\FormletterService\postJournal - line 52
(S)\Classes\FormletterService\run - line 221
(S)\Classes\FormletterService\postSalesOrderConfirmation - line 14
(S)\Classes\DictClass\callObject
(S)\Classes\SysOperationServiceController\runOperation - line 93
(S)\Classes\SysOperationServiceController\runServiceOperation - line 22
(S)\Classes\DictClass\callStatic
(S)\Classes\SysDictClass\invokeStaticMethod - line 26
(S)\Classes\SysDictClass\invokeStaticMethodIL - line 39
(S)\Classes\SysOperationRPCFrameworkService\runServiceOperation - line 5
(C)\Classes\SysOperationServiceController\runOperationWithRunAs - line 7
(C)\Classes\SysOperationServiceController\run - line 22
(C)\Classes\FormLetterServiceController\run - line 3
(C)\Classes\SalesFormLetter\run - line 95
(C)\Classes\SalesFormLetter\main - line 138
(C)\Classes\FormFunctionButtonControl\Clicked
The error is caused because the docuRefRecIdsPerJournalMap variable of class FormLetterService is not initialized. Debug method initDocuRefRecIdsPerJournalMap where this variable gets initialized and also method run where the initialization method gets called. You may also have to check classes that extend from FormLetterService and overwrite any of these methods or change the docuRefRecIdsPerJournalMap variable. Also check if you have any customizations on these classes.
Try to 'Compile forward' the base class FormletterService and afterwards do a full CIL compilation again
Hope that helps

Report in AX 2012 does not open;List of errors

I have created a report in AX 2012 and Visual Studio properly but once I try to open it the following list of erors appears:
Thank you
Error executing code: FormRun (data source) has no valid runable code in method 'new'.
Stack trace
(C)\Classes\FormRun\new
(C)\Classes\SysSetupFormRun\new - line 4
(C)\Classes\ClassFactory\formRunClassOnClient - line 10
(C)\Classes\ClassFactory\formRunClass - line 24
(C)\Classes\DialogForm\doInit - line 12
(C)\Classes\Dialog\doInit - line 12
(C)\Classes\Dialog\doRun - line 24
(C)\Classes\SysOperationDialog\run - line 12
(C)\Classes\SysOperationController\dialogShow - line 6
(C)\Classes\SysOperationController\dialogRun - line 40
(C)\Classes\SysOperationController\prompt - line 9
(C)\Classes\SrsReportRunController\runToScreen - line 26
(C)\Classes\SrsReportRunController\runReport - line 68
(C)\Classes\SrsReportRunController\run - line 27
(C)\Classes\SysOperationController\startOperation - line 10
(C)\Classes\SrsReportRunController\startOperation - line 12
To me, this is mostly base code, so it's a compile or CIL-compile issue most likely.
Have you compiled your CIL or performed an incremental CIL compile?
Refresh your report caches (Tools>Caches>Refresh Report Server).
Are the WCF settings in the AXC used for the report server refreshed?
Is the report server using a specific AXC that may not be refreshed? (https://technet.microsoft.com/en-us/library/hh389774.aspx)
You can find that the issue is with form (as the infolog suggest). The name of the form can be found out if you debug the code in classes.
Try putting debugger on DialogForm.doInit(). In this method, you can find the name of the form in the object variable, "form", used inside this method in a call to args.object(form).
You have to compile this form; Restore it and report does get generated.
Remember, DialogForm.doInit() gets called 2 times, Once, launching input UI form and another when trying to launch report viewer. So if the input/contract form is getting opened and the error comes before showing the report output, its the second time when you are interested to find the name of the form.
In my case, culprit forms were, SysOperationTemplateForm and SRSReportViewer form.

Resources