HedgeDoc Update Fails 1.9.5 -> 1.9.6

My YunoHost server

**Hardware: Raspberry Pi 4 with 4Gb
YunoHost version: 11.1.0.2
**I have access to my server : Through SSH or WebAdmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

When I check for updates I am told there is an update to HedgeDoc:

Docs (hedgedoc) from 1.9.5~ynh1 to 1.9.6~ynh1

When I try to install there is a cascade of errors and the install fails
https://paste.yunohost.org/raw/idilohobiq (log for the failed update)

The update attempt backs out safely. I am also unable to install a second instance on a different domain on the same server.
https://paste.yunohost.org/raw/dezuruvebi (log of failed install)

I’ve now worked my way through the log and find it appears to be some action involving yarn that fails, but I do not have the necessary skills to work out how to fix it. I have run all the recommended commands in the log files but it still won’t upgrade. Most recent log:
https://paste.yunohost.org/raw/wupiwipuqa

Issue is at line
2022-11-16 09:46:35,895: WARNING - error Command failed.

At this point I don’t know what to try to fix it any more.

It is very strange, the error say you can’t git pull. Why in the script you need git pull ??

Command: git
2022-11-16 09:46:35,900: WARNING - Arguments: pull
2022-11-16 09:46:35,902: WARNING - Directory: /usr/local/share/.cache/yarn/v6/.tmp/f288a63eaa4f5075285a1b09fb58c8f0
2022-11-16 09:46:35,904: WARNING - Output:
2022-11-16 09:46:35,906: WARNING - error: Pulling is not possible because you have unmerged files.
2022-11-16 09:46:35,908: WARNING - hint: Fix them up in the work tree, and then use 'git add/rm <file>'
2022-11-16 09:46:35,910: WARNING - hint: as appropriate to mark resolution and make a commit.
2022-11-16 09:46:35,913: WARNING - fatal: Exiting because of an unresolved conflict.

Do you have use git to push yours modifications ??

Looks like it’s not just you I’m running into the same issue here trying to update HedgeDoc.

2022-11-19 23:44:41,646: WARNING - fatal: Exiting because of an unresolved conflict.

I have the exact same error with the same update.

Same problem with upgrade… Hedgedoc is now totaly down ( Welcome to nginx!)
https://paste.yunohost.org/raw/utasokopot

Update: HedgeDoc running (version 1.9.4) after a star/stop

Solution found on Github

Connected to the server with SSH and using CLI:

sudo yarn cache clean

sudo yunohost app upgrade hedgedoc

Now Hedgedoc is up and running

3 Likes

Thanks for passing along this info! This worked for me as well! :tada: :raised_hands: :smiley:

Unfortunately it did not fix things here. I have tried removing and reinstalling HedgeDoc now, and I can’t get it to install either - I had to restore the backup to get working. I wonder if it is related to the false “upgrade” to 11.1.

It worked for me! It did not go without bumps in the road, but it worked…

admin@YNH:~$ sudo yarn cache clean
yarn cache v1.22.19
success Cleared cache.
Done in 10.52s.
admin@YNH:~$ sudo yunohost app upgrade hedgedoc
Info: Now upgrading hedgedoc...
Info: [....................] > Loading installation settings...
Info: [....................] > Ensuring downward compatibility...
Info: [++++................] > Backing up HedgeDoc before upgrading (may take a while)...
Info: [####................] > Stopping a systemd service...
Info: [####................] > Making sure dedicated system user exists...
Info: [####+++.............] > Upgrading source files...
Info: [#######+............] > Upgrading NGINX web server configuration...
Info: [########+++.........] > Upgrading dependencies...
Info: [###########++++++...] > Building HedgeDoc... (this will take some time and resources!)
Warning: warning @rollup/plugin-buble > @types/buble > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
Warning: warning @rollup/plugin-buble > buble > acorn-dynamic-import@4.0.0: This is probably built in to whatever tool you're using. If you still need it... idk
Warning: 
Warning: src/codemirror.js → lib/codemirror.js...
Warning: (!) Circular dependencies
Warning: src/display/focus.js -> src/display/selection.js -> src/display/focus.js
Warning: src/display/highlight_worker.js -> src/display/operations.js -> src/display/scrollbars.js -> src/display/scrolling.js -> src/display/highlight_worker.js
Warning: src/display/line_numbers.js -> src/display/update_display.js -> src/display/highlight_worker.js -> src/display/operations.js -> src/display/scrollbars.js -> src/display/scrolling.js -> src/display/line_numbers.js
Warning: ...and 4 more
Warning: created lib/codemirror.js in 3.5s
Warning: 
Warning: src/addon/runmode/runmode-standalone.js → addon/runmode/runmode-standalone.js...
Warning: created addon/runmode/runmode-standalone.js in 115ms
Warning: 
Warning: src/addon/runmode/runmode.node.js → addon/runmode/runmode.node.js...
Warning: created addon/runmode/runmode.node.js in 116ms
Warning: npm notice
Warning: npm notice New major version of npm available! 8.19.2 -> 9.2.0
Warning: npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.2.0>
Warning: npm notice Run `npm install -g npm@9.2.0` to update!
Warning: npm notice
Warning: warning " > connect-session-sequelize@7.1.5" has incorrect peer dependency "sequelize@>= 6.1.0".
Info: [#################+..] > Configuring a systemd service...
Info: [##################+.] > Integrating service in YunoHost...
Info: [###################.] > Starting a systemd service...
Info: The service hedgedoc has correctly executed the action start.
Info: [###################.] > Reloading NGINX web server...
Info: [####################] > Upgrade of hedgedoc completed
Success! hedgedoc upgraded
Success! Upgrade complete

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.