toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Fresh Toolkit Install Cannot Recompile on error without clearing cache

Open ssaunders9 opened this issue 2 years ago • 9 comments

Steps to Reproduce

  1. Follow QuickStart with only change being SHARELATEX_LISTEN_IP to local IP and version to 4.0.1 as 4.0.2 doesn't seem to exist.
  2. Setup admin user
  3. Login to admin user
  4. New project: Example project
  5. Compile (Generally works)
  6. Make a change that will result in error (e.g. \s anywhere ) image
  7. compile (expected behavior a))
  8. compile again (expected behavior b))

Expected Behaviour (as occurs on overleaf.com)

a) Compile finishes with error identified b) Upon recompile with no changes, compile finishes with error identified

Observed Behaviour

a) Compile finishes with error identified b) Upon recompile with no changes, compile FAILS with error identified. This is usually "No PDF This compile didn’t produce a PDF. This can happen if:..."
image

Clearing Cache and temp files works permits the compile to start from scratch with error identified

Context

This is occurring on a fresh install. I have a large project that often needs one or two extra compiles, or need to refresh cross references.

Compile only finishes (and identifies error) if a change is made to the document.

Long compiles are also stopping in the web browser, but continues in the background. Sometimes the compiles loop? If I run a compile in the shell, it finishes correctly.

This does not seem to be overleaf/sharelatex version dependent. trying 3.5.7 results in the same behavior which makes me think it is toolkit/mongo/redis/docker related.

Technical Info

  • URL: https:// <<local IP or hostname>>
  • Browser Name and version: Chrome 113
  • Operating System and version (desktop or mobile): Windows 11, (install is on ubuntu 22)
  • Signed in as: N/A
  • Project and/or file: N/A

Analysis

This is occurring on two different installs on two different machines. I'm not sure if this is a overleaf issue or docker issue.

ssaunders9 avatar Jun 10 '23 21:06 ssaunders9

I have this issue when going from one project into another - even if the project doesn't have any errors. It is also a fresh install with toolkit. Clearing the cache helps and the PDF is generated without any errors.

jazzdd86 avatar Feb 21 '24 06:02 jazzdd86

How to clean the cache?

arielgoes avatar Jun 07 '24 16:06 arielgoes

When opening any project in this version 5.1.1 of the Toolkit, the behavior is the same. It shows this 'error' stating that it cannot produce the PDF. I was wondering if this is the expected behavior, since nothing has changed since the last compilation, forcing us to clear the cache to trigger a new compilation.

romuluc avatar Sep 18 '24 00:09 romuluc

I'm seeing the same on 5.1.1, have to use "Recompile from scratch" after opening each document, after which it compiles and runs normally

SteffeyDev avatar Sep 19 '24 15:09 SteffeyDev

Problem went away after installing collection-fontsrecommended and collection-latexrecommended

SteffeyDev avatar Sep 19 '24 15:09 SteffeyDev

Problem went away after installing collection-fontsrecommended and collection-latexrecommended

Hello @SteffeyDev,

I have installed the schema-full as shown in the documentation: https://github.com/overleaf/toolkit/blob/master/doc/ce-upgrading-texlive.md

Could the issue be related to this version of Tex Live?

package:     scheme-full
category:    Scheme
shortdesc:   full scheme (everything)
longdesc:    This is the full TeX Live scheme: it installs everything available.
installed:   Yes
revision:    54074
sizes:       3943937k
relocatable: No


root@371f7847eca3:/overleaf# tlmgr info collection-fontsrecommended
package:     collection-fontsrecommended
category:    Collection
shortdesc:   Recommended fonts
longdesc:    Recommended fonts, including the base 35 PostScript fonts, Latin Modern, TeX Gyre, and T1 and other encoding support for Computer Modern, in outline form.
installed:   Yes
revision:    54074
sizes:       163705k
relocatable: No

root@371f7847eca3:/overleaf# tlmgr info collection-latexrecommended
package:     collection-latexrecommended
category:    Collection
shortdesc:   LaTeX recommended packages
longdesc:    A collection of recommended add-on packages for LaTeX which have widespread use.
installed:   Yes
revision:    71527
sizes:       30025k
relocatable: No


Any clue on how I can debug it?

Thanks!

romuluc avatar Sep 20 '24 17:09 romuluc

I'm not sure, I don't know much about this. For now its fixed for me. The only change I made from base 5.1.1 image was installing those two recommended and a handful of single packages.

SteffeyDev avatar Sep 20 '24 17:09 SteffeyDev