主机分发失败
#624
Replies: 1 comment
-
是不是必须是root用户才可以部署 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[ERROR] [10/28/2024 15:01:40.267] [datasophon-akka.actor.default-dispatcher-18] [akka://datasophon/user/dispatcherWorkerActor-hadoop130] SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
java.lang.RuntimeException: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:177)
at com.datasophon.api.master.handler.host.UploadWorkerHandler.handle(UploadWorkerHandler.java:38)
at com.datasophon.api.master.handler.host.DispatcherWorkerHandlerChain.handle(DispatcherWorkerHandlerChain.java:38)
at com.datasophon.api.master.DispatcherWorkerActor.onReceive(DispatcherWorkerActor.java:71)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.throwStatusException(AbstractSftpClient.java:217)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:212)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:186)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkCommandStatus(AbstractSftpClient.java:164)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.mkdir(AbstractSftpClient.java:802)
at org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper.mkdir(SftpFileSystem.java:364)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.createDirectory(SftpFileSystemProvider.java:554)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:165)
... 15 more
[ERROR] [10/28/2024 15:01:40.268] [datasophon-akka.actor.default-dispatcher-18] [akka://datasophon/user/dispatcherWorkerActor-hadoop131] SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
java.lang.RuntimeException: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:177)
at com.datasophon.api.master.handler.host.UploadWorkerHandler.handle(UploadWorkerHandler.java:38)
at com.datasophon.api.master.handler.host.DispatcherWorkerHandlerChain.handle(DispatcherWorkerHandlerChain.java:38)
at com.datasophon.api.master.DispatcherWorkerActor.onReceive(DispatcherWorkerActor.java:71)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.throwStatusException(AbstractSftpClient.java:217)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:212)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:186)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkCommandStatus(AbstractSftpClient.java:164)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.mkdir(AbstractSftpClient.java:802)
at org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper.mkdir(SftpFileSystem.java:364)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.createDirectory(SftpFileSystemProvider.java:554)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:165)
... 15 more
[ERROR] [10/28/2024 15:01:40.268] [datasophon-akka.actor.default-dispatcher-18] [akka://datasophon/user/dispatcherWorkerActor-hadoop132] SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
java.lang.RuntimeException: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:177)
at com.datasophon.api.master.handler.host.UploadWorkerHandler.handle(UploadWorkerHandler.java:38)
at com.datasophon.api.master.handler.host.DispatcherWorkerHandlerChain.handle(DispatcherWorkerHandlerChain.java:38)
at com.datasophon.api.master.DispatcherWorkerActor.onReceive(DispatcherWorkerActor.java:71)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: SFTP error (SSH_FX_PERMISSION_DENIED): Permission denied
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.throwStatusException(AbstractSftpClient.java:217)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:212)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkResponseStatus(AbstractSftpClient.java:186)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.checkCommandStatus(AbstractSftpClient.java:164)
at org.apache.sshd.sftp.client.impl.AbstractSftpClient.mkdir(AbstractSftpClient.java:802)
at org.apache.sshd.sftp.client.fs.SftpFileSystem$Wrapper.mkdir(SftpFileSystem.java:364)
at org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.createDirectory(SftpFileSystemProvider.java:554)
at java.nio.file.Files.createDirectory(Files.java:674)
at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
at java.nio.file.Files.createDirectories(Files.java:767)
at com.datasophon.api.utils.MinaUtils.uploadFile(MinaUtils.java:165)
... 15 more
我已经在/etc/sudoers给了 ALL=(ALL) NOPASSWD: ALL 权限,但是仍然报这个错,想请问如何解决
Beta Was this translation helpful? Give feedback.
All reactions