GithubHelp home page GithubHelp logo

yunohost-apps / limesurvey_ynh Goto Github PK

View Code? Open in Web Editor NEW
6.0 7.0 11.0 55.13 MB

LimeSurvey package for yunoHost

Home Page: https://www.limesurvey.org/

License: GNU Affero General Public License v3.0

Shell 89.65% PHP 9.10% Jinja 1.26%
limesurvey yunohost poll yunohost-apps

limesurvey_ynh's Introduction

LimeSurvey for YunoHost

Integration level Working status Maintenance status

Install LimeSurvey with YunoHost

Lire ce readme en français.

This package allows you to install LimeSurvey quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

LimeSurvey is used to create advanced poll.

Shipped version: 5.6.8+230227~ynh1

Screenshots

Screenshot of LimeSurvey

Disclaimers / important information

YunoHost specific features

  • In private mode, only authorized YunoHost members can create poll, with the public mode, it's possible to create account to people with no YunoHost account.
  • SSO and LDAP are configured.
  • Login secured by fail2ban

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/limesurvey_ynh/tree/testing --debug
or
sudo yunohost app upgrade limesurvey -u https://github.com/YunoHost-Apps/limesurvey_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

limesurvey_ynh's People

Contributors

alexaubin avatar ericgaspar avatar jibec avatar maniackcrudelis avatar shnoulle avatar tituspijean avatar yalh76 avatar yunohost-bot avatar zamentur avatar zehiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

limesurvey_ynh's Issues

Unable to install

I am unable to install it on older and latest yunohost.

Current version: 2.6.4

Main issue was UnicodeDecodeError: 'ascii' codec can't decode byte

The trace is given below.

'yunohost app checkurl' is deprecated and will be removed in the future
Warning: Traceback (most recent call last):
Warning: File "", line 1, in
Warning: File "/usr/lib/python3.4/json/init.py", line 265, in load
Warning: return loads(fp.read(),
Warning: File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
Warning: return codecs.ascii_decode(input, self.errors)[0]
Warning: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 230: ordinal not in range(128)
Warning: Traceback (most recent call last):
Warning: File "", line 1, in
Warning: File "/usr/lib/python3.4/json/init.py", line 265, in load
Warning: return loads(fp.read(),
Warning: File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
Warning: return codecs.ascii_decode(input, self.errors)[0]
Warning: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 230: ordinal not in range(128)
Warning:
Warning: Database limesurvey not found
Warning: The user limesurvey was not found
Warning: E: Unable to locate package limesurvey-ynh-deps

Failed for Corrupt source

Limesurvey échoue à l'installation en raison d'une erreur avec la somme de contrôle !

Warning: yunohost.hook <lambda> - [746.1] Corrupt source

Dependency to python-pip ?

I don't know if this is a yunohost issue, or an issue specific to this app, but python-pip is only a 'Recommended' dependency of yunohost.

Hence on the stretch CI, the install fails because pip is not installed (dunno why recommended deps are not installed) :

Warning: moulinette.interface __call__ - 'yunohost app checkurl' is deprecated and will be removed in the future
Warning: yunohost.hook <lambda> - [812.1] 'yunohost app checkurl' is deprecated and will be removed in the future
Warning: yunohost.hook <lambda> - [812.1] sudo: pip: command not found
Warning: yunohost.hook <lambda> - [812.1] Database limesurvey not found
Warning: yunohost.hook <lambda> - [812.1] The user limesurvey was not found
Warning: yunohost.hook <lambda> - [812.1] E: Unable to locate package limesurvey-ynh-deps
Error: yunohost cli - Installation failed

Internal errors in YunoHost while installing LimeSurvey yunohost/issues#1084

Hello,

This is a copy/pasta from YunoHost/issues#1084

Original Redmine Issue: 1085

Author Name: win8linux


YunoHost encounters internal errors during installation of LimeSurvey. Below are the details from the webinterface.

Action

POST /apps


{"locale":"en","app":"limesurvey","args":"domain=garate.nohost.me&path=%2Fpoll&admin=sysadmin&language=en_GB","label":"LimeSurvey"}

Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/moulinette/interfaces/api.py", line 406, in process
    ret = self.actionsmap.process(arguments, timeout=30, route=_route)
  File "/usr/lib/python2.7/dist-packages/moulinette/actionsmap.py", line 495, in process
    return func(**arguments)
  File "/usr/lib/moulinette/yunohost/app.py", line 692, in app_install
    _check_manifest_requirements(manifest, app_id)
  File "/usr/lib/moulinette/yunohost/app.py", line 1735, in _check_manifest_requirements
    m18n.g('colon', m18n.n('app_incompatible'), app=app_instance_name),
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 205, in n
    return self._namespaces[self._current_namespace].translate(key, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/moulinette/core.py", line 92, in translate
    return self._translations[self.locale][key].encode('utf-8').format(*args, **kwargs)
KeyError: 'app'

Not working on 2.4

hi,
I got the following message trying to install the app on a 2.4 yunohost instance.

'L'application est incompatible avec votre version de YunoHost : Le paquet de l'application doit être mis à jour pour suivre les changements de YunoHost'

Usage of Permission for Yunohost users

New version add Auth Permission to allow (or not) a user to Authenticate via LDAP plugin or not.

Maybe this can be used to allow update user allowed to Authenticate ?
capture du 2017-01-18 23-38-14

This is OK for 'extra user' , but not for super admin user (the first created) : this one is always superadmin (user id == 1).

Then it can not really use (or not) AuthLDAP : an idea for this ? 1st user can not be deleted from YunoHost admin ? Or create another super admin user ? Inform 1st user another super admin was created during installation, give him the root email ?

upload folder is not right, uploading/using uploaded files are not working

Describe the bug

limesurvey defaults to /var/www/$app as / if I'm not wrong. But data files are located in /home/yunohost.app/$app/upload and this path linked to /var/www/$app/upload (linked as /var/www/$app/upload/upload). So:

  • Files uploading in /home/yunohost.app/$app/upload/... (symbolic linked as /var/www/$app/upload/upload/...)
  • When choosing image from editor (for creating survey questions), KCFinder finds /home/yunohost.app/$app/upload/surveys/{ID}/images/image.png succesfully.
  • After we choose image, limesurvey automatically places path /upload/surveys/{ID}/images/image.png to URL
  • BUT image preview/adding not working. Probably because of limesurvey root path / defaults to /var/www/$app but /var/www/$app/upload/surveys/{ID}/images/image.png is not right path
  • right path is: /var/www/$app/upload/upload/surveys/{ID}/images/image.png

Workaround

  • While using your files (tested on images), you choose a image from server and an image URL automatically pasted (/upload/surveys/{ID}/images/image.png). Add /upload as prefix to this path. (briefly use upload twice) /upload/upload/surveys.....

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.4 (stable)
  • I have access to my server: Through SSH | through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 5.6.8+230227~ynh1

Steps to reproduce

please see Describe the bug section above. But first create a survey, question group and question

Expected behavior

One click file uploading, one click file using

Related PRs

#85 - currently solved uploading problem but other problems(explained in this issue) are still persist

Fix the disappear limesurveys upstream issue

When LimeSurvey release a new version, they remove the old link.

So we need to put the github release.

It could be cool if the sha256sum is the same than the one give by LS...

Other domain : unable to use primary user

When use another domain : AuthWebserver are not default then not redirected to yh login.

But LimeSurvey disable user 1 access for LDAP even with activate LDAP : seems broken.

I look further : there are solution in config : auth_webserver_user_map :)

Next update of my devel version

Erreur à l'installation avec l'interface web

Bonjour,
L'installation ne fonctionne pas avec yunohost 2.6.5 le message d'erreur est le suivant:
L'application est incompatible avec votre version de YunoHost : Le paquet de l'application doit être mis à jour pour suivre les changements de YunoHost.
Je vais donc attendre une mise à jour.

Question avant pull request

Bonjour,

Comme déjà indiqué je compte reprendre et sans doute maintenir limesurvey_ynh si vous êtes daccord (et après avoir fait mes preuves). Cependant, j'hésite ....

Il ya 2 version en // de limesurvey

  1. La branche 2.5/2.6 : celle de limesurvey_ynh : intéressantes, mais oldy en terme de look, peu de bug, une sorte de lts
  2. La branche 2.5X : changement complet de look , existe depuis ~ 1an mais les précédents utilisateurs de LimeSurvey sont resté sur la branche 2.5/2.6. rencontre des bugs sur le coté public plus difficile à gérer que sur la 2.6

Il y a en plus : la branche 3.0 qui devrait sortir en alpha en janvier/février.

J'aurais tendance à passer sur une 2.6lts pour les mises à jours, éventuellement en modifiant le modèle par défaut (utilisation de SkeletonQuest plutot que le vieux modèle). Qu'en pensez vous ?

Unable to update

If i try to update via ssh :

# yunohost app upgrade limesurvey -u https://github.com/Shnoulle/limesurvey_ynh
Attention : /usr/share/yunohost/helpers.d/setting: ligne 17: $3 : variable sans liaison
Attention : 
Erreur : Impossible de mettre à jour limesurvey
Erreur : Aucune application à mettre à jour

Previous version : Shnoulle@ad00861
Actual version : Shnoulle@dfb9c66

Currently : the 2 version are unmodified version.

Another question : how to update from another branch (want to test some updating system).

No issue if i need to start by a clean install ...

No more admin access after upgrade

Hello, after updating limesurvey (from 3.17.1 ynh1 to 5.2.6 ynh2), I can't connect anymore to admin section.
I have a big survey in it, how can I connect back ?
Do I have to downgrade from a backup (to export the survey then reinstall a new limesurvey and try to import.
Thanks

Delete LimeSurvey account if yunohost user is deleted

Currently I just warn the yunoadmin to delete the user account in LimeSurvey

If the user is not the administrator we should delete it.

I would delete it via console.php command, but there is no commands to do that.

So a new LimeSurvey command should be created and added with a patch
Like the UpdateCommand we use to migrate DB https://github.com/YunoHost-Apps/limesurvey_ynh/blob/master/patches/app-0001-7ca4932.patch

@Shnoulle (or a LimeSurvey contrib) May be you are able to create a command like this ?

Login fails due to too many redirects

Hello,

I recently added a new user via the LDAP backend to my LimeSurvey instance, but can't login. If I login via SSO and the open the LimeSurvey admin panel, I get a browser error about too many redirects. This is quite strange, as I am currently logged in with another account. I'm also unsure about how to go about debugging this issue.

Fix the disappear limesurveys upstream issue

When LimeSurvey release a new version, they remove the old link.

So we need to put the github release.

It could be cool if the sha256sum is the same than the one give by LS...

How do you enable LDAP?

Hello! very nice port of limesurvey. only been able to see one issue.. but its a rather large one. when installing, only the user who installed it can log into it. so, i installed it on yunohost with user1... then it works and all. but then user2 comes on and it shows this
Screen Shot 2019-05-10 at 21 12 44

and.. well, no other users other than the first one are able to login. LDAP plugin seems to be disabled by default, but enabling it doesn't seem to do anything. i'm still not able to login with any other users so LDAP doesn't seem to be working.

User are not created when added in ynh management

Currently : using AuthDB : user connected to ynh with right on limesurvey (new rights) receiuve 401 when try to log in on admin part of limesurvey.
User without access are redirected to ynh home.

I take it for fixing it. Start by new setup, review update process after

Usage of upload directory ?

In install (and update) i see $upload_path : what is the usage ?

In fact LimeSurvey have some way to manage upload directory (and url) at different place .

It's to allow multiple install with only one sources files ?
If yes : can we read different config files for each installation ?

If yes : did it work currently or i can lost this dir during update ?

No more admin access

Hello, I use limesurvey from a short time, really appreciate it.
After adding an admin user, I don't have any more access to admin page from any yunohost user
Error "page is not well redirected"
Just the normal public page is working.
Any idea (I have a big survey in it) ?

Hard to make a limesurvey_ynh update of LS core

From @Shnoulle

Hi,

Actually limesurvey_ynh is a fork of github/limesurvey, but actually, i don't think it's realy a fork.

I want to fork t : i can only add it to LimeSurvey clone i have. It make hardest to update only LS core for example.

I think, but maybe it's a false good idea, it can be cleanest if:

  • limesurvey_ynh is a new project, include last build version of limesurvey for source
  • make it 'not updatable' in config (easy)
  • activate LDAP plugin and LDAP settings like you made it actually.
  • Make a new controller command inside LS to allow using updater (DB) from LS core (i can do it ;) ).
  • Update LS core is just : update sources + call this new controller.

I can start a new ls_ynh with your code if you'r OK, but i need to start from scatch and make copy/paste. I loose all GIT history ....

Denis

update

Please update to 2.06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.