15 不使用web怎么保持admin登陆状态

由于机器端口没有开放,导致安装完dolpindb不能访问web端口;在做完sh startController.sh; sh startAgent.sh;自己启动了数据节点和计算节点:

nohup ./../dolphindb -home /home/ps/share/zyw/dolphindb/server/clusterDemo/data/dnode1 -logFile /home/ps/share/zyw/dolphindb/server/clusterDemo/log/dnode1.log  -jobLogFile /home/ps/share/zyw/dolphindb/server/clusterDemo/log/dnode1_job.log -keyPath /home/ps/share/zyw/dolphindb/server/clusterDemo/data/agent1/keys -subPort 8904 -console 0 -mode datanode -localSite localhost:8902:dnode1 -webLoginRequired 0 -enableHTTPS 0 -perfMonitoring 1 -sites localhost:8903:cnode1,localhost:8902:dnode1 -maxMemSize 32 -enableChunkGranularityConfig true -maxConnections 512 -dfsReplicationFactor 1 -workerNum 4 -localExecutors 3 -dataSync 1 -maxPubConnections 64 -maxBatchJobWorker 4 -config /noconfig -controllerSite localhost:8900:controller8900 -chunkCacheEngineMemSize 2 -stdoutLog 0 -newValuePartitionPolicy add -subExecutors 4 -lanCluster 0 > dnode_log.txt 2>&1 &

nohup ./../dolphindb -home /home/ps/share/zyw/dolphindb/server/clusterDemo/data/cnode1 -logFile /home/ps/share/zyw/dolphindb/server/clusterDemo/log/cnode1.log -jobLogFile /home/ps/share/zyw/dolphindb/server/clusterDemo/log/cnode1_job.lob -keyPath /home/ps/share/zyw/dolphindb/server/clusterDemo/data/agent1/keys -subPort 8905 -console 0 --mode computenode -localSite localhost:8903:cnode1 -webLoginRequired 0 -enableHTTPS 0 -perfMonitoring 1 -sites localhost:8903:cnode1,localhost:8902:dnode1 -maxMemSize 32 -enableChunkGranularityConfig true -maxConnections 512 -dfsReplicationFactor 1 -workerNum 4 -localExecutors 3 -dataSync 1 -maxPubConnections 64 -maxBatchJobWorker 4 -config /noconfig -controllerSite localhost:8900:controller8900 -chunkCacheEngineMemSize 2 -stdoutLog 0 -newValuePartitionPolicy add -subExecutors 4 -lanCluster 0 >  log_cnode.txt 2>&1 &


但发现导入的数据会报错,RuntimeError: <Exception> in run: Server response: 'dropDatabase("dfs://event_2") => Failed to lock [/home/ps/share/zyw/dolphindb/server/clusterDemo/data/dnode1/storage/CHUNKS/event_2/dolphindb.lock] with error : Bad file descriptor' script: 'dropDatabase('dfs://event_2')'


查看日志,发现有controller报错:

==> log/controller.log <==

2023-04-21 19:12:56.946047 <DEBUG> :Changed the session user to guest due to the verification error: The user [admin] was not logged yet.


感觉是因为没有处在登陆状态引起的错误。大佬觉得呢?要怎么解决这个问题?感谢感谢


请先 登录 后评论

最佳答案 2023-04-23 23:08

 controller.cfg中配置datanodeRestartInterval,让数据节点、计算节点自动启动。

详细的说明请参考用户手册https://www.dolphindb.cn/cn/help/DatabaseandDistributedComputing/Configuration/ConfigParamRef.html

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,825 浏览
  • zhengyongwen 提出于 2023-04-21 19:18

相似问题