Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account
List archives

AOF file created read-only on Windows

loading benchmark data lua or something else ?
(18 lines)
Redis Hash Limits?
(25 lines)
Jan 30, 2012
Nicolas Guillaumin
Nicolas Guillaumin
Hi,

I'm using dmajkic's 2.4.5 Windows port on a Windows 2003 server machine.

I've enabled appendonly in the config file, the rest is pretty much the 
default config.

The first time I start redis-server.exe everything works fine: I can 
connect to the instance and interact with it.
However for some reason the appendonly.aof file is created with the 
"read-only" flag set, meaning that the when I stop the server, then 
restart it the second time Redis is unable to open the file:

Can't open the append-only file: Permission denied

Removing the read-only flag and restarting Redis fixes it, and after 
that I can restart it again and it continue to work without setting the 
read-only flag back.

If I delete the AOF file and restart the server, it's then recreated as 
read-only again.

I've check the parent folders of the one containing the AOF file and 
none have the read-only flag set.

Any idea what's going on and how I can prevent Redis to create the AOF 
file read-only ?

Cheers,

Nico





Reply
Tags: default configserver machinewindows 2003 server
Messages in this thread
AOF file created read-only on Windows
reply Re: AOF file created read-only on Windows
(13 lines) Jan 31, 2012 03:11
reply Re: AOF file created read-only on Windows
(17 lines) Jan 31, 2012 03:13
reply Re: AOF file created read-only on Windows
(12 lines) Jan 31, 2012 07:14
reply Re: AOF file created read-only on Windows
(18 lines) Jan 31, 2012 07:34
reply Re: AOF file created read-only on Windows
(34 lines) Jan 31, 2012 17:17
reply Re: AOF file created read-only on Windows
(12 lines) Feb 3, 2012 06:14
reply Re: AOF file created read-only on Windows
(16 lines) Feb 5, 2012 16:06
Created: (GERONIMO-5372) Linux cann't grap file lock from windows but windows can grap share file lo
June 8, 2010 02:19:12 AM
Linux cann't grap file lock from windows but windows can grap share file lock from linux
Created] (HDFS-2757) Cannot read a local file that's being written to when using the local read shor
January 5, 2012 06:56:31 PM
Cannot read a local file that's being written to when using the local read short circuit
Created] (THRIFT-1438) lib/cpp/src/windows/config.h should read version from configure.ac rather tha
November 26, 2011 01:50:22 PM
lib/cpp/src/windows/config.h should read version from configure.ac rather than a #define
Created] (AVRO-882) 2nd read on end of file gives error
August 30, 2011 06:16:56 PM
2nd read on end of file gives error
Re: pid file is not created in Windows Environment....
December 2, 2010 05:43:38 PM
On Tue, 2010-11-30 at 20:49 -0800, rambabu pakala wrote: > Can you Please help me, why the pid file is not created in windows > environment when I try with C:\apache-cassandra-0.6.6 > \bin>cassandra.bat -p c.pid ? We don't seem to have…
pid file is not created in Windows Environment....
November 30, 2010 10:50:00 PM
Hi, Can you Please help me, why the pid file is not created in windows environment when I try with C:\apache-cassandra-0.6.6\bin>cassandra.bat -p c.pid ? Is there a better way to shutdown the cassandra server instead of kill pid? Thanks,…
Created: (AMQ-3051) Failed to read journal - Could not locate data file
November 24, 2010 08:27:53 AM
Failed to read journal - Could not locate data file
Created: (HDFS-1354) NullPointerException was cast when trying to read file via StreamFile
August 25, 2010 12:56:43 AM
NullPointerException was cast when trying to read file via StreamFile
Created] (HDFS-1907) BlockMissingException upon concurrent read and write: reader was doing file pos
May 9, 2011 08:36:45 PM
BlockMissingException upon concurrent read and write: reader was doing file position read while writer is doing write without hflush
FTP temp file not being created correctly on Windows (Camel 2.7.2) ?
July 15, 2011 12:38:00 PM
Hi, I have the following route which sends a file from my local file system via FTP to a folder that does not yet exist on the remote server. ctx.addRoutes( new RouteBuilder() { @Override public void configure() throws Exception { from(…
Created] (HDFS-1968) Enhance TestWriteRead to support File Append and Position Read
May 19, 2011 08:18:31 PM
Enhance TestWriteRead to support File Append and Position Read
Created] (HDFS-1877) Create a functional test tool for file read/write
May 2, 2011 08:31:45 PM
Create a functional test tool for file read/write
Created] (HDFS-2707) HttpFS should read the hadoop-auth secret from a file instead inline from the c
December 20, 2011 02:21:57 PM
HttpFS should read the hadoop-auth secret from a file instead inline from the configuration
Created] (IO-269) Tailer locks file from deletion/rename on Windows
April 9, 2011 12:01:45 PM
Tailer locks file from deletion/rename on Windows
Created] (CAMEL-4266) Windows inprogress file : failed due cannot delete
July 25, 2011 09:27:33 PM
Windows inprogress file : failed due cannot delete
Created: (CONFIGURATION-428) The Windows file path cannot be saved correctly as expected in XMLConfi
November 10, 2010 12:45:04 AM
The Windows file path cannot be saved correctly as expected in XMLConfiguration
Created: (CAMEL-2944) StreamCache - File spooled stream cache does not work well on Windows due not
July 14, 2010 02:03:51 AM
StreamCache - File spooled stream cache does not work well on Windows due not closing file resource
Making another xml file read properties file
July 8, 2011 10:19:00 AM
Hi all, I have a 'build.xml' which reads properties from 'build.properties' in folder 'C:\folder\main', I have another xml file 'test.xml' which should read properties from 'test.properties' which are in the folder C:\folder\subfolder. when I…
(puppetlabs/puppet) New pull request: (#9983) Fix file bucketing and remote file sourcing on Windows
November 1, 2011 03:32:24 PM
Greetings! Please review the pull request #192:(#9983) Fix file bucketing and remote file sourcing on Windows [Link: https://github.com/puppetlabs/puppet/pull/192 ] opened by (joshcooper) Some more information about the pull request: …
Created: (AVRO-677) Avro schema not properly resolved on data file read.
October 5, 2010 03:35:58 PM
Avro schema not properly resolved on data file read.
Allow 'mail' to read postfix-virtual created accounts?
December 11, 2010
With my setup all my mail goes into /home/vmail/(site.com)/(username)/new/ Of course this is great, but the "mail" command only reads it if its in…
Python CouchDB can't save dict created from feedparser entry? (no attribute 'read')
March 31, 2011
I have a script that I want to read entries in an RSS feed and store the individual entries in JSON format into a CouchDB database. The interesting…
How to move website created with xampp(windows) to hosting server
January 18, 2011
I am new to this hosting stuff. I dono anything about hosting a site. I am developing a website in xampp-windows. What should i do for hosting the…
Prevent a file from being created in python
April 5, 2011
Hi All, I'm working on a python server which concurrently handles transactions on a number of databases, each storing performance data about a…
Accidently created a file in PHP and now I can't delete it
March 8, 2011
The file is called â€%C2%9Dâ2™j299t™93.gif I cant delete or rename it. Any ideas? Thanks Tom Edit: I only have access via FTP, the host is Linux…
How to Read the certificates file from the PKCS7.p7b certificate file usind openssl ?
June 16, 2011
hi i am getting PKCS7 file p7b .i want to read the content of the file and extract certificate in X509 structure. how can i access individual…
Hadoop jar needs to read model file, and I got java.io.FileNotFoundException: data/ner/pattern.trd (No such file or directory)
March 14, 2011
Hi, I'm new to hadoop. My dfs details is as follows, $ hadoop fs -ls Found 5 items drwxr-xr-x - hadoop supergroup 0 2011-03-14 19:44…
Created temporary file is not accessable in production.
March 7, 2011
I have written a custom filefield AudioFileField. For this i created a check if a file really is a valid audiofile. To be able to do that, i use the…
Changing the ownership of files/dirs created/uploaded via ftp automatically and immediately after they are created
January 24, 2011
I want the user and group ownership of the files/dirs uploaded/created via ftp to be set to some user and group of my choice automatically. So far I…
Mongo - Fetch first created and last created document according to 'ts' (timestamp)
February 28, 2011
Is it possible to fetch first created and last created document according to 'ts' (timestamp) element of the document in single mongo query? If yes…
Libphp5.so not being created after compiling and prefix directory not created
February 12, 2011
./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --prefix=/usr/local/apache/php \ --with-config-file-path=/usr/local/apache/php make…
Unable to open SQLite DB created in Android (file is encrypted or is not a database)
June 5, 2011
Some of my users are reporting that they cannot correctly open sqlite databases created in Android using sqlite jdbc or other tools like sqlite…
High read performance database solution for storing simple data on Windows.
February 25, 2011
Dear All, I though that I have a simple problem but I am struggling with it for the last few days. To make a long story short, here is a description…
Read file from ftp
May 23, 2011
I want to read a file from a FTP server without downloading it to a local file. I wrote a function but it does not work: private string…
Openssl: how to read a .crt file..?
April 5, 2011
hi i want to read the certifi.crt file using openssl API (not in commands)... i have no idea how to do that..if any one knows pls help me.. thank…
How to read a .xls file using J2ME
February 4, 2011
Hello i am developing a mobile application for Symbian S40 platform and i am using J2ME.so i just want to read a .xls file. so please tell me how…
Read whole file in a folder
February 24, 2011
Is there a way in Java where I can specify a directory in java and it reads the whole file one by one? Otherwise is there a way to do a regex file…
Not read the file. htaccess
January 9, 2011
Hi, I would like to help me please if it is in their hands. And in advance thank you who have read my problem. The problem is this: In my local…
PhpMyAdmin File Could Not Be Read
June 10, 2011
Whenever I try to upload a file to import into phpMyAdmin I get the following error: File could not be read phpMyAdmin is the only php script I am…
How to read innodb log file?
April 16, 2011
Hi, I would like to see "general query log" from innodb log file, so is there anybody know how to see / read those query logs? I tried MySQL admin…