Hi Everyone,
I have downloaded latest version(16.11.01) of apache ofbiz. I am able to create tenants using gradlew createTenant command, but when I create new tenant while my server is running I got the Port is already in use Exception. Can I create new tenant when my server is already running ? -- Thanks & Regards, Nikhil Bonte. vnnogile Solutions Private Limited |
Hi Nikhil,
I think you can do so if you offset the port so that you don't have two server instances clashing on the same port. you can do so by passing the --portoffset flag. The details are available in README.md Cheers, Taher Alkhateeb On Jan 14, 2017 2:33 PM, "Nikhil Bonte" <[hidden email]> wrote: Hi Everyone, I have downloaded latest version(16.11.01) of apache ofbiz. I am able to create tenants using gradlew createTenant command, but when I create new tenant while my server is running I got the Port is already in use Exception. Can I create new tenant when my server is already running ? -- Thanks & Regards, Nikhil Bonte. vnnogile Solutions Private Limited |
Hi Taher,
thanks for reply. But I don't want to create new instance of server. Is it possible to create new tenant for running instance of server? On 14-01-2017 05:07 PM, Taher Alkhateeb wrote: > Hi Nikhil, > > I think you can do so if you offset the port so that you don't have two > server instances clashing on the same port. you can do so by passing the > --portoffset flag. The details are available in README.md > > Cheers, > > Taher Alkhateeb > > > On Jan 14, 2017 2:33 PM, "Nikhil Bonte" <[hidden email]> wrote: > > Hi Everyone, > > I have downloaded latest version(16.11.01) of apache ofbiz. I am able to > create tenants using gradlew createTenant command, but when I create new > tenant while my server is running I got the Port is already in use > Exception. > Can I create new tenant when my server is already running ? > > -- Thanks & Regards, Nikhil Bonte. vnnogile Solutions Private Limited |
Hi Nikhil,
If your purpose is to create a new tenant without restarting the system and using it immediately then I think that's not possible under the current implementation. On Jan 14, 2017 2:46 PM, "Nikhil Bonte" <[hidden email]> wrote: > Hi Taher, > > thanks for reply. > > But I don't want to create new instance of server. Is it possible to > create new tenant for running instance of server? > > > On 14-01-2017 05:07 PM, Taher Alkhateeb wrote: > >> Hi Nikhil, >> >> I think you can do so if you offset the port so that you don't have two >> server instances clashing on the same port. you can do so by passing the >> --portoffset flag. The details are available in README.md >> >> Cheers, >> >> Taher Alkhateeb >> >> >> On Jan 14, 2017 2:33 PM, "Nikhil Bonte" <[hidden email]> wrote: >> >> Hi Everyone, >> >> I have downloaded latest version(16.11.01) of apache ofbiz. I am able to >> create tenants using gradlew createTenant command, but when I create new >> tenant while my server is running I got the Port is already in use >> Exception. >> Can I create new tenant when my server is already running ? >> >> >> > -- > Thanks & Regards, > Nikhil Bonte. > vnnogile Solutions Private Limited > > |
Administrator
|
I confirm it's not possible OOTB
Jacques Le 14/01/2017 à 17:03, Taher Alkhateeb a écrit : > Hi Nikhil, > > If your purpose is to create a new tenant without restarting the system and > using it immediately then I think that's not possible under the current > implementation. > > On Jan 14, 2017 2:46 PM, "Nikhil Bonte" <[hidden email]> wrote: > >> Hi Taher, >> >> thanks for reply. >> >> But I don't want to create new instance of server. Is it possible to >> create new tenant for running instance of server? >> >> >> On 14-01-2017 05:07 PM, Taher Alkhateeb wrote: >> >>> Hi Nikhil, >>> >>> I think you can do so if you offset the port so that you don't have two >>> server instances clashing on the same port. you can do so by passing the >>> --portoffset flag. The details are available in README.md >>> >>> Cheers, >>> >>> Taher Alkhateeb >>> >>> >>> On Jan 14, 2017 2:33 PM, "Nikhil Bonte" <[hidden email]> wrote: >>> >>> Hi Everyone, >>> >>> I have downloaded latest version(16.11.01) of apache ofbiz. I am able to >>> create tenants using gradlew createTenant command, but when I create new >>> tenant while my server is running I got the Port is already in use >>> Exception. >>> Can I create new tenant when my server is already running ? >>> >>> >>> >> -- >> Thanks & Regards, >> Nikhil Bonte. >> vnnogile Solutions Private Limited >> >> |
Thanks for your replies.
Indeed, I was looking for creating a new tenant in a running instance of server. Thanks & Regards, Nikhil Bonte. vnnogile Solutions Private Limited On 15-01-2017 12:28 AM, Jacques Le Roux wrote: > I confirm it's not possible OOTB > > Jacques > > > Le 14/01/2017 à 17:03, Taher Alkhateeb a écrit : >> Hi Nikhil, >> >> If your purpose is to create a new tenant without restarting the >> system and >> using it immediately then I think that's not possible under the current >> implementation. >> >> On Jan 14, 2017 2:46 PM, "Nikhil Bonte" <[hidden email]> >> wrote: >> >>> Hi Taher, >>> >>> thanks for reply. >>> >>> But I don't want to create new instance of server. Is it possible to >>> create new tenant for running instance of server? >>> >>> >>> On 14-01-2017 05:07 PM, Taher Alkhateeb wrote: >>> >>>> Hi Nikhil, >>>> >>>> I think you can do so if you offset the port so that you don't have >>>> two >>>> server instances clashing on the same port. you can do so by >>>> passing the >>>> --portoffset flag. The details are available in README.md >>>> >>>> Cheers, >>>> >>>> Taher Alkhateeb >>>> >>>> >>>> On Jan 14, 2017 2:33 PM, "Nikhil Bonte" <[hidden email]> >>>> wrote: >>>> >>>> Hi Everyone, >>>> >>>> I have downloaded latest version(16.11.01) of apache ofbiz. I am >>>> able to >>>> create tenants using gradlew createTenant command, but when I >>>> create new >>>> tenant while my server is running I got the Port is already in use >>>> Exception. >>>> Can I create new tenant when my server is already running ? >>>> >>>> >>>> >>> -- >>> Thanks & Regards, >>> Nikhil Bonte. >>> vnnogile Solutions Private Limited >>> >>> > -- Regards, Nikhil Bonte. vnnogile Solutions Private Limited |
In reply to this post by Nikhil Bonte
Dear Team,
I have followed instructions to activate multi-tenancy using postgres. All seems to work fine, however I have the below message when I use the createTenant command. 2018-06-03 13:25:12,266 |main |EntitySaxReader |E| An error occurred saving the data, rolling back transaction (true) org.apache.ofbiz.entity.GenericEntityException: org.apache.ofbiz.entity.GenericEntityException: There is no datasource (Helper) configured for the entity-group [org.apache.ofbiz.tenant]; was trying to find datasource (helper) for entity [Tenant] This error does not prevent the tenant from being created, data is properly loaded as well. So I am worried as I cannot relate it to any configuration issue. Any one of you recognising the issue? Thanks a lot for your support Mohammed -- Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html |
Administrator
|
Hi Mohammed,
Your message has been moderated. Please use and subscribe to the user ML for such questions see why here http://ofbiz.apache.org/mailing-lists.html You will get a better support and it's more fair to share with everybody The wider the audience the better the answers you might get Thanks For your question, I might be wrong but I think a tenant DB has no datasource (Helper) because those are defined in the entityengine.xml file and apart the shared one, like OOTB localderbytenant, there is no datasource definition for created tenants. To be checked and if it's right it's worth a Jira creation and a fix. Jacques Le 03/06/2018 à 14:04, mfadili a écrit : > Dear Team, > > I have followed instructions to activate multi-tenancy using postgres. > All seems to work fine, however I have the below message when I use the > createTenant command. > > 2018-06-03 13:25:12,266 |main |EntitySaxReader > |E| An error occurred saving the data, rolling back transaction (true) > org.apache.ofbiz.entity.GenericEntityException: > org.apache.ofbiz.entity.GenericEntityException: There is no datasource > (Helper) configured for the entity-group [org.apache.ofbiz.tenant]; was > trying to find datasource (helper) for entity [Tenant] > > This error does not prevent the tenant from being created, data is properly > loaded as well. > So I am worried as I cannot relate it to any configuration issue. > > Any one of you recognising the issue? > > Thanks a lot for your support > > Mohammed > > > > > > > -- > Sent from: http://ofbiz.135035.n4.nabble.com/OFBiz-User-f135036.html > |
Free forum by Nabble | Edit this page |