Giter VIP home page Giter VIP logo

Comments (23)

leothelocust avatar leothelocust commented on July 20, 2024

In case it will help, here is the log:

[Fri Aug 8 14:49:37 2014] PHP Notice: Undefined variable: groups in /beanstalk_console/lib/tpl/modalFilterColumns.php on line 14
[Fri Aug 8 14:49:37 2014] PHP Stack trace:
[Fri Aug 8 14:49:37 2014] PHP 1. {main}() /beanstalk_console/public/index.php:0
[Fri Aug 8 14:49:37 2014] PHP 2. require_once() /beanstalk_console/public/index.php:17
[Fri Aug 8 14:49:37 2014] PHP 3. require_once() /beanstalk_console/lib/tpl/main.php:181
[Fri Aug 8 14:49:37 2014] PHP Warning: Invalid argument supplied for foreach() in /beanstalk_console/lib/tpl/modalFilterColumns.php on line 14
[Fri Aug 8 14:49:37 2014] PHP Stack trace:
[Fri Aug 8 14:49:37 2014] PHP 1. {main}() /beanstalk_console/public/index.php:0
[Fri Aug 8 14:49:37 2014] PHP 2. require_once() /beanstalk_console/public/index.php:17
[Fri Aug 8 14:49:37 2014] PHP 3. require_once() /beanstalk_console/lib/tpl/main.php:181
[Fri Aug 8 14:49:37 2014] PHP Notice: Undefined variable: groups in /beanstalk_console/lib/tpl/modalFilterColumns.php on line 23
[Fri Aug 8 14:49:37 2014] PHP Stack trace:
[Fri Aug 8 14:49:37 2014] PHP 1. {main}() /beanstalk_console/public/index.php:0
[Fri Aug 8 14:49:37 2014] PHP 2. require_once() /beanstalk_console/public/index.php:17
[Fri Aug 8 14:49:37 2014] PHP 3. require_once() /beanstalk_console/lib/tpl/main.php:181
[Fri Aug 8 14:49:37 2014] PHP Warning: Invalid argument supplied for foreach() in /beanstalk_console/lib/tpl/modalFilterColumns.php on line 23
[Fri Aug 8 14:49:37 2014] PHP Stack trace:
[Fri Aug 8 14:49:37 2014] PHP 1. {main}() /beanstalk_console/public/index.php:0
[Fri Aug 8 14:49:37 2014] PHP 2. require_once() /beanstalk_console/public/index.php:17
[Fri Aug 8 14:49:37 2014] PHP 3. require_once() /beanstalk_console/lib/tpl/main.php:181

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

What directory is your webroot pointing to? It looks like your include paths are off.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

pointing to public.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

To add a bit more clarification, I can see the beanstalk console page, but after I add a server and then select it from the "All Servers" dropdown it says "The server is unavailable".

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

I misread the errors. So these are PHP warnings. Yes ideally they shouldn't be there; the code is referring to uninitialized variables which is the problem. You can move past this by turning off notices for your installation. Maybe something like error_reporting(0) at the top of your index.php just to see if that's the problem.

I also wonder if your beanstalkd server is even working. Can you try telnetting to it to ensure that you are able to get through?

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

How might I telnet into it? I am running it with "php -S localhost:7654 -t public".

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

What does your network setup with all your different resources look like?

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

The errors are not gone after changing the error_reporting like you said, but it still isn't working.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

I'm not sure what you are asking with regard to my network setup and all my resources? Can you elaborate?

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

Sure. This package is a frontend for the Beanstalkd application. Where did you install that application?

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

My current setup is this:

  1. Installed beanstalk console in my ~/Sites/beanstalk_console directory with the composer create-project method. Then I ran "php -S localhost:7654 -t public" in order to serve the site at "localhost:7654".
  2. My site running the Beanstalkd application is served up at "pony.dev" which is a vaprobash (vagrant vm) running Laravel. I ran the command "sudo service beanstalkd start" on this machine. And I have created several queued tasks with the Queue::push method in a route closure.
  3. Basically, if you are familiar with Jeffrey Way's Laracasts, I followed https://laracasts.com/lessons/beanstalkd-queues-with-laravel to a "T". No one else seems to be having the problem except one user in the comments (Zachary Crites) and no solution is provided.

Hope this helps.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

So I just ran beanstalkd -l 192.168.22.10 -p 11300 on my VM, and this allowed me to not get that error anymore and things appear to be working. HOWEVER, the queued jobs are not showing up?

I feel like I'm getting closer, but still not 100% yet.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

If it helps, when I run beanstalkd on command line, this is the response.

beanstalkd: net.c:119 in make_server_socket: bind(): Address already in use
beanstalkd: net.c:119 in make_server_socket: bind(): Address already in use
beanstalkd: main.c:64 in main: make_server_socket()

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

I'm not familiar with the laracasts, I apologize.

beanstalkd is basically saying that that port is already being used, probably by another beanstalkd process. Without hunting down the process (sudo lsof -i :11300) and killing it and restarting it, maybe you can just restart everything and then run through the tutorial all over again and have it working?

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

Well, I've been through the screencast about 4 times... I'm pretty sure you're right though, it must have something to do with a conflicting port. I will keep trying and report back if I figure out the issue.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

Is this what I should see?

$ sudo lsof -i :11300
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
beanstalk 1175 beanstalkd 3u IPv4 169703 0t0 TCP localhost:11300 (LISTEN)

from beanstalk_console.

needcaffeine avatar needcaffeine commented on July 20, 2024

Yup, so beanstalkd is already running on whatever machine you're running that from (is that the vagrant machine or your local machine?). But does your videocast require it to be running on the vagrant machine?

Also if you are indeed running vagrant, you can do a vagrant ssh to be dumped at a console inside the machine.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

that's in the vagrant vm. and yeah, i'm familiar with vagrant ssh.

from beanstalk_console.

leothelocust avatar leothelocust commented on July 20, 2024

So what exactly should my vagrant vm actually be doing? This is the location where the beanstalkd application lives and also where my app is triggering the queued events. It is also running the daemon:
beanstalk 1736 beanstalkd 3u IPv4 172021 0t0 TCP localhost:11300 (LISTEN)

Does this all seem right so far?

from beanstalk_console.

pentium10 avatar pentium10 commented on July 20, 2024

No update for long time, was his issue resolved?

from beanstalk_console.

pentium10 avatar pentium10 commented on July 20, 2024

recent commits should have fixed this issue.

from beanstalk_console.

skinnyandbald avatar skinnyandbald commented on July 20, 2024

I'm still getting this error. Followed the Laracasts tutorial to the T as well.

from beanstalk_console.

pentium10 avatar pentium10 commented on July 20, 2024

are you sure there is an error and not just a notice which you can suppress with the error_reporting setting.

from beanstalk_console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.