Bugzilla throws error when migrating from an old version - unix

I am trying to migrate from an old bugzilla to a newer one. I installed a newer one on a new server. I run ./checksetup.pl and this is the error:
A valid TYPE was not specified for this column (got $VAR1 = {'PRIMARYKEY' => 1,'ENGINE' => 'MEDIUMSERIAL','NOTNULL' => 1};
) at Bugzilla/DB/Schema.pm line 1975.
Bugzilla::DB::Schema::get_type_ddl('Bugzilla::DB::Schema::Mysql=HASH(0x8 120cd8)', 'HASH(0x8261308)') called at Bugzilla/DB/Schema/Mysql.pm line 380
Bugzilla::DB::Schema::Mysql::get_rename_column_ddl('Bugzilla::DB::Schema ::Mysql=HASH(0x8120cd8)', 'fielddefs', 'fieldid', 'id') called at Bugzilla/DB.pm line 1026
Bugzilla::DB::bz_rename_column('Bugzilla::DB::Mysql=HASH(0x7fed8c0)', 'f ielddefs', 'fieldid', 'id') called at Bugzilla/Install/DB.pm line 69
Bugzilla::Install::DB::update_fielddefs_definition() called at ./checkse tup.pl line 164

Related

Oracle APEX - Invalid lob when calling to APEX Apex_mail.send

I have a Oracle Database 18c Standard Edition 2 Release 18.0.0.0.0 server with Oracle apex 19 running on a Linux box.
I am testing send emails with templates build on Apex. If I run the below code I get a error
begin
Apex_mail.send(p_application_id => 100,
p_to => 'demo#example.com',
p_from => 'demo_1#example.com',
p_template_static_id => 'TEST',
p_placeholders => '{"count":1}');
end;
ORA-06502: PL/SQL: error : invalid LOB locator specified: ORA-22275 numérico o de valor
ORA-06512: en "SYS.DBMS_LOB", línea 727
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 776
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 849
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL", línea 873
ORA-06512: en "APEX_190100.WWV_FLOW_MAIL_API", línea 88
ORA-06512: en línea 3
I've tested same code in other Oracle server without problem.
If I call to the overloaded function of APEX_mai.send as bellow, it work fine.
begin
apex_mail.send(p_to => 'demo#example.com',
p_from => 'demo1#example.com,
p_body => 'Main email text goes here',
p_subj => 'APEX_MAIL - Plain Text message');
Apex_Mail.push_queue;
end;
Note:
Application 100 and template "TEST" exists in my apex workspace
My question, what is the problem in my code when I use template?
I have tried sending an empty placeholder, but I get the same result
I found the problem, For some strange reason, the "text plain" template should not be empty, I added a "."(yes, a simple dot) in the template with plain text and it started working.

Fatal error within Woocommerce "wc-template-functions.php" file

I have tried to edit wc-template-functions.php in my store and did something wrong.
Now I am getting Fatal Error on 281 line.
Fatal error: Uncaught Error: Class 'Constants' not found in /home/kidsandm/oliverthedog/wp-content/plugins/woocommerce/includes/wc-template-functions.php:282 Stack trace: #0 /home/kidsandm/oliverthedog/wp-includes/class-wp-hook.php(292): wc_generator_tag('<meta name="gen...', 'xhtml') #1 /home/kidsandm/oliverthedog/wp-includes/plugin.php(212): WP_Hook->apply_filters('<meta name="gen...', Array) #2 /home/kidsandm/oliverthedog/wp-includes/general-template.php(4728): apply_filters('get_the_generat...', '<meta name="gen...', 'xhtml') #3 /home/kidsandm/oliverthedog/wp-includes/general-template.php(4650): get_the_generator('xhtml') #4 /home/kidsandm/oliverthedog/wp-includes/general-template.php(4627): the_generator('xhtml') #5 /home/kidsandm/oliverthedog/wp-includes/class-wp-hook.php(292): wp_generator('') #6 /home/kidsandm/oliverthedog/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #7 /home/kidsandm/oliverthedog/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #8 /home/kidsandm/oliverthedog/wp-includes/gen in /home/kidsandm/oliverthedog/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 282
Before that I also had warning at the top that said:
Warning: The use statement with non-compound name 'AutomatticJetpackConstants' has no effect in /home/kidsandm/hondamarine/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 11
but I have hide that line thinking it might help.
What I have change in file?
Additional information.
I was thinking it will change the name of it on front-end as well.
// Additional information tab - shows attributes.
if ( $product && ( $product->has_attributes() || apply_filters( 'wc_product_enable_dimensions_display', $product->has_weight() || $product->has_dimensions() ) ) ) {
$tabs['additional_information'] = array(
'title' => __( 'Additional information', 'woocommerce' ),
'priority' => 20,
'callback' => 'woocommerce_product_additional_information_tab',
);
}
Line 1798.
I have tried to find a code only to replace it, and I found one but did not help.
Now, that code might not be original because I could not find it on GitHub.
Thanks a lot!
It just happened to me too, I tried to edit the code for the same reason, I searched a lot about this problem and I solved it when I downloaded the plugin in zip form and manually upload it and install it, now its working fine for me and all data still in place (categories, products, etc.)!
I had the following 2 errors:
Fatal Error: Uncaught error: Class 'Constants' not found in /Users/anastasiades/Local Sites/pisinaspa/app/public/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 282
Error: Class 'Constants' not found in /Users/anastasiades/Local Sites/pisinaspa/app/public/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 282
Steps:
1. Backup data in woocommerce
2. Download plugin here
3. On WordPress go to Plugins >> Add new >> Upload plugin
4. Choose Reinstall >> Install now
5. "Replace current with uploaded"
I recommend a good backup of the products and other data before doing this.
Peace!

Woocommerce API (Woo Dashboard github)

I'm triying the Woo Dashboard example from this github bu
Fatal error: Uncaught Error: Cannot use object of type stdClass as array in [[[[MY FILE URL]]]] Stack trace: #0 {main} thrown in [[[[MY FILE URL]]]] on line 33
The code in line 32 and 33 is the following:
$sales = $woocommerce->get('reports/sales', $query);
$sale = $sales[0]["total_sales"];
I've read many people who had use this github as boilerplate but none one else with this issue
I've change $sale = $sales[0]["total_sales"]; to $sale = $sales[0]->total_sales; and is working now.

Shiny-server does not show rmarkdown even in the example page (rmarkdown package installed)

I installed a shiny-server on Amazon AWS EC-2 (Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type - ami-60b6c60a). The server works fine for the Shiny apps, but does not render the .rmd, even the rmd from the example page.
I only see this error:
Error: error in running command
In the HTML:
<div id="__reactivedoc__" class="shiny-html-output shiny-bound-output shiny-output-error">error in running command</div>
I already installed the rmarkdown package, it works fine on Rstudio. (I use the same user for Rstudio and Shiny server).
I don't know how to get more information about the error, I don't see other messages.
Somebody have an idea?
NEW INFO:
I investigate the logs from the server:
This is the output from the /var/log/shiny-server/:
su: ignore --preserve-environment, it's mutually exclusive to --login.
Listening on http://127.0.0.1:52294
/opt/shiny-server/ext/pandoc/pandoc: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
Warning: Error in system: error in running command
Stack trace (innermost first):
97: system
96: force
95: with_pandoc_safe_environment
94: get_pandoc_version
93: FUN
92: lapply
91: find_pandoc
90: pandoc_available
89: <Anonymous>
88: do.call
87: contextFunc
86: .getReactiveEnvironment()$runWith
85: shiny::maskReactiveContext
84: reactive reactive({
out <- rmd_cached_output(file, encoding)
output_dest <- out$dest
if (out$cached) {
if (nchar(out$resource_folder) > 0) {
shiny::addResourcePath(basename(out$resource_folder),
out$resource_folder)
}
return(out$shiny_html)
}
if (!file.exists(dirname(output_dest))) {
dir.create(dirname(output_dest), recursive = TRUE, mode = "0700")
}
resource_folder <- knitr_files_dir(output_dest)
perf_timer_reset_all()
dependencies <- list()
shiny_dependency_resolver <- function(deps) {
dependencies <<- deps
list()
}
output_opts <- list(self_contained = FALSE, copy_resources = TRUE,
dependency_resolver = shiny_dependency_resolver)
message("\f")
args <- merge_lists(list(input = reactive_file(), output_file = output_dest,
output_dir = dirname(output_dest), output_options = output_opts,
intermediates_dir = dirname(output_dest), runtime = "shiny"),
render_args)
result_path <- shiny::maskReactiveContext(do.call(render,
args))
if (!dir_exists(resource_folder))
dir.create(resource_folder, recursive = TRUE)
shiny::addResourcePath(basename(resource_folder), resource_folder)
dependencies <- append(dependencies, list(create_performance_dependency(resource_folder)))
write_deps <- base::file(file.path(resource_folder, "shiny.dep"),
open = "wb")
on.exit(close(write_deps), add = TRUE)
serialize(dependencies, write_deps, ascii = FALSE)
if (!isTRUE(out$cacheable)) {
shiny::onReactiveDomainEnded(shiny::getDefaultReactiveDomain(),
function() {
unlink(result_path)
unlink(resource_folder, recursive = TRUE)
})
}
shinyHTML_with_deps(result_path, dependencies)
})
73: doc
72: shiny::renderUI
71: func
70: output$__reactivedoc__
3: <Anonymous>
2: do.call
1: rmarkdown::run
On the /opt/shiny-server/ext/pandoc/ I have these:
-rwxrwxr-x 1 root root 37191008 Feb 3 2014 pandoc
-rwxrwxr-x 1 root root 38520576 Feb 3 2014 pandoc-citeproc
drwxrwxr-x 2 root root 4096 Jan 13 15:15 static
I tried to install "gmp.x86_64", but the results are:
> yum install gmp.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
epel/x86_64/metalink | 3.0 kB 00:00
epel/x86_64 | 4.3 kB 00:00 ...
epel/x86_64/updateinfo | 715 kB 00:00
epel/x86_64/primary_db | 5.8 MB 00:01
949 packages excluded due to repository priority protections
Package gmp-6.0.0-11.16.amzn1.x86_64 already installed and latest version
Nothing to do
And still not working.... Maybe there is another package?
In my "/usr/lib64/" I have libgmp.so.10.2.0, but I think I don't have libgmp.so.3.
Even installing the i686 version, still the same.
For Fedora 23 I had the same problem
[root#pjux shiny-server]# ldd -d /opt/shiny-server/ext/pandoc/pandoc
linux-vdso.so.1 (0x00007ffff9eb0000)
libz.so.1 => /lib64/libz.so.1 (0x00007fc20bd55000)
librt.so.1 => /lib64/librt.so.1 (0x00007fc20bb4d000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007fc20b949000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fc20b745000)
libgmp.so.3 => not found
libffi.so.5 => not found
libm.so.6 => /lib64/libm.so.6 (0x00007fc20b442000)
libc.so.6 => /lib64/libc.so.6 (0x00007fc20b081000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc20ae63000)
/lib64/ld-linux-x86-64.so.2 (0x0000561bb7c14000)
but
ln -s /lib64/libffi.so.6.0.2 /lib64/libffi.so.5
ln -s /lib64/libgmp.so.10.2.0 /lib64/libgmp.so.3
solved it
I solved the problem with help from the github issues page of shiny-server
How sjpascual said, just install the packages: compat-gmp4 and compat-libffi5 to fix it.
Now is working fine.
This is an old post but in case someone has a similar problem. You may try to install the RMarkdown package from console as root instead of inside RStudio to make the package available to the Shiny server:
sudo su - -c "R -e \"install.packages('rmarkdown', repos='http://cran.rstudio.com/')\""
That helped me to get the RMarkdown sample app in the test page to load...
For CentOS 7, installing gmp-devel and libffi-devel and restarting Shiny Server resolved the issue.

Puppet syncing dir

Still does not work
In/etc/puppet/manifests/site.pp
file { "/home/render/installation/":
ensure => "directory",
owner => "render",
group => "render",
recurse => "true",
mode => "0750",
source => "puppet:///files/installation/",
}
Dir still is empty on client
ls /etc/puppet/files/installation/
1 2 3 4 5
On puppet client in log
Mar 21 12:28:12 lw-003 puppet-agent[28098]: (/File[/home/render/installation/]) Failed to generate additional resources using 'eval_generate: Error 400 on SERVER: Not authorized to call search on /file_metadata/files/installation with {:checksum_type=>"md5", :recurse=>true, :links=>"manage"}
Mar 21 12:28:12 lw-003 puppet-agent[28098]: (/File[/home/render/installation/]) Could not evaluate: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/installation Could not retrieve file metadata for puppet:///files/installation: Error 400 on SERVER: Not authorized to call find on /file_metadata/files/installation
Mar 21 12:28:12 lw-003 puppet-agent[28098]: Finished catalog run in 0.28 seconds
I had the same issue and found this question on Google. I had to change the path to the files for the manifests (modulename/manifests/init.pp):
"puppet:///files/installation/",
to:
"puppet:///modules/files/installation/",
The notation without /modules/ was deprecated in 2.7 and no longer supported in newer versions:
DEPRECATION NOTICE: Files found in modules without specifying 'modules' in file path will be deprecated in the next major release. Please fix module 'modulename' when no 0.24.x clients are present
try this example,
file {
"/scratch/usern/testmod" :
ensure => directory,
source => "puppet:///files/testmod",
recurse => true,
owner => "usern",
group => "groupn",
mode => "0775",
backup => false,
}
You have to specify 'files' and if you are doing a recursive copy, specify 'recurse => true'. That might be the solution to your problem.
the 'fileserver.conf' should look something like the following :
]# cat /etc/puppet/fileserver.conf
[files]
path /etc/puppet/files
allow *

Resources