1. 程式人生 > >shiny-server 啟動失敗:start: Job failed to start

shiny-server 啟動失敗:start: Job failed to start

問題:
啟動shiny-server時失敗,如下:
[[email protected] ~]# status shiny-server
shiny-server stop/waiting
[[email protected] ~]# start shiny-server 
start: Job failed to start


分析:
檢視shiny-server日誌
[[email protected] ~]# tail -100f  /var/log/shiny-server.log 
[2016-09-14 22:02:59.777] [INFO] shiny-server - Shutting down worker processes
[2016-09-14 22:03:03.763] [INFO] shiny-server - Shiny Server v1.4.4.807 (Node.js v0.10.46)
[2016-09-14 22:03:03.764] [INFO] shiny-server - Using pidfile /var/run/shiny-server.pid
[2016-09-14 22:03:03.765] [INFO] shiny-server - Using config file "/etc/shiny-server/shiny-server.conf"
[2016-09-14 22:03:03.804] [ERROR] shiny-server - Error loading config: Unknown directive "auth_passwd_file" (/etc/shiny-server/shiny-server.conf:6:1)



發現提示是配置檔案的auth_passwd_file沒有認到,才想來原來我裝的shiny-server是企業pro版本,因為試用期45天到期了,我就解除安裝了這個商業版本,重新裝的一個open免費版本。
由於解除安裝後沒刪除舊的配置檔案,導致免費版本的不能識別商業版本配置檔案裡的引數,所以才報上面的錯誤


下面是商業版本和免費版本配置檔案內容的區別
shiny-server pro版本配置內容 :
[[email protected] shiny-server]# vi /etc/shiny-server/shiny-server.conf    


# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;


# Specify the authentication method to be used.
# Initially, a flat-file database stored at the path below.
auth_passwd_file /etc/shiny-server/passwd;

# Define a server that listens on port 3838
server {
  listen 3838;

  # Define a location at the base URL
  location / {

    # Only up tp 20 connections per Shiny process and at most 3 Shiny processes
    # per application. Proactively spawn a new process when our processes reach
    # 90% capacity.
    utilization_scheduler 20 .9 3;
    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server;

    # Log all Shiny output to files in this directory
    log_dir /var/log/shiny-server;


    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }
}

# Provide the admin interface on port 4151
admin 4151 {

  # Restrict the admin interface to the usernames listed here. Currently
  # just one user named "admin"
  required_user admin;
}

shiny-server open source 版本配置檔案內容:
[
[email protected]
shiny-server]# vi /etc/shiny-server/shiny-server.conf

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

# Define a server that listens on port 3838
server {
  listen 3838;

  # Define a location at the base URL
  location / {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server;

    # Log all Shiny output to files in this directory
    log_dir /var/log/shiny-server;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }
}        


解決辦法:

把免費版本的配置檔案 替換掉商業版本的配置檔案就可以了。
[[email protected] shiny-server]# cp shiny-server.conf 10.1.32.8:/etc/shiny-server/
再啟動shiny-server正常
[[email protected] shiny-server]# start shiny-server
shiny-server start/running, process 20221

相關推薦

shiny-server 啟動失敗start: Job failed to start

問題:啟動shiny-server時失敗,如下:[[email protected] ~]# status shiny-servershiny-server stop/waiting[[email protected] ~]# start shiny-se

Tomcat啟動失敗(A child container failed during start)

最近在導專案時,經常發生一個Tomcat的啟動錯誤,查了不少資料都說是缺少包的原因,於是使用了各種加包的方式,只有以下為親測可行(Maven配置下) 錯誤內容: 導包方式如下: (專案右鍵——properties——Deployment Assembly) (Add——

tomcat啟動的時候報錯Failed to start component

detail 一個 read art 啟動 ini sources etc executor 在idea中運行tomcat時,遇到異常,異常信息如下: 16-Jan-2018 16:33:37.325 信息 [localhost-startStop-1] org.apac

Linux之安裝MySQL問題Mysql Daemon failed to start

leg sql err 命令 img erro 技術分享 .com host 1、通過yum安裝MySQL成功,輸入啟動服務命令:sudo service mysqld start,失敗 2、試過很多方法,也查看了錯誤日記: 150325 11:37:46 [ERROR]

mysql job failed to start-tomcat問題變種

準備 增長 文件的 崩潰 有時 學會 雅思 日誌 eas 首先說一說問題的背景: 服務器端采用tomcat為J2EE容器,在一次失敗的NIO測試(把控制臺輸出信息寫在了NIO阻塞用的循環中)後,Ubuntu系統幾乎崩潰,關閉java相關進城後,tomcat無法再次啟動,我就

linux - mysql 異常MySQL Daemon failed to start.

報錯內容 MySQL Daemon failed to start. 如果直接輸入 mysql -root -p 登陸會出現 [mysql]ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/my

centos7.2 網絡卡啟動不了報錯 Failed to start LSB: Bring up/down

虛擬機器一段時間不用突然不能上網了,具體報錯如下: /etc/init.d/network restart Restarting network (via systemctl):  Job for network.service failed because the

安裝VMware-tools出現initctl: Job failed to start

******* Creating a new initrd boot image for the kernel. update-initramfs: Generating/boot/initrd.img-2.6.38-8-generic initctl: Job failed to start Unab

ubuntu上修改mysql預設字元編碼出現的Job failed to start解決方法

ubuntu下修改mysql預設字元編碼出現的Job failed to start解決辦法         前幾天卸掉了用了好多年的Windows,安裝了Ubuntu12.04,就開始各種搭環境。今天裝好了MySQL5.5.22,正用著爽呢,突然發現裡面的中文全部變成了亂

修改mysql字元編碼出現Job failed to start解決辦法

從網上找到如下資料: $sudo gedit /etc/mysql/my.cnf [client]下新增: default-character-set=utf8 [mysqld]下新增: default-character-set=utf8         然後儲存退出 $ /etc/init.d/mysq

啟動網卡報錯Failed to start LSB: Bring up/down network

修改網卡 man details led ger lsb ont ring 網卡配置 啟動網卡報錯(Failed to start LSB: Bring up/down networking )解決辦法總結 centos7.5 操作系統安裝到vmware後,修改網卡配置啟動

systemctl start mariadb Failed to start mariadb.service: Unit mariadb.service failed to load: No suc

Contos7 放棄了mysql 因為oracle 購買了mysql很可能被商業化,因此Contos7 選擇mysql分支 mariadb 繼續開源(開源也需要錢) systemctl start mariadb Failed to start mariadb.service: Unit m

Tomcat無法啟動Server Tomcat v8.5 Server at localhost failed to start

cal ctrl+s sso 問題: log 配置 狀態 iss text Tomcat無法啟動 項目狀態 Maven項目:基礎環境(依賴,基本配置文件)搭建完成,前端頁面都導入,部署測試項目環境,出現該問題 問題情景: 1.彈窗提示Tomcat啟動失敗 2.Consol

maven項目使用tomcat啟動報錯Server Tomcat v8.5 Server at localhost failed to start

com 再次 tar 同事 使用 sta 本地倉庫 art ati 背景說明:1)該項目為maven項目,使用的maven的本地倉庫裏有不少之前使用過下載的jar包;      2)從svn下載該項目後,無報錯情況;      3)部署到tomcat啟動報錯 如下 :

apache2啟動失敗(Failed to start The Apache HTTP Server.)解決方案

star 卸載 sta 啟動 art code led sudo pac 不知道如何啟動apache2就啟動不來了。 如下圖所示: 即使卸載了重新裝也是如此 經過測試卸載並清除軟件包的配置即可解決   sudo apt-get purge apache2   s

Nexus啟動失敗處理The nexus service was launched, but failed to start.

升級了JDK為1.9後,Nexus啟動就失敗了: C:\Users\abc>nexus start wrapper  | Starting the nexus service... wrapper  | Waiting to start... wrapper  

Server Tomcat v9.0 Server at localhost failed to start.誤刪檔案導致啟動失敗

網上有一系列的解決方案,試了都沒用,一看報錯資訊是清理垃圾時誤刪了某些檔案導致啟動失敗,還原檔案步驟如下 1,myeclipse>preferences>Servers>Runtime Environment 2,把以前的tomcat 9.0移除&n

tomcat啟動失敗問題排除及解決辦法 Server Tomcat v9.0 Server at localhost failed to start.

解決方案一:點選控制檯下的server,右擊一下,點選Add And Remove,把專案重新部署一下,在執行一下,看看能不能解決問題; 解決方案二:刪除掉eclipse中的服務,再重新部署一下 過程如下 delete掉server,-->window-->

Tomcat啟動失敗 提示Server Tomcat v7.0 Server at localhost failed to start.六種解決方法

Tomcat啟動失敗,提示Server Tomcat v7.0 Server at localhost failed to start 在一次檢視自己以前寫過的專案中,執行tomcat失敗,出現如圖提示 然而自己之前的專案執行時候都很正常,沒有出現這樣的錯誤,再次執行時候就出現這樣的錯誤,百思不得其解,

MySQL Daemon failed to start. 正在啟動 mysqld[失敗]

在 CentOS 6.7上之前安裝過Mysql資料庫,想升級到較新的版本所以就重新升級了一下資料庫。可是重新安裝後執行:service mysqld start 重啟資料庫總是會出現如下提示: MySQL Daemon failed to start. Starting mysqld: [F