简体   繁体   中英

Arango db importer (arangodbimp) connected but permission denied on file collection import

I want to use the importer binary, but it throws " Permission denied " whatever options I choose.

在此处输入图片说明

I have created the database test , the user test and the collection persons through the ArangoDB Web interface.

I tried

  • Using the root
  • "--create-collection true" before creating the collection
  • without sudo & with sudo

I can import the collection through the Web Interface and it imports just fine.

Just to understand if it is a password issue can you please try the following workaround.

sudo -S <<< "your_password" your_command

The reasoning is that arangoimp is looking for the password once again and is taking newline as password. Hence the error permission denied. Here the option -S <<< takes the password and substitutes it every time for the incoming password requests.

However, this is just a workaround if it works and not an ultimate solution since it's not safe to have passwords visible in your command history.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM