Welcome to the LimeSurvey Community Forum

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

symlink(): Cannot create symlink, error code(1314)

  • JamLizzy101
  • JamLizzy101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #145459 by JamLizzy101
Hi

I'm trying to install LimeSurvey on Windows hosting, but I have stumbled into the following error for installation:-

Internal Server Error
symlink(): Cannot create symlink, error code(1314)

An internal error occurred while the Web server was processing your request. Please contact the webmaster to report this problem.

Thank you.

It seems permissions based.

There is this function called symlink() in /limesurvey/framework/web/CAssetManager.php on line 243 that seems to be utilizing these folders:-
D:\home\jn-devsite.com\wwwroot\limesurvey\third_party\jquery
D:\home\jn-devsite.com\wwwroot\limesurvey\tmp\assets\bd57646a
D:\home\jn-devsite.com\wwwroot\limesurvey\third_party\jqueryui
D:\home\jn-devsite.com\wwwroot\limesurvey\tmp\assets\bf6dab84
D:\home\jn-devsite.com\wwwroot\limesurvey\third_party\fontawesome
D:\home\jn-devsite.com\wwwroot\limesurvey\tmp\assets\ba340ac4
D:\home\jn-devsite.com\wwwroot\limesurvey\application\extensions\bootstrap
D:\home\jn-devsite.com\wwwroot\limesurvey\tmp\assets\8051338c
D:\home\jn-devsite.com\wwwroot\limesurvey\application\extensions\bootstrap\assets
D:\home\jn-devsite.com\wwwroot\limesurvey\tmp\assets\7559c168


Has anybody encountered this before and does one know how to fix this?
I read up a little on the search engines and they mentioned disabling the LinkAssets option, but am unsure where that is...
Last edit: 7 years 3 months ago by JamLizzy101. Reason: Adding extra info
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145465 by DenisChenu
? What version did you use ?
Because symling creation was disabled in our stable version (in general).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • JamLizzy101
  • JamLizzy101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145475 by JamLizzy101
Replied by JamLizzy101 on topic symlink(): Cannot create symlink, error code(1314)
Hi

This version is 2.57
I found that the setting for LinkAssets was set to false

I could comment out: symlink($src,$dstDir); on line 243 and it shows the installation, but that's probably going to have dire consequences on this I'm sure...
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago - 7 years 3 months ago #145485 by LouisGac
Sorry, on of the dev broke it.

For now, just remove that line (or set it to false):
github.com/LimeSurvey/LimeSurvey/blob/ma..._Application.php#L87

we'll fix it in next release
Last edit: 7 years 3 months ago by LouisGac.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #145491 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 7 years 3 months ago by DenisChenu.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago - 7 years 3 months ago #145492 by LouisGac
yes I've seen that. He just commented and uncommented the same line, so he probably thought he inactivate it, but he didn't :silly:
Last edit: 7 years 3 months ago by LouisGac.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #145493 by DenisChenu
I put the comment : config.php is done for this.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • JamLizzy101
  • JamLizzy101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago - 7 years 3 months ago #145504 by JamLizzy101
Replied by JamLizzy101 on topic symlink(): Cannot create symlink, error code(1314)
Hi there. You mentioned I should remove a line?
Which line are you referring to?

I also added 'linkAssets'=>false to the following line of code in application\config\internal.php :-

'assetManager' => array(
'excludeFiles' => array("config.xml", "assessment.pstpl", "clearall.pstpl", "completed.pstpl", "endgroup.pstpl", "endpage.pstpl", "groupdescription.pstpl", "load.pstpl", "navigator.pstpl", "printanswers.pstpl", "print_group.pstpl", "print_question.pstpl", "print_survey.pstpl", "privacy.pstpl", "question.pstpl", "register.pstpl", "save.pstpl", "startgroup.pstpl", "startpage.pstpl", "surveylist.pstpl", "survey.pstpl", "welcome.pstpl" ),
'baseUrl' => '/tmp/assets',
'basePath'=> dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'assets',
),


It didn't work. Should that now be taken out?
Last edit: 7 years 3 months ago by JamLizzy101. Reason: adding extra info
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago #145505 by LouisGac
yes we update the code, so the link is no more valid.
Remove this line:
github.com/LimeSurvey/LimeSurvey/blob/11..._Application.php#L87
The topic has been locked.
  • JamLizzy101
  • JamLizzy101's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145508 by JamLizzy101
Replied by JamLizzy101 on topic symlink(): Cannot create symlink, error code(1314)
Ok. That definitely had got it working. I can run through the installation now
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose