OS
Plesk Obsidian Web Pro Edition
SilverStripe
PHP
MariaDB
Ubuntu 20.04.4 LTS
v. 18.0.44
v. 4.10
v. 7.4.30
v. 10.3.34
I state it is a clean installation
The frontend works perfectly, instead calling /admin
"Server error there was a problem handling your request."
Error log extract:
Error 500 GET /Security/login?BackURL=%2Fadmin%2Fpages%2F HTTP/1.0
Warning (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
Error End of script output before headers: index.php
Has anyone encountered this problem?
Thank you
I made other tests on other environments always plesk and the scenario is similar, in one case the following "Emergency" occurred in the creation of the following table:
Error log extract:
[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query:
CREATE TABLE "File" ( "ID" int(11) not null auto_increment
...
ENGINE=InnoDB Index column size too large. The maximum column size is 767 bytes.
GET /dev/build
Line 64 in /var/www/vhosts/.../vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php
For this I found an explanation in the documentation that might be useful to someone
Related
I'm trying to set the GLOBAL time of my MariaDB database to UTC. I've followed the recommendations of their official documentation and default_time_zone="+00:00" in the my.cnf file, however it does NOT work and I get the following error when I start it in the shell: mysql: unknown variable 'default_time_zone=+00:00'.
Does anyone have an idea?
Thanks
Remove the quotes
As the error message states command line client (mysql) complains about unknown variable, since default_time_zone is a server but not a client variable. So you added it in wrong section. Move the entry to the server section:
[server]
default_time_zone=+00:00
I'm very new to the ELK stack and was trying to add some security settings (username and password) to access Kibana following the instructions from the link below:
https://www.elastic.co/blog/getting-started-with-elasticsearch-security
At Step 4: Security in Kibana, once the yml file modified, I try to launch Kibana from the terminal with the command ./bin/kibana but it displays the following errors :
./bin/kibana: line 24: /usr/local/var/homebrew/linked/kibana-7.6.2-linux-x86_64/bin/../node/bin/node: cannot execute binary file
./bin/kibana: line 24: /usr/local/var/homebrew/linked/kibana-7.6.2-linux-x86_64/bin/../node/bin/node: Undefined error: 0
I think I've followed all the previous steps carefully and everything else worked so far.
I'm using a Mac and the error seems to be very basic. Any clue?
Thanks for the help.
Looks like you've downloaded the wrong architecture (Linux) of Kibana on your Mac.
This generally happens when the architecture is not compatible with system architecture or running a 64 bits on 32 bits machine.
Simple solution:
Download the mac version of Kibana from here - https://www.elastic.co/downloads/kibana
Once downloaded, run ./bin/kibana in Kibana directory.
This will successfully start local server of Kibana on localhost:5601
I am trying to setup an encrypted drive using the TPM2.0 module on a NUC7i5 on a new installation of Ubuntu server 18.04.
I compiled from sources and installed tpm2-tss (1.3.0), tpm2-abrmd (1.2.0) and tpm2-tools (3.0.2), and I tested some of the tpm2_* utilities and they seem to work. I also installed clevis v10.
I generated a secret using tpm2_getrandom 32 -o secret.key, and then tried to encrypt the secret using the TPM using the following command:
cat secret.key | sudo clevis encrypt tpm2 '{"pcr_ids":"7","pcr_bank":"sha256"}' > secret.jwe
When I do that however, I get the following error:
ERROR:
CreatePrimary Failed ! ErrorCode: 0x9a2
ERROR: Unable to run tpm2_createprimary
Creating TPM2 primary key failed!
When checking the status of the tpm2-abrmd service (systemctl status tpm2-abrmd.service), I get this error:
tpm2-abrmd[1308]: tpm2_response_get_handle: insufficient buffer to get handle
I tried different options for the clevis encryption, tried different ways to generate the secret, but I still can't figure out what the issue is.
The TPM module is a SLB9665 from Infineon Technologies.
I tried with and without taking ownership of the TPM, and always with a clear TPM every time.
Has anyone ran into that issue?
So, apparently the issue was that I shouldn't have taken ownership of the TPM.
After resetting the TPM, the clevis command works.
I'm transfering a Prestashop server to another server. The origin server is a CentOS with Apache and the destination is a Ubuntu with Nginx.
The problem is that I got this error when I open a product link in Prestashop:
Fatal error: Uncaught SmartyCompilerException: Syntax Error in
template
"/var/www/loja/themes/default-bootstrap/product.tpl" on line
48 "{/addJsDefL}{/strip}{/if}" unexpected closing tag in
/var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:667
Stack trace: #0
/var/www/loja/tools/smarty/sysplugins/smarty_internal_compilebase.php(170):
Smarty_Internal_TemplateCompilerBase->trigger_template_error('unexpected
clos...', 48) #1
/var/www/loja/tools/smarty/sysplugins/smarty_internal_compile_private_registered_block.php(85):
Smarty_Internal_CompileBase->closeTag(Object(Smarty_Internal_SmartyTemplateCompiler), 'addJsDefL') #2
/var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(475):
Smarty_Internal_Compile_Private_Registered_Block->compile(Array,
Object(Smarty_Internal_SmartyTemplateCompiler), Array,
'addJsDefLclose', NULL) #3
/var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(417):
Smarty_Internal_TemplateCompilerBase->callTagC in
/var/www/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php
on line 667
It seems that, for example, the code "{/addJsDefL}" need to have spaces like this "{ /addJsDefL }"
But in the old server the code "{/addJsDefL}" works without any problems.
So, is there a way to make the new server work with the old way? Maybe a parameter in the server?
Thanks in advance,
Trying to clean the index:
Apache_Solr_HttpTransportException: '400' Status: Bad Request em Apache_Solr_Service->_sendRawPost() (linha 364 de /home/mercado/public_html/sites/all/libraries/SolrPhpClient/Apache/Solr/Service.php
Trying to index itens:
Couldn't index items. Check the logs for details.
Log Says:
An error occurred while indexing: '400' Status: Bad Request.
Im using the latest release for apache solr and solrPHPclient. Everything seens ok, im using the schema.xml from the module and the module checks the solr server ok...
There is no log file in my path/to/solr/example/logs
Thanks in advance
I was having the same problem and realized I had the copied the wrong configuration files to the /Applications/apache-solr-3.6.1/example/solr/conf directory. Once I copied the correction version from sites/all/modules/search_api_solr/solr-conf/3.x it started to index properly.
Check your Apache solar is running on your server