RedisSessionStateProvider ERR unknown command 'EVAL' - stackexchange.redis

When I run Microsoft.Web.Redis.RedisSessionStateProvider locally, I get the following error:
StackExchange.Redis.RedisServerException: ERR unknown command 'EVAL'
I have installed the latest RedisSessionStateProvider from nuget.
Web config:
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="" accessKey="" ssl="false" />
</providers>
</sessionState>

I was running a version of redis server pre 2.6.
Quick easy way to get redis server for windows is via chocolatey.
Install from here: https://chocolatey.org/
Then get redis using command from here:
https://chocolatey.org/packages/redis-64/3.0.501
Then go to C:\ProgramData\chocolatey\lib\redis-64 and run redis-server.exe
You'd then need to install as a service (see notes in C:\ProgramData\chocolatey\lib\redis-64)
OR just get a windows installer msi from here (even easier if you don't mind the version too much i.e. just for development) https://github.com/MSOpenTech/redis/releases

You should upgrade your Redis as #SSED said. You can download 32 bit version of redis here:
https://github.com/cuiwenyuan/Redis-Windows-32bit
Also if there is another error "Active machine refused It" you should run redis-server.exe file after downloading it.

This can also happen if your server instance is greater than or equal to 2.6, but the EVAL command has been renamed explicitly. The latter is something that is sometimes done for security reasons on redis servers that are offered as a service (e.g. CloudFoundry)

Related

Redis ERR unknown command 'FLUSHDB'

I deployed a laravel application into AWS EC2. The redis server is installed on another EC2 server.
The connection to the redis server is being initialized successfully. But, whenever I attempt to clear the cache, I get this error:
Predis\Response\ServerException : ERR unknown command 'FLUSHDB', with args beginning with:
If I install redis server locally on the application server, it works fine.
Any idea how to fix it?
P.S: I tried two versions of redis: 4.0.9 and 5.0.7 (both gave me the same error)
That means FLUSHDB has been disabled. This is a dangerous command, so many admin will disable this command by renaming the command with rename-command configuration in redis.conf or just disable it by rename it to empty string.
rename-command flushdb ""
Check the conf file for detail on command renaming.

running sonarqube 6.7.1 on Ubuntu Server 16.04 using provided deb-files fails

I'm unable to get the latest Sonarqube up and running on Ubuntu 16.04.
Installation was done using the deb provided by http://sonar-pkg.sourceforge.net
After a first cursory glance it seems that the installation routine sets up Sonarqube to run as user "root", whereas Elastisearch - which is mandatory - refuses to be started as "root".
Has anybody been able to set this up properly (i.e. running as a non-root user) and can point me to the respective documentation?
Thanks.
First, navigate to the install folder > ex: /opt/sonarqube-6.7.1/bin/linux-x86-64.
Then open the sonar.sh file in that folder using vim, nano commands etc.
Then uncomment the line which reads "RUN_AS_USER=" which is around line number 48.
change the line to "RUN_AS_USER=sonar"
restart your system, start the sonarqube server. You should be able to run your server.

heroku command not working error Installing core plugins

I'm keep getting this error. I have installed heroku toolkit successfully
C:\Users\hp-u>heroku login
Would you like to submit Heroku CLI usage information to better improve the CLI user experience?
[y/N] Y
heroku-cli: Installing core plugins...Error reading plugin heroku-apps.
Reinstalling... Error reading plugin heroku-apps. Reinstalling ... Error reading plugin heroku-apps. Reinstalling
I removed the s from https:// in the value HTTPS_PROXY variable and it worked.
so:
export HTTPS_PROXY="http://myproxy.com:8080"
//instead of
export HTTPS_PROXY="https://myproxy.com:8080"
i.e. somehow the internal college proxy itself might not be able to perform SSL communication

asp.net not running on Apache 2 on OSX Lion - Getting a Forbidden 403 response

As of the current time of writing (2012-03-05) I'm running the following components:
OSX Lion
Default Apache installation (Apache2)
SSLEngine on Apache is "on" (doing some dev, but not trying to access .net through ssl yet)
Mono 2.10.8
xsp 2.10.2
mod_mono 2.10
I'm an Win/IIS guy so this is all new to me, but trying to get the xsp test ASP.NET app running on my mac (the app is in the xsp folder and is referenced in the mod_mono install guide).
I've run through the INSTALL guide for xsp and mod_mono.
As far as I can tell everything is running. Appache seems to have loaded the mono module, as it's ok with the mono configuration elements in it's httpd.cong file.
However, when I try to browse to an ASP.NET page, for example, the xsp test one (http://127.0.0.1/demo/index.aspx), I get:
Forbidden
You don't have permission to access /demo/index.aspx on this server.
Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 mod_mono/2.10 Server at 127.0.0.1 Port 80
The mono_mod troubleshooting guides say this might happen if Apache doesn't have read acess, but read access on the xsp test folder is set to:
everyone: Read & Write
I'm thinking it's not a directory permissions issue?
I wonder if the mono mod isn't running properly so actually Apache is trying to do a directory listing, which would give a 403?
What could be causing this? And is there any way to diagnose if all the mono mod stuff is installed and running correctly with Apache?
thanks
A script might also require execute permission, try from the command line:
chmod +x /path/to/script.aspx
This let's OS X (and other unixes) know that the file can be run.

Remote deployment to Websphere 6.1.x using wsadmin

I am trying to remotely deploy a war file to a websphere application server. I understand this is possible to do using wsadmin, but I am a Websphere newb.
I know I can run wsadmin and connect using SOAP to the remote app server, but that is where I am at.
This seems like it should be a common use case, can anyone help me with?
I suppose the use case follows:
1. Update the application
2. Save all changes
3. Restart the remote application server
I am going to do the deployment using either Hudson WAS Builder or Maven, whichever works.
Thanks for your help
This question is pretty old, but id like to show how we do this remotly. In this case with Ant
<target name="postbuild">
<exec executable="C:\MyThinClient\wsadmin.bat" failonerror="true">
<arg line="-conntype SOAP -host ${deployServer} -port ${deployPort} -user ${deployUser} -password ${deployPassword} -c" />
<arg value="$AdminApp update ${projectName}EAR app {-operation update -contents {${artifactsDir}/${projectName}-${buildVersion}.ear}}" />
</exec>
</target>
Given the correct setup of the wsadmin.bat you can run this from any server (without WAS installed) At least on WAS 6.1/7.0 ND this will only restart the application with the new binaries, not the whole server
Since the WAS Builder Plugin is relatively new, I haven't tested it (The evaluation is already on the ToDo list). For running deployments from the command line we use jython-scripts and wsadmin. My understanding is that I need to be on the machine where I want to deploy. You can deploy to a different machine id your local wsadmin is on the level than your target machine (same version and same feature packs).
for more information on wsadmin see http://publib.boulder.ibm.com/infocenter/wsdoc400/v6r0/index.jsp?topic=/com.ibm.websphere.iseries.doc/info/ae/ae/rxml_commandline.html
BTW, when you deploy using the web based admin console, there is a link somewhere at the end of the deployment process that shows you the jython command. Don't use jacl, since WAS 7 only uses jython.
The link to the scripts didn't show up right in my comment, so here it is: IBM SAMPLE SCRIPTS

Resources