Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Really strange HTTP 500 when installing

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 2 weeks ago #252104 by urbana
 Please help us help you and fill where relevant:
Your LimeSurvey version: 6.3.4
Own server or LimeSurvey hosting: own server
Survey theme/template: standard
==================
Hi I have a really strange problem. I run limesurvey in a Docker container. It works fine running it locally, deploying to server, when trying to install I get:Internal Server ErrorThe asset "" to be published does not exist.An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.Thank you.2023-11-13 20:07:53

Any one ideas?
I already tried to restart, delete, reinstall, I tried it with a different version always this error.

Thank you

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252176 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
Anyone an idea?
It's so super strange and I don't even know how to debug it because don't get anymore than this error.

Since it's in the absolute beginning of the installation process, there is also no config.php.
When I create a config.php and and an array like this:

return array('config'=>array('debug'=>2,'debugsql'=>0,'mysqlEngine'=>'MYISAM'));

Then I get a lot of erorrs reagarding connection to mysql - which I think only means, if there is a config.php limesurvey searches for the mysql creds. 

When I change the debuging var in the config-defaults.php nothing changes.

How can I debug that further? 

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252183 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
It really only gets better and better ...

I tried the following:
In the setdebug.php I removed all if clauses which check the config.php my setdebug looks like this:
[code]

Then, suddenly the installation started. 
It worked, everythings worked.

After the installation I changed the setdebug.php back to the original refreshed my working installation and got again:

Internal Server ErrorThe asset "" to be published does not exist.

It's so super strange I really I am just stunned ^^

It's a clean docker apache image installation. absolute standard. same config works on my local machine...

 
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252185 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
The error also persists, when I remove include setdebug.php from index.php
I let it be... It works when I change the setdebug.php and well sometimes the computer god just want it that way ...   

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 week ago #252211 by DenisChenu
Replied by DenisChenu on topic Really strange HTTP 500 when installing
I really don't understand why it want to publish empty asset ??

Else : without debug : it disable asset manager.

But : you can enable debug + asset at same time : then you know when he want to public empty asset :
manual.limesurvey.org/Debug_mode
Code:
    'config'=>array(
        'debug'=>2,
        'debugsql'=>0,
        'use_asset_manager' => true,
    )
 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252215 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
Hi thank you for your answers.

So you say, there is this problem with publishing the empty asset, when I enable debuging the asset manager is disabled.
What is the asset manager doing?

I can't try it now but can't do it now.

One question, without the asset manager (so when I have my workaround on) does this have any consequences? Or will work everything? I need to have a short term solution for now.

Thank you!

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 week ago #252216 by DenisChenu
Replied by DenisChenu on topic Really strange HTTP 500 when installing
asset manager create copy of JS and CSS file with a specific directory name. Then you are sure user have the last one.

It work without but with debug=2 : there are a possibility to broke other things.

The best way (in my opinion) is to fix definitely the issue : the set debug = 2 and  use_asset_manager to true

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252217 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
Thank you. I definitely agree with you, I'd love to fix it. But I've ran out of ideas.

I tried:
- download the zip file in the docker image and unpack it
- create the docker image than copy in the source files
- I ran it as root and not
- I tried various chowns and chmod settings

The next thing I try is a classical installation without docker. But that's not a solution for my project in the long run.

Well anyways thank you very much for your answers at least I know now which mechanism causes the problem.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 week ago #252219 by DenisChenu
Replied by DenisChenu on topic Really strange HTTP 500 when installing
Hi,

With you setdebug.php : you set debug=2 and disable asset_manager

I think with only (one time test)
Code:
    'config'=>array(
        'debug'=>2,
        'debugsql'=>0,
        'use_asset_manager' => true,
    )
you have the line where it call empty asset

You do it one time, save HTML (to have whole process)
And set again 'use_asset_manager' => false, after

I check : to disable asset manager : you need YII_DEBUG to true and Yii::app()->getConfig('use_asset_manager') to false (default is false)
Code:
if (!YII_DEBUG || Yii::app()->getConfig('use_asset_manager')) {

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252221 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
I am not 100% sure I follow you sorry :)

You recommend:
Doing this once:
debug = 2 and asset_manger false

Than saving the HTML
Which HTML?

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
1 year 1 week ago - 1 year 1 week ago #252222 by DenisChenu
Replied by DenisChenu on topic Really strange HTTP 500 when installing

Which HTML?
The html produced

And you have something like that : (to be unziped : HTML file)

And you can send it here to have a look at the issue …

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Attachments:
Last edit: 1 year 1 week ago by DenisChenu.
The following user(s) said Thank You: urbana

Please Log in to join the conversation.

  • urbana
  • urbana's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 year 1 week ago #252256 by urbana
Replied by urbana on topic Really strange HTTP 500 when installing
Hi @DenisChenu I followed your instruction and was able to produce the more extensive error reporting.
Does this give you any clues, whats happening?

Thank you very much for your continues help.
Br 

File Attachment:

File Name: CException...1-16.zip
File Size:6 KB
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose