I have a problem starting a background process. I always get the message:

Typ	bg_process
Datum	Dienstag, Juni 12, 2012 - 02:15
Benutzer	test
Standort	http://www.some-server.com/bgp%3Astart/ab348a8a76d544e777a1ae9438b3dd2f/a223792cf368a14feebd84c03ea43ded
Referrer	http://www.some-server.com/node/add/poi?field_poi_reference=1379&render=overlay
Message	Unknown process: ab348a8a76d544e777a1ae9438b3dd2f
Schweregrad	Mitteilung
Operationen

And after that:

Typ	Zugriff verweigert (access denied)
Datum	Dienstag, Juni 12, 2012 - 02:15
Benutzer	test
Standort	http://www.some-server.com/bgp%3Astart/ab348a8a76d544e777a1ae9438b3dd2f/a223792cf368a14feebd84c03ea43ded
Referrer	http://www.some-server.com/node/add/poi?field_poi_reference=1379&render=overlay
Message	bgp:start/ab348a8a76d544e777a1ae9438b3dd2f/a223792cf368a14feebd84c03ea43ded
Schweregrad	Warnung

And the process will not start. The strange thing is, that this problem occurs after I migrated to an other server although it has exactly the same configuration. Before everything worked well.

I'am using the actual version 7.x-1.12.

Does anybody know, would could be the cause?

Comments

gielfeldt’s picture

Hi

Yes. When migrating db to another system, some of the background process configuration is copied as well, and this might cause problems. Go to the Background Process settings page and click "Determine default service host". Let me know if this works.

gunwald’s picture

Thank you very much for your fast reply. That was the solution, it works know very well.

gunwald’s picture

It seems that unfortunately I was a little but too enthusiastic. The problem occurs again but not alway like before but sometimes. To click "Determine default service host" always helps for a while.
The strange thing is, that is seems the problem only occurs when I start the bg_process within a menu_hook (hook_node_update), but not starting it manually.
Don't know whether or not this hint could be useful.
Do I have to check some server configurations? Or what else cloud I do?

gielfeldt’s picture

Aha. This might be a known bug that I'm working on a solution for. I assume your using MySQL and InnoDB?

If so, you can change the database engine for the background_process table to MyISAM. See this thread for an example of how to do it and to follow the progress of the bugfix.

EDIT: Grammar correction...

gielfeldt’s picture

Were you able to get it to work?

gunwald’s picture

Thank you again for your help! My problem is, that can't change the table to MyISAM at this moment. I have to talk to the other developers working on my project first. When it is done, I will tell you whether or not i could get it to work.

gunwald’s picture

My problem is solved, to "Determine default service host" and changing the table type did the trick! Thank you again.

gielfeldt’s picture

Status: Active » Fixed

A better alternative to change table type has been committed: http://drupal.org/node/1489316#comment-6157798

Also, the need for doing a "Determine default service host" after db migration has been eliminated in many (if not most) use cases, namely when $base_url actually does work.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Spelling