Git Product home page Git Product logo

overleaf_ynh's Introduction

Overleaf for YunoHost

Integration level Working status Maintenance status

Install Overleaf with YunoHost

Lire ce readme en français.

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

Overview

Overleaf is an open-source online real-time collaborative LaTeX editor.

Shipped version: 2022.04.23~ynh1

Screenshots

Screenshot of Overleaf

Disclaimers / important information

To create the initial administrator account: https://yourdomain.com/launchpad

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/overleaf_ynh/tree/testing --debug
or
sudo yunohost app upgrade overleaf -u https://github.com/YunoHost-Apps/overleaf_ynh/tree/testing --debug

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

overleaf_ynh's People

Contributors

ericgaspar avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

overleaf_ynh's Issues

impossible to install on x86 (mongodb fails)

Describe the bug

Installation script fails

Context

  • Hardware: oracle vm with x86
  • YunoHost version: 11.2.3 stable
  • I have access to my server: *Through SSH
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: *no *

Steps to reproduce

  • installation through web or through cli
    sudo yunohost app install overleaf
    
    

Logs

Info: Installing overleaf...
Info: [+...................] > Validating installation parameters...
Info: [#+..................] > Storing installation settings...
Info: [##+.................] > Finding an available port...
Info: [###+................] > Installing dependencies...
Warning: update-language: texlive-base not installed and configured, doing nothing!
Warning: Running updmap-sys. This may take some time... done.
Warning: Running mktexlsr /var/lib/texmf ... done.
Warning: Building format(s) --all.
Warning: This may take some time... done.
Info: Installing MongoDB...
Info: Installing MongoDB Community Edition...
Warning: (this may take some time)
Warning: The service mongod didn't fully executed the action restart before the timeout.
Warning: Please find here an extract of the end of the log of the service mongod:
Warning: Aug 22 05:10:17 systemd[1]: Started MongoDB Database Server.
Warning: Aug 22 05:10:19 mongod[2052904]: {"t":{"$date":"2023-08-22T05:10:19.074Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"}
Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a
Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Aug 22 05:10:21 systemd[1]: mongod.service: Consumed 1.039s CPU time.
Warning: Aug 22 05:40:44 systemd[1]: Started MongoDB Database Server.
Warning: Aug 22 05:40:46 mongod[2064065]: {"t":{"$date":"2023-08-22T05:40:46.129Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"}
Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a
Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Aug 22 05:40:48 systemd[1]: mongod.service: Consumed 1.114s CPU time.
Warning: Aug 22 05:47:58 systemd[1]: Started MongoDB Database Server.
Warning: Aug 22 05:48:02 mongod[515]: {"t":{"$date":"2023-08-22T05:48:02.971Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"}
Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a
Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Aug 22 05:48:09 systemd[1]: mongod.service: Consumed 1.183s CPU time.
Warning: Aug 22 06:04:06 systemd[1]: Started MongoDB Database Server.
Warning: Aug 22 06:04:07 mongod[9006]: {"t":{"$date":"2023-08-22T06:04:07.258Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"-","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"}
Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Main process exited, code=exited, status=62/n/a
Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Failed with result 'exit-code'.
Warning: Aug 22 06:04:09 systemd[1]: mongod.service: Consumed 1.352s CPU time.
Warning: ---
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784925, "ctx":"initandlisten","msg":"Shutting down free monitoring"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"initandlisten","msg":"Shutting down the HealthLog"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"initandlisten","msg":"Shutting down the TTL monitor"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"initandlisten","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"initandlisten","msg":"Acquiring the global lock for shutdown"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"CONTROL", "id":4784930, "ctx":"initandlisten","msg":"Shutting down the storage engine"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"initandlisten","msg":"Shutting down journal flusher thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"initandlisten","msg":"Finished shutting down journal flusher thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"initandlisten","msg":"Shutting down checkpoint thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"initandlisten","msg":"Finished shutting down checkpoint thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"initandlisten","msg":"Deregistering all the collections"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.015+00:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"initandlisten","msg":"WiredTigerKVEngine shutting down"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"initandlisten","msg":"Shutting down session sweeper thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"initandlisten","msg":"Finished shutting down session sweeper thread"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.016+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"initandlisten","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,"}}
Warning: {"t":{"$date":"2023-08-22T06:04:09.093+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"initandlisten","msg":"WiredTiger closed","attr":{"durationMillis":77}}
Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"initandlisten","msg":"shutdown: removing fs lock..."}
Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
Warning: {"t":{"$date":"2023-08-22T06:04:09.094+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":62}}
Info: [####+...............] > Configuring system user...
Info: [#####+..............] > Creating a MongoDB database...
Warning: ynh_mongo_db: line 96: mongo: command not found
Error: Unable to install overleaf: An error occurred inside the app installation script
Info: The operation 'Install the 'overleaf' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230822-060227-app_install-overleaf' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - + db_pwd=**********
Info: DEBUG - + ynh_mongo_create_user --db_user=overleaf --db_pwd=********** --db_name=overleaf
Info: DEBUG - + ynh_mongo_exec --database=overleaf '--command=db.createUser( { user: "overleaf", pwd: "**********", roles: [ { role: "readWrite", db: "overleaf" } ] } );'
Info: DEBUG - + user=
Info: DEBUG - + password=
Info: DEBUG - + authenticationdatabase=
Info: DEBUG - + database=overleaf
Info: DEBUG - + host=
Info: DEBUG - + port=
Info: DEBUG - + eval=0
Info: DEBUG - + '[' -n '' ']'
Info: DEBUG - + password=
Info: DEBUG - + authenticationdatabase=
Info: DEBUG - + '[' -n '' ']'
Info: DEBUG - + '[' -n '' ']'
Info: DEBUG - + '[' -n overleaf ']'
Info: DEBUG - + database='use overleaf'
Info: DEBUG - + mongo --quiet
Info: WARNING - ynh_mongo_db: line 96: mongo: command not found
Info: DEBUG - + ynh_exit_properly
Warning: Removing the app after installation failure...
Info: [....................] > Loading installation settings...
Info: [+...................] > Stopping and removing the systemd service...
Info: [#+..................] > Removing logrotate configuration...
Info: [##+.................] > Removing the MongoDB database...
Warning: ynh_mongo_db: line 110: mongo: command not found
Warning: ynh_mongo_db: line 198: [: -lt: unary operator expected
Warning: ynh_mongo_db: line 96: mongo: command not found
Warning: ynh_mongo_db: line 96: mongo: command not found
Info: [###+................] > Removing app main directory...
Warning: ynh_secure_remove called with empty argument, ignoring.
Info: [####+...............] > Removing NGINX web server configuration...
Info: '/etc/nginx/conf.d/latex.ynh.fr.d/overleaf.conf' wasn't deleted because it doesn't exist.
Info: [#####+..............] > Removing dependencies...
Info: [######+.............] > Removing various files...
Info: '/var/log/overleaf' wasn't deleted because it doesn't exist.
Info: [#######+............] > Removing the dedicated system user...
Info: [########+...........] > Removal of overleaf completed
Error: The operation 'Install the 'overleaf' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20230822-060227-app_install-overleaf' to get help

Installation not working

Describe the bug

The app is not installing. :(

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.4
  • 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: 2022.04.23~ynh1

Steps to reproduce

I just hit install in the webadmin.

Expected behavior

Working installation.

Logs

YunoPaste-Log

Installation fails on Raspberry Pi 4 / cleanup does not remove apt repo(?)

Describe the bug

Installation does not work on a Raspberry Pi 4. Probably on ARM devices in general. After installation cleanup, if leaves a non-working apt repo for MongoDB non-arm devices. (Although I can not guarantee this hasn't been there before, I think this is not a coincidence)

Context

  • Hardware: Raspberry Pi 4
  • YunoHost version: 4.3.6.3
  • 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: default

Steps to reproduce

  • Install overleaf from the web interface on a Raspberry Pi 4. (or sudo yunohost app install overleaf)
  • Configuration is almost the default (anonymous access = yes, language = en)

Expected behavior

  • Either install the app or tell the user that it is not ARM compatible.
  • On failure, remove apt repo of e.g., MongoDB if this installation added it (proper cleanup).

Logs

  • https://paste.yunohost.org/raw/zovobayine

  • I wanted to see if the issue was a missing apt update and found this:

    $sudo apt update
    Ign:1 http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 InRelease
    Hit:2 http://archive.raspberrypi.org/debian buster InRelease                   
    Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease                
    Hit:4 http://forge.yunohost.org/debian buster InRelease                        
    Hit:5 http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 Release        
    Hit:6 https://packages.sury.org/php buster InRelease                      
    Reading package lists... Done                       
    Building dependency tree       
    Reading state information... Done
    All packages are up to date.
    N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 InRelease' doesn't support architecture 'armhf'
    

    It seems that this apt repo of MongoDB is simply not compatible with arm? This guide seems to be official and up-to-date on how to do it on ARM (on Ubuntu): https://www.mongodb.com/developer/products/mongodb/mongodb-on-raspberry-pi/

Use a full distribution of TexLive

Describe the bug

This template uses the apt version of tex-live which does not have a lot of necessary packages installed and no real way to install them.

Expected behavior

We should use the recommended method of installing tex live from https://tug.org, so that users can use all packages just like on a local machine.

Cannot upload files because folder 'user_files' is missing at install

Describe the bug

Cannot upload files because folder 'user_files' is missing at install

Context

  • Hardware: VPS bought online
  • YunoHost version: latest 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

Steps to reproduce

install app
create new project blank
try to upload a file
error

Expected behavior

upload file with no error

Logs

in the log filestore.log in /var/log there is mention of an error regarding the path /home/yunohost.app/overleaf/user_files

Solution

go in the path /home/yunohost.app/overleaf/
create the folder user_files
apply correct rights

all good

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.