Questions tagged [configuration-files]

1

votes
1

answer
46

Views

“Packet for query is too large” error. Where to change max_allowed_packet variable?

I am having a problem, I imported a spring boot project from git, the code is working perfectly fine in my teammates computers, but I get an error That I don't know how to solve, while running my java application I get this error : Packet for query is too large (1072729 > 1048576). You can change th...
Taoufiq Benallah
1

votes
1

answer
29

Views

Spring Integration - How can I have a workflow split off to two channels?

Good morning all, I'm looking for a way to have our workflow split off to two different channels. -> C1 A -> B -> -> C2 I am rather new to Spring as a whole and have just been working my way through things and have not been able to Google a solution. The workflow that I have uses an int-file to read...
Elijah
1

votes
3

answer
505

Views

Where should my application/service store its configuration files in windows?

In Linux, I'll usually put user configuration files in $HOME/.myapp and in Windows I'll use APPDATA. So far so good. What about non-user specific configuration? In linux, I'd put it into /etc. Is there an equivalent in Windows? Please note I would like to have the service running before any user log...
Miquel
1

votes
2

answer
1k

Views

Isc-dhcp-server not starting error: not configured to listen to any interfaces

I have installed Isc-dhcp-server and configured the files accordingly still it is showing the error that its not configured to listen to any interfaces. i have ubuntu 17.04 64 bit Interface file : auto lo iface lo inet loopback iface enp2s0 inet static address 10.90.90.5 netmask 255.255.255.0 gatew...
Ashish Ghodake
1

votes
1

answer
35

Views

How to replace the web.config file content into Virtual Machine web.prod.config file

am working on VSTS release task for deploying the Windows Services Project. Unfortunately, we are not creating any Build Definition for creating drop folder. But, my client will provide drop folder for this project, what I need is “I want to replace the web.config file content into VM web.prod.con...
Mani
1

votes
0

answer
67

Views

Python Programming Style: config loading within a separate file?

Currently, i have one python file python_file.py. This loads variables from an INI file. The file is laid out as such: def load_config(section): config = configparser.ConfigParser() config.read('config.ini') logging.info('Loading config for: %s', section) dict = {} options = config.options(section)...
spotnag
1

votes
1

answer
18

Views

How to make dockerfile and .conf file are not accessible direct through url

How to make dockerfile and .conf file are not accessible direct through url Look this url http://localhost/dockerfile http://localhost/nginx.conf If I Open this url this files are downloadable which should be not. How can i prevent this?
ImBS
1

votes
0

answer
65

Views

boost::program_options space in config file

I want to set options to my parser program via simple config file parsed by boost::program_options. I want to set prefixmiddle to (single space). I already tried that options: prefixmiddle= prefixmiddle=' ' # Equals to `' '` prefixmiddle = ' ' # Same prefixmiddle = Is there a way to do it? P.S. O...
val
1

votes
0

answer
65

Views

How can I configure the interpolation for a self hosted instance of Pelias?

I use the dockerfiles GitHub repository of Pelias and would like to set up a local instance of the geocoding service. I need to import data of Berlin, Germany. To achieve this I have to adjust the data pathes and files in a config file called pelias.json. The interpolation part is the following: 'in...
jengeb
1

votes
0

answer
236

Views

Merge different config files in environment files

I'm trying to have separate config files which I import/merge in the environment files to provide a further global CONFIG object with all the right properties that are meant for the current environment. config/production.ts: export const APP_CONFIG = { api: { root: 'https://api.example.com' }, cooki...
MrCroft
1

votes
1

answer
89

Views

Read configuration parameter in postgresql using JDBC

I have set a configuration parameter in postgresql 9.2.4 in the following way in Datastudio SET foo.test = 'foo.test' I can access that value in Datastudio using SELECT current_setting('foo.test') However I am not able to access that value using JDBC. I get the following error : org.postgresql.util....
Piyush Singh
1

votes
1

answer
248

Views

View all applied configurations of an object

The command: kubectl apply view-last-applied -f object.yml displays the latest applied configuration file of an object. Does a command exist that gives the entire 'applied' history of a given object? For example, given the created configuration (using kubectl create -f pod.spec --save-config): apiVe...
category
1

votes
1

answer
543

Views

dynamic log file name log4j xml file config with timestamp

I have bellow xml config file with static log filename 'CRM_Update_dubg_Logs.log', I want to make this name with timestamp, java log4j 2.9.1
MUNEER
1

votes
0

answer
34

Views

Can you stop Spring Cloud rebinding/reloading POJOs annotated with @ConfigurationProperties?

If you annotate a POJO with @ConfigurationProperties, it allows you to easily load properties from a (yml) properties file and make them available at runtime. However, when Spring Cloud is on the classpath, the behaviour changes somewhat: the POJO is now re-bound whenever an EnvironmentChangeEvent i...
Christian
1

votes
0

answer
195

Views

Entity Framework connection string in Service Fabric configurations

I'm trying to run existing WCF service as a stateful reliable service. The WCF service uses EF4's object context API that requires connection string in the form of Previously the service could easily find this connection string from config file by referencing to its name. Now in Service Fabric I hav...
Saad
1

votes
1

answer
46

Views

Writing back to Config file Powershell

I have a config file which I want to replace/change certain lines within using PowerShell. [IO.File]::WriteAllText($_.FullName, ($a -join '`r`n')) [IO.File]::WriteAllText($_.FullName, ($b -join '`r`n')) [IO.File]::WriteAllText($_.FullName, ($c -join '`r`n')) I am trying to write back to the config f...
ForeverStuck
1

votes
0

answer
18

Views

tomcat-war file configuration

I have a web-app that is configured to https://www.example.com:8080/login I want to hide the port in the URL so my clients can login using https://www.example.com/login URL. I have configured my app to port 8080 and i don't want to change that , i just want to hide the port being visible in the URL...
Rees hunt
1

votes
0

answer
27

Views

Oozie job returns Error HIVETEZHS2USERACCESS

I recently reformed HDP cluster (2.6.2) on HDInsight 3.6 (previously 3.5). Since that moment my oozie Jobs defined in the old environment stopped working. What is interesting they work for shell actions, but don't work for hive actions. There is no difference whether I run them from Oozie, or direct...
Andrzej Ka
1

votes
1

answer
655

Views

BeanCreationException: Error creating bean with name 'pgService' defined in class path resource

I am working on payment gateway integration in which i am stuck at the a point. i am getting the error. I have tried all possible solutions but unable to proceed. Help me to identify the solutions. I have servlet-context.xml in which i am importing my pg-context.xml by org.springframework.beans.fac...
nirmal sharma
1

votes
0

answer
264

Views

How to change default location of pip.ini file on Windows 7 system?

How do I change the default location of my pip.ini file on my windows system. I know the default is %APPDATA%/pip/pip.ini but at work, that directory of often cleaned out and it is deleted. I saw that you could change the location using PIP_CONFIG_FILE but when I set it, its not working
user3643162
1

votes
1

answer
62

Views

matplotlibrc and latex package setup

How do I set latex package options in python? I am trying to setup siunitx. I don't understand how to set options. This also applies to the matplotlibrc directly. The following does not work. import matplotlib as mpl mpl.rc('text', usetex=True) mpl.rcParams['text.latex.preamble'] = '\usepackage[rang...
Stefan
1

votes
0

answer
136

Views

Weblogic 12c: separate logging for a web application

I am trying to get Weblogic 12c to do logging separately for application instead of writing everything to server logs. I am using java.util.logging as follows: private static final Logger log = Logger.getLogger(ReceiveController.class.getName()); ... log.info('Initializing...'); This is my weblogic....
1

votes
0

answer
47

Views

Manage configuration files packaged in python modules

What's the proper way to manage configuration files that are embedded in a python module. I have a python module (e.g. my_py_logger) that does a certain task (i.e. centralized logging). It's meant to be used by other python applications developed by the team. Once it is imported in a python applicat...
Tandoori Fighter
1

votes
0

answer
31

Views

set up Httpbeat.yml to connect with elasticsearch hosted in elastic cloud

In order to connect to elasticsearch hosted in the elastic cloud rather than using the local one,My configuration is: httpbeat.full.yml cloud.id: 'Ikbel_abd:MyCloudId' cloud.auth: 'elastic:MyPwd' httpbea.yml output.elasticsearch: hosts:['MyHostId:9243'] index: 'httpbeat-%{+yyyy.MM}' The error d...
ikbel benabdessamad
1

votes
1

answer
143

Views

What are the possible way to set Global Http Proxy in IOS setting programatically?

I want to set the Global Http Proxy setting in iOS setting within my application. One possible way is creating a configuration profile with the apple configurator tool and install that profile. But for this device will be supervised only. 
 Is there any other way, where I don’t need the supervis...
Chetan kasundra
1

votes
1

answer
49

Views

Read JSON values from appvariables in asp.net core when JSON nodes are different at each level

I have the sample JSON below which I had provided in appvariables.json file. { '**Desc1**': { 'Code': 'Cd1', 'Description': 'Desc1' } '**Desc2**': { 'Code': 'Cd2', 'Description': 'Desc2' } } If this had been a JSON with same node Name(hightlighted Desc1,Desc2), creating a class and reading this wo...
shakthi
1

votes
0

answer
13

Views

Loading a user's configuration file into symfony console

I have a Symfony console application and I'd like to let the user set some configuration in a yaml file. I have looked through the Symfony documentation but the documentation appears to be all about application, service or bundle configuration. Is there a Symfony 4 package/class which I can use to...
John Walker
1

votes
1

answer
597

Views

bind multiple IP in mongoDb 4.x.x

for mongoDB 4.0.3, unable to add multiple ips in bindIp following config works for localhost net: port:27017 bindIp:127.0.0.1 Following works for logging from other ip: net: port:27017 bindIp:0.0.0.0 following doesn't work bindIp:127.0.0.1 10.0.0.10 bindIp:127.0.0.1,10.0.0.10 bindIp:'127.0.0.1,10.0....
cartman619
1

votes
1

answer
41

Views

How to load configuration data in Tests project in .NET Core 2.1?

I've been looking around for an answer to an issue when trying to instantiate and run some methods of a controller class that uses a configuration file in a separate project. It happens also when trying to test my controller from a Testing xUnit Project. Here is my controller class, which works tota...
Fernando Ares
1

votes
0

answer
41

Views

Apache Commons Configuration: read from classpath/JAR?

Does the Apache Commons Configuration library support reading properties/configuration files from the classpath or JAR? I didn't find an API where it can take an InputStream, that returned by getResourceAsStream.
flow2k
1

votes
0

answer
36

Views

Problem deploying multiple dash-applications using one configuration file on apache2 server

We are trying to deploy several dash apps by using the same config-file, but different wsgi-files. Right now this is what we have and when we run it the page says 'error loading' layout. Our configuration file and wsgi-files are shown below: Config-file: WSGIPythonPath /var/www/test/test1:/var/www...
El.Claes
1

votes
0

answer
31

Views

Extend configuration with custom settings loaded from file

I am trying to extend the configuration for my application with value loaded from a custom configuration file. We are using node-config and this is what I am trying to do: // Server entry const config = require('config') // Merge setting from our custom configuration const customConfig = require('.....
Cyclonecode
1

votes
0

answer
26

Views

Load variables in .yaml file from external sources

Is there a possibility to load variables from external file in .yaml configuration? Example: grant_type: ${GRANT_TYPE} client_id: ${CLIENT_ID} client_secret: ${CLIENT_SECRET} access_token_uri: ${ACCESS_TOKEN_URI} GRANT_TYPE, CLIENT_ID, CLIENT_SECRET and ACCESS_TOKEN_URI to be defined and loaded fro...
B. Bal
1

votes
2

answer
31

Views

RegisterType from unity configuration file

I am migrating from Prism 4 to Prism 7.1, I cannot seem to find the ConfigureContainer method has been removed from the latest Prism release. In the past, I had used this method to load the unity configuration from the file system. with the latest version of the Prism library, this appears not to b...
Imran Tariq
1

votes
1

answer
1.7k

Views

Better way for using settings in Spring.NET configuration file?

Is there a better way for using settings (generated by Visial Stidio Settings editor) in Spring.NET configuration file than using PropertyRetrievingFactoryObject: ? It does not feel right to do this for every setting...
isobretatel
1

votes
1

answer
1.5k

Views

Winforms: Write app.settings during Setup

I've battled with modifying Configuration settings in the App.config file in the past, and gave up any hope of making it work. Now again, I find myself in the same shoes, but this time determined to sort it out! The application Im creating is a WindowsForms .NET 3.5 (SP1) app. It is to be used in a...
Shalan
1

votes
4

answer
419

Views

What configuration file format allows the inclusions of otherfiles and the inheritance of settings?

I'm writing a Multiplayer C++ based game. I need a flexible file format to store information about the game charactors. The game charactors will often not share the same attributes, or use a basew For example: A format that would allow me to do something like this: #include 'standardsettings.config'...
Kingsley
1

votes
1

answer
1.2k

Views

VS Studio Crashes hard with “encountered a user-defined breakpoint” error on any config file

I have a odd problem here I can't figure out. alt text http://billrob.com/images/studioerror.jpg This happens each time I open the web.config file in my project. Studio crashes immediately after clicking close. Clicking debug just opens and empty Studio with the debugger attached to nothing. I eve...
BillRob
1

votes
2

answer
1k

Views

web.config custom ConfigurationSection and unnecessary verbosity

Unless I am doing something wrong, the way I am supposed to use ConfigurationSection, ConfigurationElement and ConfigurationElementCollection, would require me to format my configuration section like so: I would much prefer if I had a bit more say in the format. I would like to format my section lik...
Nathan Ridley
1

votes
1

answer
1.5k

Views

Access config file from a VS Sharepoint Workflow

I want to store some setting in web.config file of the sharepoint web application or in app.config of the workflow itself. But i don't know how to access neither of these files and i don't know how to handle the data inside them. Please, give some advise, how to do this or where to read about doing...

View additional questions