I am a newbie please bear with me if not very clear with the query.
I have been working with cassandra for sometime. But suddenly it has stopped working with the issue being reported as "Error processing commit log during intialization" and that it is "rename of .log file failed".
I have searched for similar reports but could not solve the issue.
I tried the following:
1. clearing the DataStax Community\data\commitlog folder all but one log file is always locked with cassandra.
2. Changed the Windows Defender setting to allow the cassandra folder and not scan the .log files
I am using Datastax Communitity Cassandra version 2.1.10 with Java 1.8 64-bit working on a single node.
Thanking in anticipation
Sujata
The console log:
:1.8.0_45]
... 11 common frames omitted
INFO 11:32:11 Initializing key cache with capacity of 100 MBs.
INFO 11:32:11 Initializing row cache with capacity of 0 MBs
INFO 11:32:11 Initializing counter cache with capacity of 50 MBs
INFO 11:32:11 Scheduling counter cache save to every 7200 seconds (going to save all keys).
INFO 11:32:12 Initializing system.sstable_activity
INFO 11:32:16 Opening C:\Program Files (x86)\DataStax Community\data\data\system\sstable_activity- 5a1ff267ace03f128563cfae6103c65e\system-sstable_activity-ka-1299 (1471 bytes)
INFO 11:32:16 Opening C:\Program Files (x86)\DataStax Community\data\data\system\sstable_activity-5a1ff267ace03f128563cfae6103c65e\system-sstable_activity-ka-1301 (1698 bytes)
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\sstable_activity-5a1ff267ace03f128563cfae6103c65e\system-sstable_activity-ka-1300 (1560 bytes)
INFO 11:32:17 Initializing system.hints
INFO 11:32:17 Initializing system.compaction_history
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\compaction_history-b4dbb7b4dc493fb5b3bfce6e434832ca\system-compaction_history-ka-938 (343 bytes)
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\compaction_history-b4dbb7b4dc493fb5b3bfce6e434832ca\system-compaction_history-ka-937 (14710 bytes)
INFO 11:32:17 Initializing system.peers
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\peers-37f71aca7dc2383ba70672528af04d4f\system-peers-ka-1 (30 bytes)
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\peers-37f71aca7dc2383ba70672528af04d4f\system-peers-ka-2 (30 bytes)
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\peers-37f71aca7dc2383ba70672528af04d4f\system-peers-ka-3 (30 bytes)
INFO 11:32:17 Initializing system.schema_columnfamilies
INFO 11:32:17 Opening C:\Program Files (x86)\DataStax Community\data\data\system\schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697\system-schema_columnfamilies-ka-532 (6166 bytes)
.....
INFO 11:32:23 Initializing OpsCenter.pdps
INFO 11:32:23 Opening C:\Program Files (x86)\DataStax Community\data\data\OpsCenter\pdps-2d611410725d11e58514c92bd1990991\OpsCenter-pdps-ka-234 (13992 bytes)
INFO 11:32:23 Opening C:\Program Files (x86)\DataStax Community\data\data\OpsCenter\pdps-2d611410725d11e58514c92bd1990991\OpsCenter-pdps-ka-233 (13727 bytes)
ERROR 11:32:23 Unable to delete C:\Program Files (x86)\DataStax Community\data\data\system\local-7ad54392bcdd35a684174e047860b377\system-local-ka-476-Data.db (it will be removed on server restart; we'll also retry after GC)
.....
INFO 11:32:24 Initializing people.employees
INFO 11:32:24 Opening C:\Program Files (x86)\DataStax Community\data\data\people\employees-ae275410730211e5b8b0c92bd1990991\people- employees-ka-2 (364 bytes)
INFO 11:32:24 Opening C:\Program Files (x86)\DataStax Community\data\data\people\employees-ae275410730211e5b8b0c92bd1990991\people- employees-ka-3 (188 bytes)
INFO 11:32:24 Opening C:\Program Files (x86)\DataStax Community\data\data\people\employees-ae275410730211e5b8b0c92bd1990991\people- employees-ka-1 (238 bytes)
INFO 11:32:24 reading saved cache C:\Program Files (x86)\DataStax Community\data\saved_caches\KeyCache-ba.db
INFO 11:32:24 Completed loading (15 ms; 124 keys) KeyCache cache
INFO 11:32:24 Replaying C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log
INFO 11:32:24 Replaying C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log
INFO 11:32:24 Replaying C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log (CL version 4, messaging version 8)
INFO 11:32:28 Finished reading C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log
INFO 11:32:28 Enqueuing flush of compaction_history: 1188 (0%) on-heap, 0 (0%)off-heap
INFO 11:32:28 Enqueuing flush of compactions_in_progress: 1325 (0%) on- heap, 0(0%) off-heap
INFO 11:32:28 Writing Memtable-compaction_history#1259797467(0.231KiB serialized bytes, 9 ops, 0%/0% of on/off-heap limit)
INFO 11:32:28 Enqueuing flush of sstable_activity: 692 (0%) on-heap, 0 (0%) off-heap
INFO 11:32:28 Writing Memtable-compactions_in_progress#165723692(0.154KiB serialized bytes, 10 ops, 0%/0% of on/off-heap limit)
INFO 11:32:28 Completed flushing C:\Program Files (x86)\DataStax Community\data\data\system\compactions_in_progress-55080ab05d9c388690a4acb25fe1f77b\system-compactions_in_progress-tmp-ka-1-Data.db (0.000KiB) for commitlog position ReplayPosition(segmentId=1456054336525, position=1020)
INFO 11:32:28 Completed flushing C:\Program Files (x86)\DataStax Community\data\data\system\compaction_history-b4dbb7b4dc493fb5b3bfce6e434832ca\system-compaction_history-tmp-ka-939-Data.db (0.000KiB) for commitlog position ReplayPosition(segmentId=1456054336525, position=1020)
INFO 11:32:28 Writing Memtable-sstable_activity#810221833(0.031KiB serialized bytes, 4 ops, 0%/0% of on/off-heap limit)
INFO 11:32:28 Completed flushing C:\Program Files (x86)\DataStax Community\data\data\system\sstable_activity-5a1ff267ace03f128563cfae6103c65e\system-sstable_activity-tmp-ka-1302-Data.db (0.000KiB) for commitlog position ReplayPosition(segmentId=1456054336525, position=1020)
INFO 11:32:28 Log replay complete, 2 replayed mutations
ERROR 11:32:28 Exiting due to error while processing commit log during initialization.org.apache.cassandra.io.FSWriteError: java.io.IOException: Rename from C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log to 1456054336526 failed
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init>(CommitLogSegment.java:177) ~[apache-cassandra-2.1.10.jar:2.1.10]
at org.apache.cassandra.db.commitlog.CommitLogSegmentManager$4.call(CommitLogSegmentManager.java:397) ~[apache-cassandra-2.1.10.jar:2.1.10]
at org.apache.cassandra.db.commitlog.CommitLogSegmentManager$4.call(CommitLogSegmentManager.java:394) ~[apache-cassandra-2.1.10.jar:2.1.10]
at org.apache.cassandra.db.commitlog.CommitLogSegmentManager$1.runMayThrow(CommitLo gSegmentManager.java:152) ~[apache-cassandra-2.1.10.jar:2.1.10]
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) [apache-cassandra-2.1.10.jar:2.1.10]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
Caused by: java.io.IOException: Rename from C:\Program Files (x86)\DataStax Community\data\commitlog\CommitLog-4-1456038026082.log to 1456054336526 failed
at org.apache.cassandra.db.commitlog.CommitLogSegment.<init> (CommitLogSegment.java:149) ~[apache-cassandra-2.1.10.jar:2.1.10]
... 5 common frames omitted
INFO 11:32:28 Compacting [SSTableReader(path='C:\Program Files (x86)\DataStax Community\data\data\system\size_estimates 618f817b005f3678b8a453f3930b8e86\system-size_estimates-ka-1280-Data.db'), SSTableReader(path='C:\Program Files (x86)\DataStax Community\data\data\system\size_estimates- 618f817b005f3678b8a453f3930b8e86\system-size_estimates-ka-1281-Data.db'), SSTableReader(path='C:\Program Files (x86)\DataStax Community\data\data\system\size_estimates-618f817b005f3678b8a453f3930b8e86\system-size_estimates-ka-1278-Data.db'), SSTableReader(path='C:\Program Files (x86)\DataStax Community\data\data\system\size_estimates-618f817b005f3678b8a453f3930b8e86\system-size_estimates-ka-1279-Data.db')]
Related
only homepage of my website is not opening, showing error:
This page isn’t working www.domain.com redirected you too many times.
in errors log I can see:
[19-Nov-2021 05:17:54 UTC] PHP Fatal error: Out of memory (allocated 193462272) (tried to allocate 16384 bytes) in /hermes/walnacweb07/walnacweb07an/b413/hoc.mwtinccom/wp-includes/media.php on line 3653
[19-Nov-2021 05:17:54 UTC] PHP Fatal error: Out of memory (allocated 193462272) (tried to allocate 65536 bytes) in /hermes/walnacweb07/walnacweb07an/b413/hoc.mwtinccom/wp-includes/functions.php on line 5107
As I checked wp_options table URL is correct and entered without www extension
Rest other pages are working, earlier
MEMORY_LIMIT was 64M
and then I changed it to 256M, but still getting same error.
Can anyone help to fix?
Your WordPress memory settings are in wp-config.php.
Add define('WP_MEMORY_LIMIT', '256M');
I have followed the instructions in the Symfony documentation for how to upload a file exactly as per https://symfony.com/doc/current/controller/upload_file.html.
However when I post the file using Postman I get an OutOfMemoryException. Does anyone know what causes this and how to fix it?
The error received is as follows:
(1/1) OutOfMemoryException
Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 109056000 bytes)
In your php.ini change configuration
upload_max_filesize = 2M
also, check
post_max_size = 8M
change this configuration ...
restart server and check
I am trying to install nginx in raspberry pi 3.
when I run "sudo apt-get update" command, I get the following error.
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/sources.list - RealFileExists (2: No such file or directory)
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
I do not know what is an exact problem is.
Please help me out. Thanks in advance!
I assume that the error message could already explain what is the problem is
W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/sources.list.d/ - DirectoryExists (2: No such file or directory)
W: Unable to read /etc/apt/sources.list - RealFileExists (2: No such file or directory)
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
The first three lines pop up when the corresponding directories are not existing or accessible (for reference: https://askubuntu.com/questions/1031891/unable-to-read-etc-apt-apt-conf-d-directoryexists-2-no-such-file-or-direct
The last two lines pop up when the /var/lib/dpkg is not existing or accessible https://askubuntu.com/questions/223484/permission-denied-are-you-root.
In worst case you removed accidentally some important directories.
Another option is that the sudo did not work at all - then you would execute the command as unprivileged user and would end up with the error messages that you currently have.
I tried to sync pdf files of a local folder on my PC on a webdav folder (box account). I mounted that folder with : davs://dav.box.com/dav. I am on ubuntu 14.04
rsync -avu --include="*/" --include="*.pdf" --exclude="*" L2/ /run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/
The above rsync command created on the webdav folder the directory tree but it does not copy any file.
I got plenty of :
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline": Operation not supported (95)
rsync: failed to set times on "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/Cours": Operation not supported (95)
...
Then I got the list of files I want to sync.
SymCristalline/
SymCristalline/TD_2013.pdf
SymCristalline/blanche.pdf
SymCristalline/inter_tables_of_crist__vol_a.pdf
SymCristalline/inter_tables_of_crist__vol_d.pdf
....
Then I got plenty of
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.TD_2013.pdf.tgEY8n" failed: Operation not supported (95)
rsync: mkstemp "/run/user/1000/gvfs/dav:host=dav.box.com,ssl=true/dav/Cours/SymCristalline/.blanche.pdf.tZ2XyK" failed: Operation not supported (95)
....
and finaly :
sent 93,577,889 bytes received 38,505 bytes 20,577.29 bytes/sec
total size is 93,541,542 speedup is 1.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
At the end, on the webdav folder, there is all directories but not any files.
It's likely this is due to archive mode (-a) as WebDAV protocol does not support updating file permissions.
my command vishal#vishal-linux:~/Dropbox/sites/residen$ drush zen "residen theme" --path=sites/all/themes/
the output :
Source directory /home/vishal/Dropbox/sites/residen//STARTERKIT is not readable or does not exist. [error]
rename(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/STARTERKIT.info.txt,/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info):[warning]
No such file or directory drush.inc:798
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info): failed to open stream: No such [warning]
file or directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info): failed to open stream: No such [warning]
file or directory zen.drush.inc:117
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/theme-settings.php): failed to open stream: No such [warning]
file or directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/theme-settings.php): failed to open stream: No such [warning]
file or directory zen.drush.inc:117
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/template.php): failed to open stream: No such file or [warning]
directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/template.php): failed to open stream: No such file or [warning]
directory zen.drush.inc:117
Starter kit for "residen theme" created in: /home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme
however the theme dir was not created. I am not sure what went wrong. I am new to drush and zen. Please advice.
Thank you,
Vishal