when i create profile
in users.xml
and append this profile to a new user (web-user) in users.xml
<web>
<max_execution_time>5</max_execution_time>
<readonly>1</readonly>
</web>
after I restart clickhouse server,
and I enter to tabix with default user also the max execution time in tabix is change to 5 seconds,
is this a bug ?
why this happend?
You don't need to restart CH. Users settings are applied without restart.
Tabbix has own settings and they override yours
Related
does anyone know how to modify the session timeout and session eviction in Jenkins for Windows? Jenkins starts as a service.
I edited the file jenkinsHome/war/WEB-INF/web.xml adding the tag "session-timeout" as below, but it doesn't seem to work.
<session-config>
<!-- four hours -->
<session-timeout>240</session-timeout>
</session-config>
Thanks.
If you use Jenkins v2.107.1 and later, updating session-timeout is not enough.
You should set the sessionEviction time, which is 30 minutes by default. Try to start your Jenkins with the following JVM OPTS:
JENKINS_OPTS="--sessionTimeout=240 --sessionEviction=240"
Reference: Jenkins Jira
I've successfully installed oracle-xe 11g2 on linux Mint 17.3 and during config process (/etc/init.d/oracle-xe configure) i choose to load database at system boot.
And when I check /etc/default/oracle-xe file, I have the following :
#This is a configuration file for automatic starting of the Oracle
#Database and listener at system startup.It is generated By running
#'/etc/init.d/oracle-xe configure'.Please use that method to modify this
#file
# ORACLE_DBENABLED:'true' means to load the Database at system boot.
ORACLE_DBENABLED=true
# LISTENER_PORT: Database listener
LISTENER_PORT=1521
# HTTP_PORT : HTTP port for Oracle Application Express
HTTP_PORT=8080
# Configuration : Check whether configure has been done or not
CONFIGURE_RUN=true
But it doesnt start at boot, I have to manually start it by a sudo service oracle-xe start
Is there anything I can do ?
Thanks.
Ok found it.
I Have to add user to dba group.
sudo usermod -a -G <groupname> username
I'm not sure if I started the server or not. But, I cannot open the admin page on the browser.
Am I missing anything else?
One thing you should generally always do is check the broker log and see if there's an error. Also running the broker in foreground after you alter the configuration will show you any errors that might be there you can run:
./bin/activemq console
To run in foreground mode.
Beyond that its hard to help since you haven't provided information like you configuration or done a 'ps -ef | grep activemq' etc.
check your /conf/activemq.xml file and make sure <import resource="jetty.xml"/> is included
I have just updated jenkins to 1.5. My windows slaves were disconnected during the upgrade and now I cannot connect them again. I start the windows slaves with:
javaws.exe slave-agent.jnlp
I get this error:
I can remote to the windows slaves just fine so they are running.
This is a new, known issue due to this Security Advisory. Additional information, including several fixes/workaround can be found HERE.
Personally, since our Jenkins is on a secured, private network, going to Manage Jenkins -> Configure Global Security, and under Project-based Matrix Authorization Strategy enable “connect” in the “slave” section, for user “Anonymous” was sufficient to get us working.
In order to always assure correct update, the following steps must occur:
How to update Jenkins Slave in Windows
go to services.msc type "je" to find jenkins slave service and stop it from running
do: sc delete jenkinsslave-c__h (or the name the service has)
to know the name of the service, go to services.msc and open "Jenkins Slave" properties (it is auto/ highlighted)
if it is only "marked for deletion" close "Services" window (this will effectively delete the service)
go to c:h\ dir (or the dir where jenkins is running) and delete all files, letting workspace dir untouched
for %i in (*) do if not %i == workspace del "%i"
open "Java Control Panel" (search "Configure Java" on start button) and set Security to Medium
Configure Path where Jenkins worspace will operate at http://server:8080/jenkins/computer/node_to_use/configure
go to http://server:8080/jenkins/computer/node_to_use and run "Launch"
do: file>install as service; ok.
go to services.msc and refresh with F5 in order to appear "Jenkins Slave"
stop the service
open properties, and in the LogOn tab at "This account:" insert ".\user" being the user the admin user of the machine (or as the tested used via GUI login). Insert the password.
Set to automatic start on boot with following conditions:
delayed mode;
2 retries on failure (1 minute interval)
Assure user has needed files and access permissions
Go to Computer Management (right click#My Computer > Manage)
System Tools > Event Viewer > (Windows Logs >) Application > right click and choose Properties > "Overwrite events as needed"
run Jenkins slave
I'm trying to change WebSphere's Log Detail Levels with a Jython script:
..
AdminTask.setTraceSpecification('[-serverName server1 -nodeName qnode -traceSpecification com.ibm.*=all=enabled]')
AdminConfig.save()
..
After successfully running the script I'm checking "Logging and Tracing > {server_name} > Diagnostic trace service > Change log detail levels. The Runtime tab reflects the setting (the traceSpecification) I've entered in my script, but the Configuration tab remains unchanged, so, my setting doesn't get saved to configuration. I've tried restarting my server, so I'm sure about that's the case.
According to setTraceSpecification's documentation, this "command also saves the trace specification in configuration." Well, not in my case:) Do you have any idea what I'm doing wrong?
Any help would be much appreciated
As I've found out, setTraceSpecification() also has a persist parameter which has to be set if you want to change your setting permanently to WAS configuration:
..
AdminTask.setTraceSpecification('[-serverName myserver -nodeName mynode -persist true -traceSpecification com.ibm.*=all=enabled]')
AdminConfig.save()
..
Unfortunately, WAS 7 InfoCenter doesn't have a single word about this option, while WebSphere CloudBurst Appliance InfoCenter has an example which includes it.
I think you may need to also save the configuration in your script:
if (AdminConfig.hasChanges()):
AdminConfig.save()