Error with resque-web: Couldn't get a file descriptor referring to the console - file-descriptor

I'm trying start resque-web, but this error occurs:
[Sun Mar 06 05:27:48 +0000 2011] Starting 'resque-web'...
[Sun Mar 06 05:27:48 +0000 2011] trying port 8281...
Couldn't get a file descriptor referring to the console
This error occurred with Ubuntu 10.04 and 10.10.
Resque Web only starts with -F option (don't daemonize, run in the foreground). So, it must be something when the process is daemonized.
Any idea, how can I solve it?
Regards,

It's probably trying to open the default browser and failing to do so. Try using:
$ resque-web -L
To avoid starting a browser.

Related

laravel 5.6 server error

My website works perfect on localhost but when moved to live server which is Ubuntu 16.04 LTS I got this error
[Mon Mar 05 11:11:28.968821 2018] [:error] [pid 19322] [client 156.212.75.255:61635] PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in XXXXXXXXXX/vendor/symfony/finder/Comparator/NumberComparator.php on line 42
[Mon Mar 05 11:11:28.968895 2018] [:error] [pid 19322] [client 156.212.75.255:61635] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
[Mon Mar 05 11:11:28.969374 2018] [:error] [pid 19322] [client 156.212.75.255:61635] PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in XXXXXXXXXX/vendor/symfony/finder/Comparator/NumberComparator.php on line 42
[Mon Mar 05 11:11:28.969390 2018] [:error] [pid 19322] [client 156.212.75.255:61635] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
How can I fix that and what is the right way to remove the public directory?
disable php7.0
sudo a2dismod php7.0
enable php7.1
sudo a2enmod php7.1 #to enable 7.1
restart apache
sudo service apache2 restart
If you look at the source code.
/**
* #param string|int $test A comparison string or an integer
*
* #throws \InvalidArgumentException If the test is not understood
*/
public function __construct(?string $test)
{
The ?string, it's called Nullable Type. This feature comes after php 7.1 (see documentation here). So you need to upgrade php version on your server. Make sure you get minimum php version 7.1. Or make it same with your local environment.
follow this link to upgrade php version to 7.2
https://thishosting.rocks/install-php-on-ubuntu/
then run this commands
sudo a2enmod php7.2
sudo a2dismod php7.0
sudo service apache2 restart
Check your php version, it's very likely that's it:
For ubuntu family:
> a2dismod php5.6 #current version
> a2enmod php7.1 #required version ( 7.0, 7.1, 7.2 )
> service apache2 restart

Remove Heroku setting from Hubot?

I tried running Hubot on Heroku, but I gave up because I'd prefer not to give out my credit card number.
Instead, I tried running Hubot on my mac. It gave an error, like this:
$ ./bin/hubot
hubot-sample> [Fri Jun 05 2015 11:41:52 GMT+0900 (JST)] ERROR hubot-heroku-alive included, but missing HUBOT_HEROKU_KEEPALIVE_URL. `heroku config:set HUBOT_HEROKU_KEEPALIVE_URL=$(heroku apps:info -s | grep web_url | cut -d= -f2)`
[Fri Jun 05 2015 11:41:52 GMT+0900 (JST)] INFO Using default redis on localhost:6379
I think this error occured because Hubot is looking for Heroku. How do I remove this?
Try this.
cd <your-hubot-project-dir>
npm uninstall hubot-heroku-keepalive --save
Then find and remove the line that contains "hubot-heroku-keepalive" from file "external-scripts.json".
Run "bin/hubot" again.

Jmeter(Unable to run Jmeter in Ubuntu Amazon Instance)

While running Jmeter in Ubuntu Amazon Instance, I am getting the following error--
ubuntu#ip-172-31-22-219:~/Jmeter/apache-jmeter-2.9/bin$ jmeter
[warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-activation-1.1-spec in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-javamail-1.4-provider in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java
[warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96)
An error occurred: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
I don't know where exactly the problem is . Can any one please help?
Thanks,
Vimal
Seems like you are trying to start the GUI version of JMeter and not the NON GUI version.
If you want to run JMeter on the commandline, you can take a look at this page: http://developer.amd.com/community/blog/using-apache-jmeter-in-non-gui-mode/
jmeter -n -t MyTestPlan.jmx
-n ensures it runs in non-GUI mode.
You should see something like -
Created the tree successfully using Post Request.jmx
Starting the test # Mon Jun 02 16:10:44 IST 2014 (1401705644820)
Waiting for possible shutdown message on port 4445
Tidying up ... # Mon Jun 02 16:10:47 IST 2014 (1401705647509)
... end of run

Having trouble setting an environment variable for apache on Mac

I need to set an environment variable on my Mac so when Apache is run, and PHP/PDO loads the pdo_informix driver, it knows the location of the Informix Home directory. And I really have tired everything!
In /usr/sbin/envvars I have added: export INFORMIXDIR=/Applications/IBM/informix
In /System/Library/LaunchDaemons/org.apache.httpd.plist I have inserted:
<key>EnvironmentVariables</key>
<dict>
<key>INFORMIXDIR</key>
<string>/Applications/IBM/informix</string>
</dict>
I've tried: launchctl setenv INFORMIXDIR /Applications/IBM/informix
All to no avail.
I have added a PassEnv line to the apache global config. But when I restart the service I see:
root 589 ->apachectl restart
[Mon Aug 05 13:35:16 2013] [warn] PassEnv variable INFORMIXDIR was undefined
When I run my test .php page, the driver loads but complains as it cannot determine the DB locale. Error message:
[Mon Aug 05 12:56:23 2013] [error] [client ::1] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE=HY000, SQLDriverConnect: -23101 [Informix][Informix ODBC Driver][Informix]Unspecified System Error = -23101.' ...
Can anyone tell me what I've missed?
I do hope no one has wasted time looking at this issue. I have been caught out by a predecessor who set up an alias for apachectl in /etc/bashrc!
It turns out I was not executing /usr/sbin/apachectl but, instead, /opt/local/apache2/bin/apachectl
This script imports /opt/local/apache2/bin/envvars and not /usr/sbin/envvars. Nor does it use launchctl... the explains why none of my steps to set the environment worked. Once discovered I got it working straightaway.
Sorry to have troubled you all.

Apache (WAMP) issue: “AH00404: Child: Unable to read socket data from parent”

Frontend developer desperately trying to get a WAMP running on Windows 7 (Home Premium, 64 bit, SP1). I've tried WAMPSERVER and XAMPP. Starting the Apache service failed on both, returning the exact same critical error in their error.log-files:
[Thu Dec 13 14:38:56.905257 2012] [mpm_winnt:crit] [pid 4868:tid 280]
(OS 109)The pipe has been ended. : AH00404: Child: Unable to read
socket data from parent
[Thu Dec 13 14:38:57.028264 2012] [mpm_winnt:crit] [pid 5100:tid 408]
AH00427: Parent: child process exited with status 3 -- Aborting.
I've googled for over 2 hours for this problem and have tried several things. Checking/freeing up Port 80, using a different port, turning off MSSE's real-time protection, disabling LMHOSTS Lookup, dozens of reinstalls... All to no avail.
Please help :(
Go to Control Panel -> Administrative Tools -> Services. Find "Web Deployment Agent Service" right click and stop. Start up Apache and see if it sticks. If so, right click on Web Deployment Agent again and go to properties and set the startup type to Manual.
In my case, the error log was this:
[crit] (OS 109)The pipe has been ended. : setup_inherited_listeners: Unable to read socket data from parent
The solution was that Apache was set to listen on IPv6 interface, but there was no IPv6 interface enabled.

Resources