threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Adding packages inconsistently doesn't load the actors #159

Closed MathiasDeWeerdt closed 5 years ago

MathiasDeWeerdt commented 5 years ago

Commands:

cl = j.servers.threebot.local_start_default(web=True)
cl.actors.package_manager.package_add(git_url="https://github.com/threebotapps/interface.git")
cl.actors.package_manager.package_add(git_url="https://github.com/threebotapps/contacts.git")

When running the commands above the UI start and I can access it but the actors don't always start, I then have to restart the 3bot, clear bcdb and sometimes use 'js_init generate'. To make to work.

Looking at the logs with 'tmux at' doesn't show any errors whatsoever.

MathiasDeWeerdt commented 5 years ago

It could be related to the order the packages are loaded and the rules NGINX uses. If I switch contacts and interface around it seems to be working little bit more consistent.

xmonader commented 5 years ago

you need to call cl.reload explicitly.

rkhamis commented 5 years ago

@MathiasDeWeerdt please close if this fixes your issue

abom commented 5 years ago

This fix will enable that when called from gedis http https://github.com/threefoldtech/jumpscaleX_threebot/issues/232.

If you need them in current kosmos session, you should do cl.reload() manually as @xmonader said.

siddiquagig commented 5 years ago

Verified

If it is wanted in the same kosmos session , reload should be used.

image