i am trying to install Open Data Cube as per the documentation: https://opendatacube.readthedocs.io/en/latest/installation/setup/windows.html , but i am getting the following errors/failures that i can not seem to fix
FAILED tests/test_3d.py::test_extra_dimensions - AssertionError: assert 'ExtraDimensi...40 145 150} )' == 'ExtraDimensi...40 145 150} )'
FAILED tests/test_driver.py::test_index_drivers - AssertionError: assert 'null' in ['default']
FAILED tests/drivers/test_rio_reader.py::test_rd_internals_bidx - rasterio.errors.RasterioIOError: 'NETCDF:"\\C:\Users\Iani\datacube-core\tests\data\multi_doc.nc":a' does not exist in the file system
FAILED integration_tests/index/test_null_index.py::test_null_product_resource - RuntimeError: No index driver found for 'null'. 1 available: default
Also, when i try to run the command: datacube -v system init, i get the following error:
Error: No datacube config found
The datacube config was created like it was said in the documentation. Do you guys have any idea or recommandations on these?
Thank you
this is my first post here in SO, i want to use Invoice in my machine using Docker and access it locally
This are the steps i done
Cloned the repo https://github.com/invoiceninja/dockerfiles.git
Generate the APP_KEY
Question , when i generate the app key i got this error messages, are they suppossed to appear?
In Connection.php line 678:
SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema = ninja and table_name = accoun
ts and table_type = 'BASE TABLE')
In Exception.php line 18:
SQLSTATE[HY000] [2002] No such file or directory
In PDOConnection.php line 38:
SQLSTATE[HY000] [2002] No such file or directory
Edit the env file with the APP_KEY=base64:...
Run the chown -R command
I want to acess Invoice Ninja locally so i changed the APP_URL to http://in5.test:8000
Changed the IP adress in the config/hosts file
-Finally i run docker-compose up and when i entered in5.test in the browser, i get a page not found but if i enter in5.test.localhost i get this page with errors
https://ibb.co/Zzs5w9b
Question, in the compose file there are some lines with
extra_hosts:
- "in5.localhost:192.168.0.124 " #host and ip
I changed the IP adress to match my local IP but when i do that and go to in5.test.localhost i get a 502 bad gateway nginx
Can someone tell me what i am doing wrong?
I installed FreeRadius 3 on CentOS 7. I got this error message:
Instantiating module "post_proxy_log" from file /etc/raddb/mods-enabled/detail.log /etc/raddb/mods-config/sql/main/oracle/queries.conf[28]: Failed parsing expanded string: /etc/raddb/mods-config/sql/main/oracle/queries.conf[28]: ...ed-IP-Address}','%{Service-Type}','%{Acct-Input-Octets:-0}','%{Acct-Output-Octets:-0}','%{NA... /etc/raddb/mods-config/sql/main/oracle/queries.conf[28]: ^ Unknown module
The Acct-Input-Octets considered as Unknown Module.
I enabled "redis" and "rediswho" and installed redis-server. even I think that "redis" is not the module that I missed.
Why FreeRadius can not deal with "Acct-Input-Octets"?
What is the required module in mods-enabled that I should activate to use "Acct-Input-Octets"?
I solved it.
Just changed
%{Acct-Input-Octets:-0}
to
%{%{Acct-Input-Octets}:-0}
I am running two instances of RedHat. I have SaltMaster installed on one machine and SaltMinion installed on another. I am using a free version of Salt. I want to test SaltStack to do a basic configuration management task. If it can transfer a file from SaltMaster to SaltMinion, that would be great. If it can install Apache web server on SaltMinion, that would be great. Either task will help me learn. My learning goal is semi-flexible.
I can use salt '*' test.ping. The response is True. I tried this command: salt '*' state.apply
I got this error:
> hostname.fqdn:
> Data failed to compile:
> ----------
> No matching salt environment for environment 'qa' found
> ----------
> No matching sls found for 'qa1' in env 'qa'
> ----------
> No matching sls found for 'base1' in env 'base'
> ----------
> No matching salt environment for environment 'dev' found
> ----------
> Specified SLS base1 in saltenv dev is not available on the salt master or through a configured fileserver
I modified the /etc/salt/master file. I uncommented these lines:
fileserver_backend:
- git
- roots
I tried this command again: salt '*' state.apply
I received this error:
> [ERROR ] Error parsing configuration file: /etc/salt/master -
> expected '<document start>', but found '<block mapping start>' in
> "<string>", line 547, column 1:
> fileserver_backend:
> ^ [ERROR ] Error parsing configuration file: /etc/salt/master - expected '<document start>', but found '<block mapping start>' in
> "<string>", line 547, column 1:
> fileserver_backend:
> ^
I have been following these directions here:
https://docs.saltstack.com/en/latest/topics/tutorials/states_pt1.html
I created a webserver.sls file.
I inserted these lines as the content:
apache: # ID declaration
pkg: # state declaration
- installed # function declaration
I do not see how the three lines in the directions above would be enough to configure SaltStack to work. Where would the apache installation media need to be? Where would the transfer happen from? Am I supposed to download the media to SaltMaster? I would assume so. But where would I put it? I have a satellite server for yum commands to work.
Alternatively, how do I get SaltStack to transfer a file from SaltMaster to SaltMinion?
The first error ([...]No matching sls found for 'qa1' in env 'qa'[...]) indicates that you have configured a lot of different environments (file_roots), which are not present on your master's filesystem. Your approach to solve this goes in the correct direction, but leads to this error:
[ERROR ] Error parsing configuration file: /etc/salt/master - expected '', but found '' in "", line 547, column 1: fileserver_backend: ^ [ERROR ] Error parsing configuration file: /etc/salt/master - expected '', but found '' in "", line 547, column 1: fileserver_backend: ^
You should no longer be able to test.ping your minion, as the salt master should not run anymore, does it? To solve it just read the error message. It tells you with which point in your salt master configuration file salt is unhappy.
The fileserver_backend configures which types of backend should be available. You should check the file_roots configuration to actually define which roots are available. Roots refer to salt states folders in your filesystem.
A very simple config might look like that:
file_roots:
base:
- /srv/salt
It assumes that /srv/salt is the root of your state tree - which effectively means, that your webserver.sls should be located in this folder.
Your webserver.sls looks promising - it should install apache2 on a minion, when you apply it.
Managing configuration files on the master and transferring them to the minions is something salt can easily achieve. A simple state might look like:
/etc/myawesomeconfigurationfile.conf:
file.managed:
source: salt://myawesomefile # refers to /srv/salt/myawesomefile
user: root
group: root
mode: 640
You also asked for media files that you want to manage. If you talk about application related data it is not a good idea to use salt to move them around. IMO other approaches like NFS, GlusterFS or anything else that decouples user content from your application would be a better approach.
I wanted to localize my Android 4.0.4 (3G) Pad into Uighur language.
I decompiled, added a new values-ug-rCN translation in res folder, compiled back to get resources.arsc file.
All APKs went fine excep Phone.apk.
I can decompile to get xmls, but when compiling, it gave me the following errors:
(The error was reproduced using the latest ApkTool1.5.2, both with/without installing framework.apk)
E:\apktool152\x>apktool.bat if framework-res.apk
I: Framework installed to: C:\Documents and Settings\Administrator\apktool\frame
work\1.apk
E:\apktool152\x>apktool d Phone.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Documents and Settings\Administrator\apk
tool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
E:\apktool152\x>apktool b Phone
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
E:\apktool152\x\Phone\res\values-de\strings.xml:194: error: Multiple substitutio
ns specified in non-positional format; did you mean to add the formatted="false"
attribute?
E:\apktool152\x\Phone\res\values-de\strings.xml:195: error: Unexpected end tag s
tring
E:\apktool152\x\Phone\res\values-es\strings.xml:194: error: Multiple substitutio
ns specified in non-positional format; did you mean to add the formatted="false"
attribute?
E:\apktool152\x\Phone\res\values-es\strings.xml:195: error: Unexpected end tag s
tring
E:\apktool152\x\Phone\res\values-es-rUS\strings.xml:197: error: Multiple substit
utions specified in non-positional format; did you mean to add the formatted="fa
lse" attribute?
E:\apktool152\x\Phone\res\values-es-rUS\strings.xml:198: error: Unexpected end t
ag string
E:\apktool152\x\Phone\res\values-it\strings.xml:194: error: Multiple substitutio
ns specified in non-positional format; did you mean to add the formatted="false"
attribute?
E:\apktool152\x\Phone\res\values-it\strings.xml:195: error: Unexpected end tag s
tring
aapt: warning: string 'modem_power' has no default translation in E:\apktool152\
x\Phone\res; found: en_GB zh_CN
aapt: warning: string 'modem_power_summary' has no default translation in E:\apk
tool152\x\Phone\res; found: en_GB zh_CN
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Tem
p\APKTOOL187345540728029844.tmp, -0, arsc, -I, C:\Documents and Settings\Adminis
trator\apktool\framework\1.apk, -S, E:\apktool152\x\Phone\res, -M, E:\apktool152
\x\Phone\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 15, --target-sdk-version, 15, -F, C:
\DOCUME~1\ADMINI~1\LOCALS~1\Temp\APKTOOL187345540728029844.tmp, -0, arsc, -I, C:
\Documents and Settings\Administrator\apktool\framework\1.apk, -S, E:\apktool152
\x\Phone\res, -M, E:\apktool152\x\Phone\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 15, --target-sdk-version, 15, -F, C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
APKTOOL187345540728029844.tmp, -0, arsc, -I, C:\Documents and Settings\Administr
ator\apktool\framework\1.apk, -S, E:\apktool152\x\Phone\res, -M, E:\apktool152\x
\Phone\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
E:\apktool152\x>
I just wanted to translate the xmls inside values, and compile back to get resources.arsc.
I can go past the errors relevant to values xmls, by removing de, es, it translations if need be.
But I don't know the other errors.
So how can I solve this problem?
Or is there another alternative tools just for the task?
I switched to a modefied version of ApkTool called something like ApkTool 1.5 b-sf found in a Chinese site, and after installing framework-res.apk, it complied correctly!
Hope this helps some people.