OCIS service account ID issues

I am running OCIS in a docker container on my own server in Fedora 37 Server. In the last few weeks it suddenly stopped working. I ran docker ps and found that the ocis container was constantly restarting. I ran docker logs --tail 50 --follow --timestamps ocis_runtime
and got the following lines. I would appreciate any help in figuring out what I need to do. I have not had to set up a service account ID running this server for the last several months. I am not using this in a production environment, just a local server. Thanks everyone.

2024-03-10T06:07:31.422157048Z The service account id has not been configured for storage-users. Make sure your /etc/ocis config contains the pr
oper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:32.567234818Z The service account id has not been configured for ocm. Make sure your /etc/ocis config contains the proper value
s (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:34.069419159Z The service account id has not been configured for search. Make sure your /etc/ocis config contains the proper va
lues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:36.034654823Z The service account id has not been configured for storage-users. Make sure your /etc/ocis config contains the pr
oper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:37.831243182Z The service account id has not been configured for search. Make sure your /etc/ocis config contains the proper va
lues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:40.957129461Z The service account id has not been configured for clientlog. Make sure your /etc/ocis config contains the proper
values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:45.749429261Z The service account id has not been configured for search. Make sure your /etc/ocis config contains the proper va
lues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:07:53.067017460Z The service account id has not been configured for clientlog. Make sure your /etc/ocis config contains the proper
values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:08:07.211256950Z The service account id has not been configured for notifications. Make sure your /etc/ocis config contains the pr
oper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:08:33.857888381Z The service account id has not been configured for search. Make sure your /etc/ocis config contains the proper va
lues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:09:26.541079081Z The service account id has not been configured for auth-service. Make sure your /etc/ocis config contains the pro
per values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:10:28.026720785Z The service account id has not been configured for notifications. Make sure your /etc/ocis config contains the pr
oper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:11:29.155483532Z The service account id has not been configured for proxy. Make sure your /etc/ocis config contains the proper val
ues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:12:30.399643084Z The service account id has not been configured for storage-users. Make sure your /etc/ocis config contains the pr
oper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).
2024-03-10T06:13:31.617621072Z The service account id has not been configured for search. Make sure your /etc/ocis config contains the proper va
lues (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).

@nice Service Accounts are a breaking change of ocis 5. Setting the env vars OCIS_SERVICE_ACCOUNT_ID and OCIS_SERVICE_ACCOUNT_SECRET should fix the problem

1 Like

That did the trick! Thank you.

Hi, I have a similar issue. I am running OCIS as baremetal installation with systemd Service. I upgraded to OCIS 5 and set the OCIS_SERVICE_ACCOUNT_ID and OCIS_SERVICE_ACCOUNT_SECRET in my ocis.env file. Everything seems working so far. I tried to run ocis storage-users trash-bin list and it throwed me this error:

The service account id has not been configured for storage-users. Make sure your /etc/ocis config contains the proper values (e.g. by running ocis init or setting it manually in the config/corresponding environment variable).

What am I doing wrong here?

@BEBU88 the ocis commands need service account ennvars set also. Can double check you have them set in the terminal you are executing the command from?

Ok, didn’t know, that envvars are also needed in terminal. It’s working fine now. Thank you!