Error writing mnemonic recovery seed to file: LibraWalletGeneric: Permission denied (os error 13) - diem

While trying to save my Diem (Libra) wallet mnemonic recovery seed to disk I get the following message;
[ERROR] Error writing mnemonic recovery seed to file: LibraWalletGeneric: Permission denied (os error 13)
However when starting the client with sudo I have no issue;
sudo ./scripts/cli/start_cli_testnet.sh
a w /home/user/wallet/wallet.wallet
>> Saving Libra wallet mnemonic recovery seed to disk
Saved mnemonic seed to disk
What should I do as a standard to solve this issue? The most obvious workaround being to run the client as root or to modify the write folders permission.

It seems the solution was simply to save the wallet to the current folder, i.e;
libra% a w ./wallet.wallet

Related

Neo4j - Error when having the data folder on external hard drive

I can start Neo4j without issues using default settings.
Now I try to have my Neo4j data in a folder of an external hard drive because I don't have enough space on my local machine for an import.
So in my neo4j.conf I have set: dbms.directories.data=/Volumes/INTENSO/richRich/neo4j-data. Then on neo4j start a databases folder gets created, but the database shuts down immediately after start. This is what I perceived as useful from the debug.log stacktrace:
...
2018-07-22 11:25:55.745+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics END ---
2018-07-22 11:25:55.912+0000 INFO [o.n.b.BoltKernelExtension] Bolt Server extension loaded.
2018-07-22 11:25:56.069+0000 INFO [o.n.k.i.s.f.RecordFormatSelector] Selected format 'RecordFormat:StandardV3_4[v0.A.9]' for the new store
2018-07-22 11:25:56.118+0000 WARN [o.n.k.NeoStoreDataSource] Exception occurred while setting up store modules. Attempting to close things down. Unable to open store file: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
org.neo4j.kernel.impl.store.UnderlyingStorageException: Unable to open store file: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
...
Caused by: org.neo4j.io.pagecache.impl.FileLockException: Already locked: /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels
...
I checked /Volumes/INTENSO/richRich/neo4j-data/databases/graph.db/neostore.nodestore.db.labels and the file is there. I also made everything chmod -R 777 to ensure that there are no permission issues.
OS: latest MacOS
Neo4j: 3.4.4 Community Edition

How to attach an .MDF file in a host directory data volume from within Docker mssql-server-linux container?

I am mounting a host directory as a data volume with the following:
docker run -v c:\volumes:/var/opt/mssql/data2
-e "ACCEPT_EULA=Y"
-e "SA_PASSWORD=QWEqwe1!"
-e 'MSSQL_PID=Express'
-p 1433:1433
-d microsoft/mssql-server-linux:latest
I created the volume with the instructions in the configuration topic here: https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-configure-docker#persist.
My host directory contains an .mdf file and an empty .ldf file. When attempting to attach the .mdf file using the following TSQL:
USE [master]
GO
CREATE DATABASE [MY_DATABASE] ON
( FILENAME = N'/var/opt/mssql/data2/MY_DATABASE.mdf' ),
( FILENAME = N'/var/opt/mssql/data2/MY_DATABASE_log.ldf' )
FOR ATTACH
GO
I receive the following ERROR:
"Error: 824, Severity: 24, State: 6.
2018-04-19 19:37:31.29 spid57 SQL Server detected a logical consistency-based I/O error: Insufficient bytes transferred. Common causes are backup configuration, insufficient disk space, or other problems with the storage subsystem such as corruption or hardware failure. Check errorlogs/application-logs for detailed messages and correct error conditions.. It occurred during a read of page (0:0) in database ID 0 at offset 0000000000000000 in file 'C:\var\opt\mssql\data\SS18SV_CORE_log.ldf'. Additional messages in the SQL Server error log or operating system error log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online."
The error.log contains:
"ERROR 5105 A file activation error occurred. The physical file name '\var\opt\mssql\data2\SS18SV_CORE.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
2018-04-19 19:00:14.79 spid54 Error: 824, Severity: 24, State: 6."
Any ideas how I can attach the .mdf file and .ldf file from my data volume successfully?
I am using Docker Community Edition Version 18.03.0-ce-win59 (16762) for Windows. My OS is Windows 10 Enterprise.

The following error occurred while opening the file '\\?\E:\TempDB\MDTempStore_1584_1_j1pv2.tmp': Access is denied

I'm trying to start a fresh install of TFS 2013 but running into the issue TF255356: The following error occurred when configuring the Team Foundation databases: TF400711: Error occurred while executing servicing step Create Warehouse for component InstallWarehouse during Install: Create Analysis Database schema failed: Error generating Analysis Database: File system error: The following error occurred while opening the file '\?\E:\TempDB\MDTempStore_1584_1_j1pv2.tmp': Access is denied.
I have tried to remove the read-only flag from the tempdb folder but it keeps getting set to true after applying the change. I have also added the registry entry UseSystemForSystemFolders which allows read-only to be removed from the folder but it does not persist.
Any help with this would be great
Thanks
Chris

Error occurred while opening logfile C:\Windows\system32\LogFiles\Sum\Api.log

I need to restart the MS SQL server service every morning because my web client site can not connect.
However, when I start my services it works. I don't know what is causing the problem.
I found this in my error log.
sqlservr (4052) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.log"
for read only access failed with system error 5 (0x00000005):
"Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
sqlservr (3000) An attempt to open the file "C:\Windows\system32\LogFiles\Sum\Api.chk"
for read / write access failed with system error 5 (0x00000005): "Access is denied. ".
The open file operation will fail with error -1032 (0xfffffbf8).
Hope somebody can help me fix this.
Your serviceaccount need access to the folder:
C:\Windows\System32\LogFiles\Sum
Go to the folder and add the account with read/write permissions.
http://support.microsoft.com/kb/2811566

How to deploy CakePHP-application on CentOS?

I almost managed to deploy a CakePHP-application on CentOS-server, but it still needs little configuration. I have enabled mod_rewrite in /etc/httpd/conf/httpd.conf and restarted apache-server.
Then I have put Cake core library in /home/user/cakephp-core/
I get message "500 internal error" when i try to go to this page through web-browser.
In apache-logs I found following messages:
PHP Warning: include(/$HOME/cakephp-core/lib/Cake/bootstrap.php): failed to open stream: Permission denied in /srv/www/site/public_html/main/index.php on line 96
PHP Warning: include(): Failed opening '/$HOME/cakephp-core/lib/Cake/bootstrap.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /srv/www/site/public_html/main/index.php on line 96
PHP Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /srv/www/site/public_html/main/index.php on line 101
it says something about "permission denied"... to whom I should give permissions and where? I gave "apache:apache" to tmp/-folder... Any ideas?
Simply read the log and try to understand it.
It pretty clearly tells you what has insufficient permissions. The linux command to set permissions is chmod. You also want to make sure, as the text already tells you, that your CakePHP core include path is correct. Double check that too.

Resources