View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 19409 | Bug reports | Installation | public | 2024-02-12 10:32 | 2024-02-20 10:14 |
| Reporter | waaalex | Assigned To | |||
| Priority | none | Severity | block | ||
| Status | closed | Resolution | no change required | ||
| Product Version | 6.4.x | ||||
| Summary | 19409: Cexception Runtime Path After Update | ||||
| Description | Hello, CException Application runtime path "/var/www/html/limesurvey/application/runtime" is not valid. Please make sure it is a directory writable by the Web server process. Folder runtime exists and has correct rights. I do not understand what's happen. | ||||
| Steps To Reproduce |
| ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 6.3.6+231120 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | All | ||||
| Database type & version | mariadb Ver 15.1 Distrib 10.5.22-MariaDB, for Linux (x86_64) using EditLine wrapper | ||||
| Server OS (if known) | AlmaLinux release 9.3 | ||||
| Webserver software & version (if known) | Apache/2.4.57 (AlmaLinux) | ||||
| PHP Version | PHP 8.0.30 (cli) (built: Aug 3 2023 17:13:08) ( NTS gcc x86_64 ) | ||||
|
Hello, CException.html (12,193 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0061)https://srv-get-forms/index.php/admin/authentication/sa/login -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CException</title>
<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}
body {
font: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1>CException</h1>
<p class="message">
Application runtime path "/var/www/html/limesurvey/tmp/runtime" is not valid. Please make sure it is a directory writable by the Web server process. </p>
<div class="source">
<p class="file">/var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CModule.php(520)</p>
<div class="code"><pre><span class="ln">508</span> $this->setComponent($id,$component,$merge);
<span class="ln">509</span> }
<span class="ln">510</span>
<span class="ln">511</span> /**
<span class="ln">512</span> * Configures the module with the specified configuration.
<span class="ln">513</span> * @param array $config the configuration array
<span class="ln">514</span> */
<span class="ln">515</span> public function configure($config)
<span class="ln">516</span> {
<span class="ln">517</span> if(is_array($config))
<span class="ln">518</span> {
<span class="ln">519</span> foreach($config as $key=>$value)
<span class="error"><span class="ln error-ln">520</span> $this->$key=$value;
</span><span class="ln">521</span> }
<span class="ln">522</span> }
<span class="ln">523</span>
<span class="ln">524</span> /**
<span class="ln">525</span> * Loads static application components.
<span class="ln">526</span> */
<span class="ln">527</span> protected function preloadComponents()
<span class="ln">528</span> {
<span class="ln">529</span> foreach($this->preload as $id)
<span class="ln">530</span> $this->getComponent($id);
<span class="ln">531</span> }
<span class="ln">532</span>
</pre></div> </div>
<div class="traces">
<h2>Stack Trace</h2>
<table style="width:100%;">
<tbody><tr class="trace core collapsed">
<td class="number">
#0 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CComponent.php(151): <strong>CApplication</strong>-><strong>setRuntimePath</strong>() </div>
<div class="code"><pre><span class="ln">146</span> */
<span class="ln">147</span> public function __set($name,$value)
<span class="ln">148</span> {
<span class="ln">149</span> $setter='set'.$name;
<span class="ln">150</span> if(method_exists($this,$setter))
<span class="error"><span class="ln error-ln">151</span> return $this->$setter($value);
</span><span class="ln">152</span> elseif(strncasecmp($name,'on',2)===0 && method_exists($this,$name))
<span class="ln">153</span> {
<span class="ln">154</span> // duplicating getEventHandlers() here for performance
<span class="ln">155</span> $name=strtolower($name);
<span class="ln">156</span> if(!isset($this->_e[$name]))
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#1 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CModule.php(520): <strong>CComponent</strong>-><strong>__set</strong>() </div>
<div class="code"><pre><span class="ln">515</span> public function configure($config)
<span class="ln">516</span> {
<span class="ln">517</span> if(is_array($config))
<span class="ln">518</span> {
<span class="ln">519</span> foreach($config as $key=>$value)
<span class="error"><span class="ln error-ln">520</span> $this->$key=$value;
</span><span class="ln">521</span> }
<span class="ln">522</span> }
<span class="ln">523</span>
<span class="ln">524</span> /**
<span class="ln">525</span> * Loads static application components.
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#2 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CApplication.php(166): <strong>CModule</strong>-><strong>configure</strong>() </div>
<div class="code"><pre><span class="ln">161</span> $this->preinit();
<span class="ln">162</span>
<span class="ln">163</span> $this->initSystemHandlers();
<span class="ln">164</span> $this->registerCoreComponents();
<span class="ln">165</span>
<span class="error"><span class="ln error-ln">166</span> $this->configure($config);
</span><span class="ln">167</span> $this->attachBehaviors($this->behaviors);
<span class="ln">168</span> $this->preloadComponents();
<span class="ln">169</span>
<span class="ln">170</span> $this->init();
<span class="ln">171</span> }
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#3 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/application/core/LSYii_Application.php(98): <strong>CApplication</strong>-><strong>__construct</strong>() </div>
<div class="code"><pre><span class="ln">093</span> if (array_key_exists('use_custom_twig_extensions', $baseConfig) && $baseConfig ['use_custom_twig_extensions']) {
<span class="ln">094</span> $aApplicationConfig = $this->getTwigCustomExtensionsConfig($baseConfig['usertwigextensionrootdir'], $aApplicationConfig);
<span class="ln">095</span> }
<span class="ln">096</span>
<span class="ln">097</span> /* Construct CWebApplication */
<span class="error"><span class="ln error-ln">098</span> parent::__construct($aApplicationConfig);
</span><span class="ln">099</span>
<span class="ln">100</span> /* Because we have app now : we have to call again the config (usage of Yii::app() for publicurl) */
<span class="ln">101</span> $this->setConfigs();
<span class="ln">102</span> /* Since session can be set by DB : need to be set again … */
<span class="ln">103</span> $this->setSessionByDB($aApplicationConfig);
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#4 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/YiiBase.php(132): <strong>LSYii_Application</strong>-><strong>__construct</strong>() </div>
<div class="code"><pre><span class="ln">127</span> * to the constructor of the application class.
<span class="ln">128</span> * @return mixed the application instance
<span class="ln">129</span> */
<span class="ln">130</span> public static function createApplication($class,$config=null)
<span class="ln">131</span> {
<span class="error"><span class="ln error-ln">132</span> return new $class($config);
</span><span class="ln">133</span> }
<span class="ln">134</span>
<span class="ln">135</span> /**
<span class="ln">136</span> * Returns the application singleton or null if the singleton has not been created yet.
<span class="ln">137</span> * @return CApplication the application singleton, null if the singleton has not been created yet.
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#5 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/var/www/html/limesurvey/index.php(161): <strong>YiiBase</strong>::<strong>createApplication</strong>() </div>
<div class="code"><pre><span class="ln">156</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">157</span>
<span class="ln">158</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">159</span>
<span class="ln">160</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">161</span> Yii::createApplication('LSYii_Application', $config)->run();
</span><span class="ln">162</span>
<span class="ln">163</span> /* End of file index.php */
<span class="ln">164</span> /* Location: ./index.php */
</pre></div> </td>
</tr>
</tbody></table>
</div>
<div class="version">
2024-02-12 09:38:42 Apache/2.4.57 (AlmaLinux) OpenSSL/3.0.7 <a href="https://www.yiiframework.com/">Yii Framework</a>/1.1.29 </div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body></html> |
|
|
Something strange : default runtime must be /var/www/html/limesurvey/tmp/runtime Can you send you config.php WITHOUT DB INFORMATION ? |
|
|
Hello, config.php (3,436 bytes)
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| 'connectionString' Hostname, database, port and database type for
| the connection. Driver example: mysql. Currently supported:
| mysql, pgsql, mssql, sqlite, oci
| 'username' The username used to connect to the database
| 'password' The password used to connect to the database
| 'tablePrefix' You can add an optional prefix, which will be added
| to the table name when using the Active Record class
|
*/
return array(
'components' => array(
'db' => array(
'connectionString' => 'mysql:host=;port=;dbname=;',
'emulatePrepare' => true,
'username' => '',
'password' => '',
'charset' => 'utf8mb4',
'tablePrefix' => 'lime_',
),
'session' => array (
'sessionName'=>'LS-VORUGSUIRRXNFSDA',
// Uncomment the following lines if you need table-based sessions.
// Note: Table-based sessions are currently not supported on MSSQL server.
// 'class' => 'application.core.web.DbHttpSession',
// 'connectionID' => 'db',
// 'sessionTableName' => '{{sessions}}',
),
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
// You can add your own rules here
),
'showScriptName' => true,
),
),
// For security issue : it's better to set runtimePath out of web access
// Directory must be readable and writable by the webuser
// 'runtimePath'=>'/var/limesurvey/runtime/'
// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
'debug'=>0,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
// Mysql database engine (INNODB|MYISAM):
'mysqlEngine' => 'MYISAM'
, // Update default LimeSurvey config here
)
);
/* End of file config.php */
/* Location: ./application/config/config.php */
|
|
|
Hello, |
|
|
PS : i really don't have idea on how it can happen :( |
|
|
HEllo, |
|
|
You can “just” setup a clean install choosing an existing DB at start. |
|
|
Hello, chown -R apache:apache /var/www/html/glpi/limesurvey Regards. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2024-02-12 10:32 | waaalex | New Issue | |
| 2024-02-12 10:41 | waaalex | Note Added: 79445 | |
| 2024-02-12 10:41 | waaalex | File Added: CException.html | |
| 2024-02-12 10:41 | waaalex | Bug heat | 0 => 2 |
| 2024-02-12 10:49 | DenisChenu | Note Added: 79447 | |
| 2024-02-12 10:49 | DenisChenu | Bug heat | 2 => 4 |
| 2024-02-12 11:10 | waaalex | Note Added: 79448 | |
| 2024-02-12 11:10 | waaalex | File Added: config.php | |
| 2024-02-13 15:30 | waaalex | Note Added: 79473 | |
| 2024-02-13 16:01 | DenisChenu | Note Added: 79474 | |
| 2024-02-20 09:06 | waaalex | Note Added: 79550 | |
| 2024-02-20 09:09 | DenisChenu | Note Added: 79551 | |
| 2024-02-20 09:46 | waaalex | Note Added: 79554 | |
| 2024-02-20 10:14 | DenisChenu | Status | new => closed |
| 2024-02-20 10:14 | DenisChenu | Resolution | open => no change required |