hydra-billing / homs Goto Github PK
View Code? Open in Web Editor NEWHydra Order Management System
License: Apache License 2.0
Hydra Order Management System
License: Apache License 2.0
Hi guys, in order to get the minio console worker, i needed to add this to the docker coompose
On the minio section, change command to:
command: "server /opt/minio --console-address :9001"
And add 9001 port to the ports of minio section
ports:
- $MINIO_PORT:9000
- 9001:9001
Also the documentation needs a fix when "accesing the console" since 9000 is the object storage api per se, not the console and youre not get any login screen there, just an "access denied"
It looks like the Minio URL is hard coded as 127.0.0.1:9090
in homs/config/hbw.yml.sample
This doesnt appear to work in docker based environments since 127.0.0.1 refers to the homs container, so the file upload in the new customer
example will just hang and the logs show Seahorse::Client::NetworkingError (Failed to open TCP connection to 127.0.0.1:9000 (Connection refused - connect(2) for "127.0.0.1" port 9000)):
It was done according to the instructions in readme.md. PostgreSQL is used as the database.
The user manual was about a.
1. Install docker-compose.
2. Clone HOMS git repository:
git clone https://github.com/latera/homs.git
3. Skipped (used Debian 9)
4. Copy your (or default) .env file to your project's directory:
cp .env.sample .env
All variables are set in .env file. There you can change them, if you want to.
4.1. Create your own configs from samples:
find config -name '*.sample' | xargs -I{} sh -c 'cp $1 ${1%.*}' -- {}
5. Add SECRET_KEY_BASE variable to your .env with uniq id as value. Generate it any way you like. For example:
SECRET_KEY_BASE=0750fd0eac13032778f0a42e2ab450003eaece477ea881501be0cc438f870a2f498dbbc00ffb7c8379c30c960568a402d315496bb7bc2b3ee324401ba788a
Make sure this key is secret and don't share it with anyone.
5.1. Place the downloaded Oracle Instant Client RPMs in the same directory as the Dockerfile and run:
docker build -t latera/homs .
6. Skip this step
7. Be sure to update secret key in /etc/hydra/homs/secrets.yml. You can generate key with this command:
openssl rand -hex 64
8. Run docker-compose: with custom config:
docker-compose -f docker-compose.dev.yml up -d
9. Navigate to Minio control panel and create a bucket with name equal to MINIO_BUCKET_NAME value from .env file.
10. Navigate to Camunda Admin and create admin user with credentials equal to BPM_USER:BPM_PASSWORD values from .env file.
11. (Optional) If you want to use demo processes navigate to Camunda and create user with [email protected] email.
12. Login at HydraOMS with [email protected]/changeme
Maybe some extra step. Although normally the base stood all in /opt/homs/data all appeared and error on connecting in the logs of the containers are not see.
But perhaps on the contrary something is missing yet, because the last step gives the browser the following:
"We're sorry, but something went wrong.
If you are the application owner check the logs for more information."
And the log in the container contains this:
[HOMS] I, [2019-07-30T07:13:36.302987 #32] INFO -- : Started GET "/users/sign_in" for 10.25.0.151 at 2019-07-30 07:13:36 +0000
[HOMS] I, [2019-07-30T07:13:36.308997 #32] INFO -- : Processing by SessionsController#new as HTML
[HOMS] I, [2019-07-30T07:13:36.437369 #32] INFO -- : Rendering devise/sessions/new.html.erb within layouts/application
[HOMS] I, [2019-07-30T07:13:36.448445 #32] INFO -- : Rendered devise/sessions/new.html.erb within layouts/application (10.6ms)
[HOMS] I, [2019-07-30T07:13:36.464234 #32] INFO -- : Completed 500 Internal Server Error in 155ms (ActiveRecord: 18.4ms)
[HOMS] F, [2019-07-30T07:13:36.465703 #32] FATAL -- :
[HOMS] F, [2019-07-30T07:13:36.465909 #32] FATAL -- : ActionView::Template::Error (Webpacker can't find hbw in /opt/homs/public/assets/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
):
[HOMS] F, [2019-07-30T07:13:36.466532 #32] FATAL -- : 6: %meta{ name: 'description', content: "#{content_for?(:description) ? yield(:description) : 'Homs'}"}
7: = stylesheet_link_tag 'hbw', media: 'all'
8: = stylesheet_link_tag 'application', media: 'all'
9: = javascript_pack_tag 'hbw'
10: = javascript_pack_tag 'application'
11: = csrf_meta_tags
12: %body.hbw-select2
[HOMS] F, [2019-07-30T07:13:36.466867 #32] FATAL -- :
[HOMS] F, [2019-07-30T07:13:36.467075 #32] FATAL -- : app/views/layouts/application.html.haml:9:in `_app_views_layouts_application_html_haml___3385143447312368567_46958467698660'
config/unicorn.rb:20:in `process_client'
It is not clear where the container is trying to access the system folder /opt/homs/public/assets/packs or inside the container. There is such a folder inside the container, because docker build was made.
Help to understand that already to test this system.
I'm attempting to set up HOMS in production mode and have been able to successfully run the docker container. However, when I log into the HOMS, I get an error saying "Camunda service is unavailable". I looked into the docker logs and it shows a 401 error, indicating that Hydra OMS did not provide credentials to Camunda to retrieve items like pizza order, customers, etc. I manually queried to the same endpoint: camunda:8080/engine-rest/user?email=user%40example.com, entered the correct credentials, and was able to retrieve the order info. Is there something in the setup I'm missing to correctly have Hydra OMS authenticate with Camunda? Not sure what to do here. Here are the docker logs:
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.729743 #34] INFO -- : Finished "/widget/cable/" [WebSocket] for 192.168.112.1 at 2023-01-12 08:27:02 +0000
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.730060 #34] INFO -- : TaskChannel stopped streaming from [email protected]
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.738642 #34] INFO -- : Started GET "/orders" for 192.168.112.1 at 2023-01-12 08:27:02 +0000
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.739976 #34] INFO -- : Processing by OrdersController#index as HTML
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.751448 #34] INFO -- : Rendering orders/index.html.haml within layouts/application
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.752210 #34] INFO -- : Rendered orders/_search_by.html.haml (0.2ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.752526 #34] INFO -- : Rendered orders/_search_by.html.haml (0.2ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.830235 #34] INFO -- : Rendered orders/_filter_by.html.haml (77.6ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.830319 #34] INFO -- : Rendered orders/_search_form.html.haml (78.6ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.833034 #34] INFO -- : Rendered orders/index.html.haml within layouts/application (81.5ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.874513 #34] INFO -- : Rendered layouts/_navigation.html.haml (0.8ms)
2023-01-12 00:27:02 homs | [HOMS] I, [2023-01-12T08:27:02.960256 #34] INFO -- : Completed 200 OK in 220ms (Views: 207.8ms | ActiveRecord: 4.3ms)
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.081508 #34] INFO -- : Started GET "/orders/list?controller=orders&action=index&page_size=25&page=1&sort_by=&order=asc" for 192.168.112.1 at 2023-01-12 08:27:03 +0000
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.082569 #34] INFO -- : Processing by OrdersController#list as JSON
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.082624 #34] INFO -- : Parameters: {"page_size"=>"25", "page"=>"1", "sort_by"=>"", "order"=>"asc"}
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.087427 #34] INFO -- : Rendering orders/list.json.erb
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.087705 #36] INFO -- : Started GET "/widget/cable" for 192.168.112.1 at 2023-01-12 08:27:03 +0000
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.088371 #36] INFO -- : Started GET "/widget/cable/" [WebSocket] for 192.168.112.1 at 2023-01-12 08:27:03 +0000
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.088436 #36] INFO -- : Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: keep-alive, Upgrade, HTTP_UPGRADE: websocket)
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.089387 #37] INFO -- : Started GET "/widget/tasks?entity_class=order" for 192.168.112.1 at 2023-01-12 08:27:03 +0000
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.089611 #36] INFO -- : Started GET "/widget/translations" for 192.168.112.1 at 2023-01-12 08:27:03 +0000
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.090291 #36] INFO -- : Processing by HBW::TranslationsController#index as JSON
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.090556 #37] INFO -- : Processing by HBW::TasksController#index as JSON
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.090600 #37] INFO -- : Parameters: {"entity_class"=>"order"}
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.091800 #34] INFO -- : Rendered orders/list.json.erb (4.3ms)
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.091976 #34] INFO -- : Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 1.3ms)
2023-01-12 00:27:03 homs | [HBW] I, [2023-01-12T08:27:03.101450 #37] INFO -- : GET http://camunda:8080/engine-rest/user?email=user%40example.com
2023-01-12 00:27:03 homs | [HBW] W, [2023-01-12T08:27:03.104140 #37] WARN -- : HTTP 401
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.104682 #37] INFO -- : Completed 504 Gateway Timeout in 14ms (Views: 0.1ms | ActiveRecord: 2.6ms)
2023-01-12 00:27:03 homs | [HBW] I, [2023-01-12T08:27:03.107409 #36] INFO -- : [DURATION] Completed GET "/widget/translations" in 8.38ms
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.107525 #36] INFO -- : Completed 200 OK in 17ms (Views: 0.8ms | ActiveRecord: 2.7ms)
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.132397 #36] INFO -- : TaskChannel is transmitting the subscription confirmation
2023-01-12 00:27:03 homs | [HOMS] I, [2023-01-12T08:27:03.132579 #36] INFO -- : TaskChannel is streaming from [email protected]
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.085389 #36] INFO -- : Finished "/widget/cable/" [WebSocket] for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.085587 #36] INFO -- : TaskChannel stopped streaming from [email protected]
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.097425 #34] INFO -- : Started GET "/orders/ORD-3" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.098386 #34] INFO -- : Processing by OrdersController#show as HTML
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.098433 #34] INFO -- : Parameters: {"id"=>"ORD-3"}
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.102258 #34] INFO -- : Rendering orders/show.html.haml within layouts/application
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.103726 #34] INFO -- : Rendered orders/_common.html.haml (0.6ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.103784 #34] INFO -- : Rendered orders/_data.html.haml (1.1ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.103819 #34] INFO -- : Rendered orders/show.html.haml within layouts/application (1.5ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.144903 #34] INFO -- : Rendered layouts/_navigation.html.haml (0.9ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.230965 #34] INFO -- : Completed 200 OK in 132ms (Views: 128.8ms | ActiveRecord: 0.9ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.343078 #34] INFO -- : Started GET "/widget/cable" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.343415 #34] INFO -- : Started GET "/widget/cable/" [WebSocket] for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.343464 #34] INFO -- : Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: keep-alive, Upgrade, HTTP_UPGRADE: websocket)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.354416 #34] INFO -- : TaskChannel is transmitting the subscription confirmation
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.354581 #34] INFO -- : TaskChannel is streaming from [email protected]
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.355554 #34] INFO -- : Started GET "/widget/tasks?entity_class=order" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.355614 #36] INFO -- : Started GET "/widget/translations" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.356139 #36] INFO -- : Processing by HBW::TranslationsController#index as JSON
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.356252 #34] INFO -- : Processing by HBW::TasksController#index as JSON
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.356288 #34] INFO -- : Parameters: {"entity_class"=>"order"}
2023-01-12 00:27:04 homs | [HBW] I, [2023-01-12T08:27:04.360091 #34] INFO -- : GET http://camunda:8080/engine-rest/user?email=user%40example.com
2023-01-12 00:27:04 homs | [HBW] I, [2023-01-12T08:27:04.361177 #36] INFO -- : [DURATION] Completed GET "/widget/translations" in 3.33ms
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.361271 #36] INFO -- : Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.3ms)
2023-01-12 00:27:04 homs | [HBW] W, [2023-01-12T08:27:04.361381 #34] WARN -- : HTTP 401
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.361734 #34] INFO -- : Completed 504 Gateway Timeout in 5ms (Views: 0.1ms | ActiveRecord: 0.2ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.458396 #36] INFO -- : Started GET "/widget/users/check" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.458511 #34] INFO -- : Started GET "/widget/buttons?entity_code=ORD-3&entity_type=pizza_order&entity_class=order" for 192.168.112.1 at 2023-01-12 08:27:04 +0000
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.458920 #36] INFO -- : Processing by HBW::UsersController#check_user as JSON
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.459137 #34] INFO -- : Processing by HBW::ButtonsController#index as JSON
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.459174 #34] INFO -- : Parameters: {"entity_code"=>"ORD-3", "entity_type"=>"pizza_order", "entity_class"=>"order"}
2023-01-12 00:27:04 homs | [HBW] I, [2023-01-12T08:27:04.462354 #36] INFO -- : GET http://camunda:8080/engine-rest/user?email=user%40example.com
2023-01-12 00:27:04 homs | [HBW] I, [2023-01-12T08:27:04.462373 #34] INFO -- : GET http://camunda:8080/engine-rest/user?email=user%40example.com
2023-01-12 00:27:04 homs | [HBW] W, [2023-01-12T08:27:04.463769 #34] WARN -- : HTTP 401
2023-01-12 00:27:04 homs | [HBW] W, [2023-01-12T08:27:04.463770 #36] WARN -- : HTTP 401
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.464141 #34] INFO -- : Completed 504 Gateway Timeout in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2023-01-12 00:27:04 homs | [HOMS] I, [2023-01-12T08:27:04.464167 #36] INFO -- : Completed 504 Gateway Timeout in 5ms (Views: 0.1ms | ActiveRecord: 0.4ms)
I am trying to load HOMS as a back-end using Apache's ProxyPass[Reverse]. However all of the links and assets in HOMS seem to be absolute URLs ("/users/sign_in" for example) so when I forward a Location on my front-end to the back-end it doesn't work.
An example is in my Apache front-end, I have:
ProxyPass "/homs" "http://localhost:3000"
ProxyPassReverse "/homs" "http://localhost:3000"
When I go to "http://my.front.end/homs" it tries to redirect to "http://my.front.end/users/sign_in" instead of "http://my.front.end/homs/users/sign_in".
I didn't see anywhere in the base config yaml file about how to specify a Base Uri so that all of the links will have a path inserted before the homs assets. An alternative would be to use relative URIs instead of absolute.
When i try to install Hydra OMS using Docker Compose, latera/homs contianer crashes immediately.
This is a Copy of the container logs:
cp: target '/opt/homs/config/' is not a directory
cp: cannot stat 'config/activiti.yml.sample': No such file or directory
sed: can't read config/activiti.yml: No such file or directory
sed: can't read config/activiti.yml: No such file or directory
sed: can't read config/activiti.yml: No such file or directory
cp: cannot stat 'config/database.yml.sample': No such file or directory
sed: can't read config/database.yml: No such file or directory
^C/usr/local/lib/ruby/2.2.0/rake.rb:36:in require': Interrupt from /usr/local/lib/ruby/2.2.0/rake.rb:36:in
<top (required)>'
from /usr/local/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:31:in require' from /usr/local/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:31:in
<top (required)>'
from /usr/local/bundle/bin/rake:16:in load' from /usr/local/bundle/bin/rake:16:in
require' /opt/homs/Rakefile:4:in
<top (required)>'parse!': missing argument: -e (OptionParser::MissingArgument) from /usr/local/bundle/gems/thin-1.6.4/lib/thin/runner.rb:50:in
initialize'new' from /usr/local/bundle/gems/thin-1.6.4/bin/thin:6:in
<top (required)>'load' from /usr/local/bundle/bin/thin:16:in
'i want to display the order status to my client and share the http://localhost:3000/orders/ORD-3 link
I used the docker-compose instructions and got HOMS open on 3000 but there was no way to add processes and all the other advertised things on here; Camuda was working but there isn't a way to create a new process. I tried to get Activiti installed even and I couldn't access it to do anything. Is there something I'm missing?
Hi - Trying out the installation, hit a problem at the last stage when trying the Hom migration stage 'bundle exec rake db:migrate'. Output is
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `print_form_code=' for #<OrderType:0x0000000416c750>/home/XXXX/.rvm/gems/ruby-2.2.4@homs/gems/activemodel-4.2.4/lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/paulh/homs/app/models/order_type.rb:74:in `parse_file'
/home/paulh/homs/app/models/order_type.rb:32:in `initialize'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/persistence.rb:50:in `create!'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:115:in `block in change'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:114:in `each'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:114:in `change'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:605:in `exec_migration'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:589:in `block (2 levels) in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:588:in `block in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:587:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:765:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:1041:in `ddl_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:956:in `block in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:952:in `each'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:952:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:820:in `up'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:798:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/bundle:23:in `load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/bundle:23:in `<main>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/ruby_executable_hooks:15:in `eval'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/ruby_executable_hooks:15:in `<main>'
NoMethodError: undefined method `print_form_code=' for #<OrderType:0x0000000416c750>
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activemodel-4.2.4/lib/active_model/attribute_methods.rb:433:in `method_missing'
/home/paulh/homs/app/models/order_type.rb:74:in `parse_file'
/home/paulh/homs/app/models/order_type.rb:32:in `initialize'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/inheritance.rb:61:in `new'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/persistence.rb:50:in `create!'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:115:in `block in change'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:114:in `each'
/home/paulh/homs/db/migrate/20160328094110_add_initial_order_types.rb:114:in `change'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:605:in `exec_migration'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:589:in `block (2 levels) in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:588:in `block in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:587:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:765:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:1041:in `block in ddl_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:1041:in `ddl_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:956:in `block in migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:952:in `each'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:952:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:820:in `up'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/migration.rb:798:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/activerecord-4.2.4/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:63:in `kernel_load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli/exec.rb:24:in `run'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli.rb:304:in `exec'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/bundle:23:in `load'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/bundle:23:in `<main>'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/ruby_executable_hooks:15:in `eval'
/home/paulh/.rvm/gems/ruby-2.2.4@homs/bin/ruby_executable_hooks:15:in `<main>'
There is no option to make a select field in form.
Hello! Looks cool, hello @nixikanius :)
I would like to try it, really, but installation seems to be so complex and has a lot of dependencies.
Adding Docker image should help a lot.
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Postgres is unavailable - sleeping
why do i need to download and install over 2GB of data for only 50MB website
We want to only allow certain users to be able to administrate orders that are assigned to them, is this possible ?
Hi,
I'm at step 10 in homs README (Navigate to Camunda Admin and create admin user with credentials equal to BPM_USER:BPM_PASSWORD values from .env file.).
I get redirected to http://localhost:8766/camunda/app/welcome/default/#/login, so I couldn't create an admin user for Camunda.
How do I create an admin user for Camunda?
Am I missing a step?
Thank you!
Hi guys, and thanks for the amazing tool !
I've been trying to install today, without Oracle and it turned out to raise an issue with ruby-oci8.
Fortunately, I was not the first one to meet issues with it (see this SO topic but still, it was very troubling to find the solution. The one from SO didn't work, considering it's 5 years old, it makes sense, so I kept digging.
So far, I found this documentation from ruby-oci8 docs, which led me straight to it, so I thought it might be useful to add it somewhere in the doc 🤷♂️
(It's permitting to use latest version of the client (19.8), didn't test it very long, so I cannot assure that this is completely compatible)
It's me again 😅
I went through the installation documentation and noticed this little things :
-> Nothing said about bundle / yarn install ; Although this project seems to be used by advanced users, I think it could be nice to remind them when to do it to avoid issues.
-> Since Rails 5 (I think), rails supports rake commands and the norm seems nowadays to be rails db:migrate
and rails db:seed
instead of rake
; This is mainly a convention matter, not really a problem.
5. Add environment variable $HOMS_URL to .env file with URL to your HOMS:
📌 For access to host machine OS X users can use special DNS name host.docker.internal as host in tnsnames.ora (details).
HOMS_URL=http://docker.for.mac.localhost:3000/api
6. Create your own configs from samples:
find config -name '*.sample' | xargs -I{} sh -c 'cp $1 ${1%.*}' -- {}
sample
from their name.Add test environment to config/database.yml:
development:
adapter: postgresql
encoding: unicode
pool: 5
host: <%= ENV['HOMS_DB_HOST'] %>
port: <%= ENV['HOMS_DB_PORT'] %>
database: <%= ENV['HOMS_DB_NAME'] %>
username: <%= ENV['HOMS_DB_USER'] %>
password: <%= ENV['HOMS_DB_PASSWORD'] %>
config/database.yml
. Maybe because i already copied this file in step 6?Hi,
I've been able to successfully deploy a business process and link it to HOMS.
But I'm having this issue that buttons that come up after processing an order give the error "translation is missing: order_name.task_name.button_name", where order_name is the bp_code, task_name, is the name of the User task, button_name is the name defined in the yml file associated with that user task. This error even shows up with the example orders that you can create, like pizza_order:
I'm having trouble figuring out what configuration I would need to update to have this display properly.
Thanks
Hey,
I have running a WooCommerce shop and I like to use HydraOMS, but unfortunately your project hasn't integration for this WordPress plugin. Is it possible to include this feature? It would be very nice and I think many people would use that :)
Thank you and have a nice day!
Good day,
This definitely is not an issue.
However I am trying to get the Dev environment working and getting the below error.
/usr/local/lib/ruby/gems/2.7.0/gems/webpacker-5.0.0/lib/webpacker/runner.rb:13:in ``': No such file or directory - yarn (Errno::ENOENT)
I have followed all the steps as mentioned in the readme.
Just one change which I did was since I am not using Oracle Client I commented the OCI part in gem file.
OCI was not installing even after setting the path. So I thought of commenting.
:-) request your guidance on how to resolve this and get the server up and running.
Thank you.
Trace
activerecord (4.2.7.1) lib/active_record/migration.rb:392:in check_pending!' activerecord (4.2.7.1) lib/active_record/migration.rb:373:in
call'
actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in
run_callbacks'
activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in _run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in
call'
actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in call' better_errors (2.1.1) lib/better_errors/middleware.rb:59:in
call'
actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' web-console (2.2.1) lib/web_console/middleware.rb:31:in
call'
actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in
call_app'
railties (4.2.7.1) lib/rails/rack/logger.rb:22:in call' quiet_assets (1.1.0) lib/quiet_assets.rb:27:in
call_with_quiet_assets'
actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in call' rack (1.6.8) lib/rack/methodoverride.rb:22:in
call'
rack (1.6.8) lib/rack/runtime.rb:18:in call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
call'
actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in call' rack (1.6.8) lib/rack/sendfile.rb:113:in
call'
railties (4.2.7.1) lib/rails/engine.rb:518:in call' railties (4.2.7.1) lib/rails/application.rb:165:in
call'
thin (1.6.4) lib/thin/connection.rb:86:in block in pre_process' thin (1.6.4) lib/thin/connection.rb:84:in
catch'
thin (1.6.4) lib/thin/connection.rb:84:in pre_process' eventmachine (1.2.0.1) lib/eventmachine.rb:1076:in
call'
eventmachine (1.2.0.1) lib/eventmachine.rb:1076:in `block in spawn_threadpool'
Good day,
I am trying to setup hydra-oms in development mode. I have completed the setup, I am able to login to camunda console and the Homs page is coming up on the port 3000.
However I am not able to login in to Homs using the default username and password. When I check the database I don't see any records in users table.
Kindly advise how to create the default user.
Thanks
I am following instruction of Devlopment
through Without Oracle Instant Client
Status: Downloaded newer image for latera/homs:latest
Starting redis ... error
Starting memcached ...
Starting postgres-camunda ...
Starting postgres-homs ...
Starting memcached ... error
ERROR: for redis Cannot start service redis: OCI runtime create failed: container with id exists: 5f0d588d26222a77ce5d888c5e90e8d3eecbf225644697598e8bcaabc8dd1309: unknown
Starting postgres-camunda ... error
ERROR: for memcached Cannot start service memcached: OCI runtime create failed: container with id exists: 8026996f5bd025db624af9f54a37ed254372c4a2b5b2d91ff1a34f2b2953ab9c: unknown
Starting postgres-homs ... error
b26ca1ec9d3a12e00b01ba574c5536b590aea2075603ec5aa5740: unknown
ERROR: for postgres-homs Cannot start service db_homs: OCI runtime create failed: container with id exists: 81aef52d5610fe1a3Creating minio ... error
ERROR: for minio Cannot start service minio: cgroups: cgroup mountpoint does not exist: unknown
ERROR: for redis Cannot start service redis: OCI runtime create failed: container with id exists: 5f0d588d26222a77ce5d888c5e90e8d3eecbf225644697598e8bcaabc8dd1309: unknown
ERROR: for memcached Cannot start service memcached: OCI runtime create failed: container with id exists: 8026996f5bd025db624af9f54a37ed254372c4a2b5b2d91ff1a34f2b2953ab9c: unknown
ERROR: for db_camunda Cannot start service db_camunda: OCI runtime create failed: container with id exists: 3c111f1aba9b26ca1ec9d3a12e00b01ba574c5536b590aea2075603ec5aa5740: unknown
ERROR: for db_homs Cannot start service db_homs: OCI runtime create failed: container with id exists: 81aef52d5610fe1a37ea29cc17582de3f53c0345616cff647540ca59da0e2330: unknown
ERROR: for minio Cannot start service minio: cgroups: cgroup mountpoint does not exist: unknown
ERROR: Encountered errors while bringing up the project.
docker --version
Docker version 19.03.13, build 4484c46
docker info
Client:
Debug Mode: false
Server:
Containers: 5
Running: 0
Paused: 0
Stopped: 5
Images: 7
Server Version: 19.03.13
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: /usr/libexec/docker/docker-init
containerd version:
runc version: 8cadede98333f0007f4218b9123e6fe652662680
init version:
Security Options:
seccomp
Profile: default
selinux
Kernel Version: 5.10.22-200.fc33.x86_64
Operating System: Fedora 33 (Server Edition)
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 47.14GiB
Name: proliantbox
ID: NG3H:5QGB:MK6C:IXDG:NB2G:A56K:2Y33:VWCV:6QUX:EJVG:KLR5:NBXP
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpu shares support
uname -a
Linux proliantbox 5.10.22-200.fc33.x86_64 #1 SMP Tue Mar 9 22:05:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linu
Please let me know if you require additional info.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.