Assertion failure when using puphpet - nginx

I am trying to use the hhvm, but then i try and run my test script i get an 502 Bad Gateway (nginx) error message
so i tried to run it in terminal and i get the following error message:
$ hhvm /var/www/public/test.php
Assertion failure: /tmp/tmp.3Ty7dCXWJ2/hphp/runtime/base/rds.cpp:426: void HPHP::rds::initPersistentCache(): assertion `s_tc_fd != -1' failed.
Aborted
but when i run it using sudo it works!
$ sudo hhvm /var/www/public/test.php
hello world
What did i do wrong? i have tried updating the owner of a file and changed the permissions of hhvm, but this didn't work.

You shouldn't be getting assertion failures in a release build of HHVM. Can you please file an issue on GitHub so we can track the bug? Make sure to include your OS as well as the output of hhvm --version.

Related

Docker installation of antmedia server always fails

I'm trying to run the community installation within docker with this process:
https://github.com/ant-media/Ant-Media-Server/wiki/Building-and-Running-Docker-Container-for-Ant-Media-Server
And at the end of the build i'm getting
Errors were encountered while processing:
/var/cache/apt/archives/libllvm6.0_1%3a6.0-1ubuntu2~16.04.1_amd64.deb
/var/cache/apt/archives/openjdk-8-jdk-headless_8u265-b01-0ubuntu2~16.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Get a diffrent error in the build process of Enterprise edition , changing the ubuntu version to 18 finally completes the installation but it seems that the server is not starting.
Am i missing something obvious ?

Redmine is not working properly. How I can solve this issue?

Please help me with Redmine. I had a working Redmine at FreeBSD 11.2-RELEASE-p4 with Nginx and Passenger. But after some latest updates, my Redmine is not working properly.
I have an error in passenger.log:
[ E 2018-10-09 16:10:01.0750 42785/Tb
age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for
application /usr/local/www/redmine: The application encountered the
following error: undefined method `active_record' for
(NoMethodError) Error ID: 8412e2de Error details saved to:
/tmp/passenger-error-wIhbfb.html
What can I do with these errors?
You should try to install the gems required, just go to where the redmine code is and type
bundle install
Restart nginx and see if keep saying the same error.

Symfony 4 - php bin/console server:run not works

I have a problem with this command : php bin/console server:run on Symfony 4
When I go to http://127.0.0.1:8000/ I have this error message :
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'J:\my_project\vendor\symfony\web-server-bundle/Resources/router.php' (include_path='.;C:\php\pear') in Unknown on line 0
Indeed, the router.php file does not exist !
But if I run this command : php -S 127.0.0.1:8000 -t public everything is ok.
Any idea ?
First check that you have installed the SF4 Web Server bundle :
> composer require server --dev
then you can start using it through Symfony using run / start command
Not sure if this is the case for you too, but it is probably worth checking (and may also be interesting for others having the same problem).
My antivirus software likes to put the router.php in quarantine (effectively removing it from that directory). Check if yours did the same and if so restore it and create an exception for that file. Additionally you should configure your antivirus to notify you if it puts something in quarantine, so you can intervene in time.

install clodufiy3.4 at centos7 error occured

I installed cloudify3.4 according to the cloudify DOCS. When I install the manager, and executed like this:
# cfy bootstrap --install-plugins -p openstack-manager-blueprint.yaml -i openstack-manager-blueprint-inputs.yaml
an error occurred:
[ERROR] Workflow failed: Task failed 'nova_plugin.keypair.creation_validation' -> 'NoneType' object has no attribute 'startswith'
I have already installed
"cloudify_openstack_plugin-1.4-py27-none-linux_x86_64-centos-Core.wgn"
"cloudify_openstack_plugin-1.4-py27-none-linux_x86_64-redhat-Maipo.wgn"
So, how to solve this error? Thank you to everyone who helped me!
The error says you have a problem with your keypair definition.
Please check if you have defined a wildcard or something that is not valid for keypairs.

set phpstorm working

I'm trying to configure correctly phpstorm but I receive this error:
/Applications/MAMP/bin/php/php5.3.6/bin/php/private/var/folders/k9/kwf7lc153rngm1ky4_3948sc0000gn/T/ide-phpunit.php --no-configuration /Applications/MAMP/htdocs/FirstAid_jquerymobile
Testing started at 21:17 ...
Process finished with exit code 255
I installed phpunit but I don't even know which could be the error?
Usually PhpStorm produces this error when PHPUnit fails with fatal - check the PHP error log or run PHPUnit directly from CLI - it will help to localize the problem.

Resources