Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly hanging worker? #67

Closed
wtrdk opened this issue Feb 5, 2019 · 8 comments
Closed

Possibly hanging worker? #67

wtrdk opened this issue Feb 5, 2019 · 8 comments

Comments

@wtrdk
Copy link

wtrdk commented Feb 5, 2019

Last night I installed OwnPhotos (my compliments for your very cool app!). It could'nt connect to the backend. While trying to login I got this message:

"No connection to backend server"

I left the instance running overnight, and just checked the logs:
A lot of 'Sent heartbeat' messages, and at the moment I tried to login again I got the 'Not found' message.

07:14:58 Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.
07:21:43 Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.
07:28:28 Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.
07:35:13 Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.
07:41:58 Sent heartbeat to prevent worker timeout. Next one should arrive within 420 seconds.
Not Found: /robots.txt

As mentioned in #52 (comment) I report this as a new issue

@guysoft
Copy link
Collaborator

guysoft commented Feb 5, 2019

Just to make sure - are you on the latest container with a clean db? Because I had this issue, but latest hooram/ownphotos seems to fix it for me.

Also what is the output of https://localhost:3000/api/ ?

@wtrdk
Copy link
Author

wtrdk commented Feb 5, 2019

Just to make sure - are you on the latest container with a clean db? Because I had this issue, but latest hooram/ownphotos seems to fix it for me.

Also what is the output of https://localhost:3000/api/ ?

Hi, as far as I know I am using the latest container. I deployed it last night...
The output of https://localhost:3000/api/ is a lot of text, I put it in a .txt file and added it as an attachment to keep this thread clean ;-)

api.txt

@guysoft
Copy link
Collaborator

guysoft commented Feb 5, 2019

Ok, that otuput is what you expect, it says "I can't find /api", but here are a list of all the paths that work.
This means your backend server is working.
@hooram Perhaps there is a command we can send to the backend to kill and start the worker or get a log or response or something?

@wtrdk
Copy link
Author

wtrdk commented Feb 5, 2019

I stopped the backend and brought it back up again several times, but that didn't solve the problem.
More logging:

19:36:08 Registering birth of worker 9330aab10489.77
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/miniconda/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/miniconda/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/miniconda/lib/python3.7/site-packages/django/core/management/base.py", line 316, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/miniconda/lib/python3.7/site-packages/django/core/management/base.py", line 353, in execute
    output = self.handle(*args, **options)
  File "/miniconda/lib/python3.7/site-packages/django_rq/management/commands/rqworker.py", line 100, in handle
    w.work(burst=options.get('burst', False))
  File "/miniconda/lib/python3.7/site-packages/rq/worker.py", line 466, in work
    self.register_birth()
  File "/miniconda/lib/python3.7/site-packages/rq/worker.py", line 276, in register_birth
    raise ValueError(msg.format(self.name))
ValueError: There exists an active worker named '9330aab10489.77' already

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]

You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

And after trying top open https://localhost:3000/api :

Not Found: /api

Please let me know if there's something I can try or do to help out! (and your quick response is awesome 👍 )

@wtrdk
Copy link
Author

wtrdk commented Feb 10, 2019

Hi, no update yet? I'm just so eager to use this software ;-)

@guysoft
Copy link
Collaborator

guysoft commented Feb 10, 2019 via email

@wtrdk
Copy link
Author

wtrdk commented Feb 11, 2019

I'm very sorry and ashamed of myself... I found out I didn't adjust the localhost setting in the docker-compose.yml file. After adjusting that everything worked fine!
Very sorry to bother you! :-(

@wtrdk wtrdk closed this as completed Feb 11, 2019
@guysoft
Copy link
Collaborator

guysoft commented Feb 11, 2019

No shame in reporting issues and how you solved them, wish more would.

wisdom_of_the_ancients

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants