WordOps icon indicating copy to clipboard operation
WordOps copied to clipboard

Installing netdata stack throws error in AWS Graviton2 (arm64 architecture)

Open ceefour opened this issue 2 years ago • 6 comments

This issue tracker is only for issues directly related to WordOps. Please use https://community.wordops.net for support questions.

If you feel the issue is a WordOps specific issue, please attach the output of the following commands.

System Information

  • [ ] lsb_release -a
  • [ ] wo info
  • [ ] nginx -V
  • [ ] wo -v
  • [ ] wp cli info --allow-root
  • [ ] curl -sL git.io/fjAp3 | sudo -E bash -

How to reproduce

  1. Launch an t4g.micro or m6g.medium instance in AWS
  2. Install WordOps
  3. sudo -E wo stack install --dashboard --netdata

Expected: Success

But got:

# sudo -E wo stack install --netdata
Downloading Netdata              [Done]
Installing Netdata              [OK]
Traceback (most recent call last):
  File "/usr/local/bin/wo", line 8, in <module>
    sys.exit(main())
  File "/opt/wo/lib/python3.8/site-packages/wo/cli/main.py", line 102, in main
    app.run()
  File "/opt/wo/lib/python3.8/site-packages/cement/core/foundation.py", line 882, in run
    return_val = self.controller._dispatch()
  File "/opt/wo/lib/python3.8/site-packages/cement/core/controller.py", line 471, in _dispatch
    return func()
  File "/opt/wo/lib/python3.8/site-packages/cement/core/controller.py", line 477, in _dispatch
    return func()
  File "/opt/wo/lib/python3.8/site-packages/wo/cli/plugins/stack.py", line 537, in install
    post_pref(self, [], packages)
  File "/opt/wo/lib/python3.8/site-packages/wo/cli/plugins/stack_pref.py", line 1414, in post_pref
    .format(wo_netdata),
UnboundLocalError: local variable 'wo_netdata' referenced before assignment

Related to #392

ceefour avatar Aug 30 '21 07:08 ceefour

@ceefour the patch you have applied will it also fix the nginx setup for WordOps on ARM64 ?

thecancerus avatar Oct 12 '21 10:10 thecancerus

@thecancerus For PR #392, I did not test with that. So there's likely other areas that may need fixing if they did not consider arm64 exists. ^_^

ceefour avatar Oct 14 '21 04:10 ceefour

@ceefour thanks.

thecancerus avatar Oct 14 '21 09:10 thecancerus

@ceefour the patch you have applied will it also fix the nginx setup for WordOps on ARM64 ?

instead of wo stack install --nginx you can use sudo bash <(wget -O - vtb.cx/nginx-ee || curl -sL vtb.cx/nginx-ee) --stable

More details : https://github.com/VirtuBox/nginx-ee

admarty avatar Feb 10 '22 09:02 admarty

the working answer is at https://github.com/WordOps/WordOps/issues/418,

@admarty thanks, still can this be actually merged with WordOps stack install command? instead of having to type separately?

thecancerus avatar Feb 10 '22 10:02 thecancerus

Until now, that's the only way.

wo stack install uses this repository to install NGINX https://build.opensuse.org/package/show/home:virtubox:WordOps/nginx

The problem is that this repository doesn't have packages for arm64, so we have to build a compatible nginx from source for Wordops.

admarty avatar Feb 10 '22 10:02 admarty

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Dec 16 '23 02:12 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Dec 21 '23 02:12 github-actions[bot]