WordOps
WordOps copied to clipboard
Installing netdata stack throws error in AWS Graviton2 (arm64 architecture)
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
- Launch an t4g.micro or m6g.medium instance in AWS
- Install WordOps
-
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 the patch you have applied will it also fix the nginx setup for WordOps on ARM64 ?
@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 thanks.
@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
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?
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.
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.
This issue was closed because it has been stalled for 5 days with no activity.