Welcome to the LimeSurvey Community Forum

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

Problem with the generation of assets in tmp

  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145473 by florianfish
Hello, i do an update to the last version, and after the assets have problem, with firebug it says 403 forbidden for css, js and img.

I have tested to do a new installation and i have the same problem. I have the same problem in the installer !

Help me pleasse ! I hosted limesurvey on OVH mutualisé.
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago #145480 by LouisGac
Replied by LouisGac on topic Problem with the generation of assets in tmp
Here my bet:
You set the tmp folder to use the OVH one, which is not accessible from web navigation.
You should set the tmp directory inside your web directory.
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145481 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
Here is the tmp folder, is normally accessible from the web : a-p-c-t.fr/enquetes/tmp/

I don't understand how to resolve that... Everything worked well before the comfort update :(

Thanks,
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago #145482 by LouisGac
Replied by LouisGac on topic Problem with the generation of assets in tmp
a-p-c-t.fr/enquetes/tmp/assets/3da0f2cd/...font-awesome.min.css
Forbidden

probably just a right permission problem (mode on file system, or apache configuration)
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145483 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
When i set directory permission recursive to tmp, it says error for the symbolik link inside...
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago - 7 years 3 months ago #145484 by LouisGac
Replied by LouisGac on topic Problem with the generation of assets in tmp
normally, you should fix that by changing the apache conf. But you can't do it on a OVH mutualisé.
How is that you have simlinks in tmp ? Normally, by default, asset manager copy the assets. There is a special setting to force it to symlinks.

In application/config/internal.php:
github.com/LimeSurvey/LimeSurvey/blob/ma...ternal.php#L107-L111

try to add:
'linkAssets'=>false
Code:
        'assetManager' => array(
            'excludeFiles' => array("lot of things" ),
            'baseUrl' => '/tmp/assets',
            'basePath'=> 'lot of things',
            'linkAssets'=>false
        ),
Last edit: 7 years 3 months ago by LouisGac.
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145486 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
i tried it, but i have the same result. Symbolic link are created not they are forbidden when publicly acces...
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago #145487 by LouisGac
Replied by LouisGac on topic Problem with the generation of assets in tmp
ok can you check what directory is a symbolic link? Is it the tmp folder itself? or the asset directories in it?
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145488 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
Ideally, it would copy the assets without making a symbolic link
The topic has been locked.
  • LouisGac
  • LouisGac's Avatar
  • Visitor
  • Visitor
7 years 3 months ago - 7 years 3 months ago #145489 by LouisGac
Replied by LouisGac on topic Problem with the generation of assets in tmp
No it's ok, I get it....
Markus did a push that broke it :silly:

For now, just remove that line (or set it to false):
///https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/LSYii_Application.php#L87
Links no more valid. Remove:
github.com/LimeSurvey/LimeSurvey/blob/11..._Application.php#L87

It will be fixed in next release
Last edit: 7 years 3 months ago by LouisGac.
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145490 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
show the attachment
Attachments:
The topic has been locked.
  • florianfish
  • florianfish's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #145494 by florianfish
Replied by florianfish on topic Problem with the generation of assets in tmp
Thank you Markus for losing a half day :) You owe me a beer: p
The following user(s) said Thank You: LouisGac
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose