Cloudn`t connect github

rasa2.7 rasa x 0.47

i use docker-compose deploy

server local has ssh key and add config in gitlab,its ok in server exct git clone ,but in rasa-x connect remote , i copy ssh add config in my remote config, verify was wrong

error log:ERROR:rasax.community.api.blueprints.git:Given repository credentials don’t provide write permissions to the repository. Please make sure the SSH key is correct and the administrator of the remote repository gave you the required permissions.

i’m really sure i has add ssh key to my remote repo

@yangli can you please visit this link and at the time of creating the repo, you need to provide the full access control for read and write, just tick that and make sure to provide the deploy key (SSH Key) right.

Ref: Deploy Your Assistant

i has disconnect repo, it’s has influence to try again connect the repo,i lost direction how to connect repo again, all config i has make it OK,but it not work

@yangli please visit the above mention link “deploy your assistant” and you will be able to get the direction.

thank you @nik202 ,i had configuration rasa-x in docker container , reconfiguration hosts it’s ok to connect gitlab.

it confuse me ,if i down and up docker-compose ,the hosts will be reset , should always to reconfiguration

and now have another question ,rasax state in orange i had addchange by create new branch , it pushed new branch in my remote repo,i can see the new branch in my repo, but rasax still orange state and doesn’t pull target branch code

my Custom Slot Types code like this:

from rasa.shared.core.slots import Slot

class UnprocessedInvoiceNumberSlot(Slot):
    def feature_dimensionality(self):
        return 2

    def _as_feature(self):
        r = [0.0] * self.feature_dimensionality()
        if self.value:
            if self.value == 1:
                r[0] = 1.0
            elif self.value > 1:
                r[1] = 1.0
        return r


class ProcessedInvoiceNumberSlot(Slot):
    def feature_dimensionality(self):
        return 2

    def _as_feature(self):
        r = [0.0] * self.feature_dimensionality()
        if self.value:
            if self.value >= 1:
                r[0] = 1.0
            else:
                r[1] = 1.0
        return r

a directory relative:

└── rasa_bot
    ├── addons
    |    ├── slots
    |        ├── __init__.py
             └── my_custom_slots.py

run_background_synchronization error :

Failed to find slot type, 'addons.slots.custom_slots.ProcessedInvoiceNumberSlot' is neither a known type nor user-defined. If you are creating your own slot type, make sure its module path is correct. You can find all build in types at https://rasa.com/docs/rasa/domain#slots

Can you specify what you mean here hosts will reset? it will be great if you can share some screenshot for the same.

Yes, If we update anything in the Rasa X such as NLU example or any stories etc, we need to push to Github/Gitlabl and it will got to repo and create the new branch. So you need to merge that new branch with the “main”/ “master” branch then your repo and rasa x will be synchronised and you will see green state

This is regarding which context, sorry not get you?

i found run_background_synchronization error in logs ,synchronised exception maybe in custom slot ,but i visit custom slot ,According to the document i don’t found anything exception

above mention i has copy code and exception logs

@yangli is your main topic issue is resolved?

yes ,thank you for reply

can you give me some advice for multiple custom-slots, i add one custom-solt in my_custom_solts.py it’s work ok, but add multiple solts in my_custom_slots .the logs tell me

Failed to find slot type, 'addons.slots.custom_slots.ProcessedInvoiceNumberSlot' is 
neither a known type nor user-defined. If you are creating your own slot type, make sure 
its module path is correct. You can find all build in types at https://rasa.com/docs/rasa/domain#slots