Mnemosyne

Linux, 機械学習について個人的なメモを綴っていきます

OneDrive によって作成されたファイル [ aria-debug-xxxx.log ]

Cドライブの容量が日に日に圧迫されているので調査した結果
OneDrive によって作成されたファイル [ aria-debug-xxxx.log ] (xは数字)が悪さしていることが分かった。

問題のファイルのパスは、
C:\Users\(User名)\AppData\Local\Temp\aria-debug-xxxx.log です。

このファイルは4GBから10GB(!)のサイズという巨大なログとなっています。
中身はというと..

2017-10-28 21:39:32.557|00035660|
C:\build\aria-cpp-v1\clienttelemetry\src\LogManagerImpl.cpp(612): class Microsoft::Applications::Telemetry::ILogger *__thiscall Microsoft::Applications::Telemetry::LogManagerImpl::Initialize(const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const struct Microsoft::Applications::Telemetry::LogConfiguration &) WARNING: Invalid in-ram queue size (20971520), adjusted to max ram queue size
2017-10-28 21:39:32.636|00035660|
C:\build\aria-cpp-v1\clienttelemetry\src\SQLiteStorage.cpp(1415): int __thiscall common::SQLiteStorage::sqlite3_exec(const char *,int (__cdecl *)(void *,int,char **,char **),void *) WARNING: Failed to execute query: ALTER TABLE `packages` ADD `inflight` INTEGER; [rc=1]
2017-10-28 21:39:32.636|00035660|
C:\build\aria-cpp-v1\clienttelemetry\src\SQLiteStorage.cpp(1415): int __thiscall common::SQLiteStorage::sqlite3_exec(const char *,int (__cdecl *)(void *,int,char **,char **),void *) WARNING: Failed to execute query: ALTER TABLE `packages` ADD `attribs` INTEGER; [rc=1]
2017-10-28 21:39:33.274|00035660|
C:\build\aria-cpp-v1\clienttelemetry\src\SQLiteStorage.cpp(1415): int __thiscall common::SQLiteStorage::sqlite3_exec(const char *,int (__cdecl *)(void *,int,char **,char **),void *) WARNING: Failed to execute query: ALTER TABLE `packages` ADD `inflight` INTEGER; [rc=1]
2017-10-28 21:39:33.274|00035660|
C:\build\aria-cpp-v1\clienttelemetry\src\SQLiteStorage.cpp(1415): int __thiscall common::SQLiteStorage::sqlite3_exec(const char *,int (__cdecl *)(void *,int,char **,char **),void *) WARNING: Failed to execute query: ALTER TABLE `packages` ADD `attribs` INTEGER; [rc=1]
2017-10-28 21:39:33.284|00037224|
C:\build\aria-cpp-v1\clienttelemetry\src\TransmissionPolicyManager.cpp(1447): enum clienttelemetry::DATARV_ERROR __thiscall clienttelemetry::TransmissionPolicyManager::ProcessSendEvent(struct clienttelemetry::TelemetryEventContext &) ERROR  : Invalid status: 4
2017-10-28 21:39:33.284|00037224|
C:\build\aria-cpp-v1\clienttelemetry\common\ErrorLogger.cpp(19): void __cdecl clienttelemetry::LogDataRvError(enum clienttelemetry::DATARV_ERROR,bool,const char *,int) ERROR  : 
C:\build\aria-cpp-v1\clienttelemetry\src\LogManagerImpl.cpp(344): Error: 0x00000007
2017-10-28 21:39:33.284|00037224|
C:\build\aria-cpp-v1\clienttelemetry\common\ErrorLogger.cpp(19): void __cdecl clienttelemetry::LogDataRvError(enum clienttelemetry::DATARV_ERROR,bool,const char *,int) ERROR  : 
C:\build\aria-cpp-v1\clienttelemetry\src\LogManagerImpl.cpp(355): Error: 0x00000007
2017-10-28 21:39:33.284|00037224|
C:\build\aria-cpp-v1\clienttelemetry\common\ErrorLogger.cpp(96): bool __cdecl clienttelemetry::MapDataRVErrorToException(enum clienttelemetry::DATARV_ERROR,const class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,const char *,int) ERROR  : C:\build\aria-cpp-v1\clienttelemetry\src\LogManagerImpl.cpp(355): [Exception] This operation is not allowed at current state.

うーん...
調べていくうちに以下のページにたどり着きました。
www.reddit.com
上記のサイトにあるコメントによると

It's OneDrive as others have said. There have been many reports this past week of hard drives filling up with 40+ gigabyte log files. Microsoft had a bad update 2 weeks ago that borked system files and permissions, then pushed a fast update to fix the issue, but apparently broke OneDrive. A simple reinstall (using the updater) doesn't fix it, but a full uninstall / reboot / install has worked on a few machines.
1st: Report it using OneDrive's 'Report a Problem' (right click the icon) so they at least know it's an issue. Then do a total uninstall of Onedrive, and delete the aria-debug files from Temp. Reboot!
2nd: Download a fresh installer from https://onedrive.live.com/about/en-us/download/ (don't use the installer from windows update or office).
3rd: Install it fresh. You will have to reenter your account info.

Finally watch your Temp files to see if aria-debug takes off growing (after you are fully sync'd).
Also check Task Manager for Disk Writes. Once OneDrive has sync'd your files, the %Disk should drop to 0. (during the bug my Disk Write % was pegging out at 100% as it kept writing non-stop!)
So far this worked on 1 machine where Aria-debug is holding at 8KB. The other ones all went right back to the same behavior and had to be disabled :/
If this doesn't fix it, I would disable OneDrive.
Update - The 1 machine that appeared to be fixed has reverted back to filling up log files. Had to disable OneDrive completely.

どうやらOnedriveの同期がうまく動作してないことに起因したバグのようです。
とりあえず、このコメントの通りOnedriveの設定(右下にある雲のアイコン)を開きOfficeとの同期をOffにした後
aria-debug-xxxx.log を手動で削除しました。

現在はログは発生しているものの8kb程度なのでしばらく様子を見ようと思います。

ホントWindowsはこれ系のバグが多すぎる!!!

広告を非表示にする