Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Blaž Lozej 5 posts 75 karma points
    Jun 08, 2022 @ 13:21
    Blaž Lozej
    0

    Template file paths not working on a linux server

    Hi, we are having trouble implementing the email studio on an Umbraco 9 site wich is hosted on a linux server. My guess is that your paths to templates are not set correctly in your code. Im appending a screen shot of the errors from the backoffice on our server.

    On our windows machines where we develop our solutions, everything works as expected.

    Errors in our backoffice

  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Jun 08, 2022 @ 13:29
    Markus Johansson
    0

    Hi!

    Have got some questions about this before, while the templates might be a simple fix other parts are not that easy. We have no explicit support for linux hosting at the moment and there is no roadmap towards if and when that will be supported.

    All the best!

  • Marko Tukić 2 posts 72 karma points
    Aug 12, 2022 @ 07:19
    Marko Tukić
    0

    Problem is only in paths, we managed to solve this temporarily with folowing command in docker. It is not pretty but it works :) I hope it helps you fix this properly.

    # escape=`
    RUN mkdir -p App_Plugins/newsletterStudio/backoffice && `
            mkdir -p App_Plugins/NewsletterStudio/backoffice && `
            mkdir -p App_Plugins/NewsletterStudio/common && `
            mkdir -p App_Plugins/newsletterStudio/common && `
            mkdir -p App_Plugins/newsletterStudio && `
            mkdir -p App_Plugins/newsletterStudio/themes/default/views && `
            mkdir -p App_Plugins/newsletterStudio/views && `
            mkdir -p App_Plugins/newsletterstudio && `
            mkdir -p umbraco/Data/TEMP/FileUploads/Data/TEMP && `
            cp -r App_Plugins/NewsletterStudio App_Plugins/newsletterStudio && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/ContentApps App_Plugins/newsletterStudio/backoffice/contentApps && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Dashboards App_Plugins/newsletterStudio/backoffice/dashboards && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Dialogs App_Plugins/newsletterStudio/backoffice/dialogs && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Dialogs App_Plugins/NewsletterStudio/backoffice/dialogs && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Installation App_Plugins/newsletterStudio/backoffice/installation && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Overlays App_Plugins/newsletterStudio/backoffice/overlays && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Overlays App_Plugins/NewsletterStudio/backoffice/overlays && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/PropertyEditors App_Plugins/newsletterStudio/backoffice/propertyEditors && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Section App_Plugins/newsletterStudio/backoffice/section && `
            cp -r App_Plugins/NewsletterStudio/Backoffice/Shared App_Plugins/newsletterStudio/backoffice/shared && `
            cp -r App_Plugins/NewsletterStudio/Common/Directives App_Plugins/NewsletterStudio/common/directives && `
            cp -r App_Plugins/NewsletterStudio/Common/Directives App_Plugins/newsletterStudio/common/directives && `
            cp -r App_Plugins/NewsletterStudio/Common/Partials App_Plugins/newsletterStudio/common/partials && `
            cp -r App_Plugins/NewsletterStudio/Lang App_Plugins/newsletterStudio/lang && `
            cp -r App_Plugins/NewsletterStudio/Themes/Default App_Plugins/newsletterStudio/themes/default && `
            cp -r App_Plugins/NewsletterStudio/Themes/Default/Views App_Plugins/newsletterStudio/themes/default/views && `
            cp -r App_Plugins/NewsletterStudio/Themes/Default/Views/Controls App_Plugins/newsletterStudio/themes/default/views/controls && `
            cp -r App_Plugins/NewsletterStudio/Themes/Default/Views/Macros App_Plugins/newsletterStudio/themes/default/views/macros && `
            cp -r App_Plugins/NewsletterStudio/Views App_Plugins/newsletterStudio/views && `
            cp -r App_Plugins/NewsletterStudio/Views/MacroPartials App_Plugins/newsletterStudio/views/macroPartials && `
            cp -r App_Plugins/NewsletterStudio/Backoffice App_Plugins/newsletterstudio/backoffice && `
            cp -r App_Plugins/NewsletterStudio/Themes/Default/theme.json App_Plugins/NewsletterStudio\\Themes\\Default\\theme.json && `
            ln -s ../../../../../../umbraco/Data/TEMP/FileUploads umbraco/Data/TEMP/FileUploads/Data/TEMP/FileUploads
    
  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Aug 12, 2022 @ 07:45
    Markus Johansson
    0

    Hi!

    Thanks for sharing a workaround!

    I've created a backlog ticket for this but at the moment the linux support is not the highest priority.

    Thanks for understanding.

    Cheers!

  • Bartosz Szadach 8 posts 72 karma points
    Oct 25, 2023 @ 18:05
    Bartosz Szadach
    0

    Hi Markus! Is there any news about linux support?

    All the best!

  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Oct 27, 2023 @ 04:32
    Markus Johansson
    0

    Hi!

    We have performed some work and tests but the ticket is still not high in priority. It’s to few that asks for it at the moment to make it prio 1.

    A vast majority of Umbraco projects still run on Windows-machines so it’s hard to justify the amount of work at this point.

    Sorry about this. Is it a requirement for you to run on Linux? What are you looking to use the package for?

    / m

  • Bartosz Szadach 8 posts 72 karma points
    Oct 27, 2023 @ 07:58
    Bartosz Szadach
    0

    Yes, we are trying to run whole website using Docker Linux container, we have almost everything working, there is only newsletter studio left with problems. I've managed to run it by doing some workarounds in code, but the issues that left at this moment are: 1. Themes are not loading 2. Contact import does not work

    Both of them probably have problems caused by case sensitive paths on Linux.

    //Bartosz

  • HannesCloudNine 3 posts 23 karma points
    Oct 27, 2023 @ 08:56
    HannesCloudNine
    0

    Hi, my colleague Bartosz and I are unfortunately in a tricky situation with one of our clients due to this issue. We did not realize the lack of Linux support and are now facing the decision of moving to Windows servers (with a substantial increase in hosting costs) or moving away from Newsletter Studio for another alternative.

    We are currently looking into workarounds for the issues we have encountered, but this is not a reliable and sustainable solution. We understand that Linux support might not be a priority at the moment, but an ETA of official Linux support would be much appreciated to help with this decision.

    Best regards, Hannes

  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Oct 27, 2023 @ 09:04
    Markus Johansson
    0

    Hi!

    I understand the situation, it would be far from optimal to have to run on Windows just because of this package.

    Are you trying the workaround that Marko Tukić posted in the thread? They might work differently depending on Umbraco-versions as many of the package-files has been moved into Razor Class Libraries in later versions with means that the "copy"-hack would not work.

    What version of Umbraco are you running on?

    Did you already buy a license for the package?

    We do offer paid support and feature work, if you would like to discuss this please reach out to me at info [at sign here] newsletterstudio.org.

    // Markus

  • Bartosz Szadach 8 posts 72 karma points
    Oct 27, 2023 @ 09:15
    Bartosz Szadach
    0

    We already tried Marko Tukić workaround, but it was not working in our case. Instead of this we catched all requests and modified paths related to Newsletter Studio files to fit them to real paths on server.

    We are using Umbraco 12.1.1.

    We do not have license yest, the purchase process is suspended until we fix all blocking issues on linux server.

    Bartosz

  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Oct 27, 2023 @ 11:51
    Markus Johansson
    0

    Hi!

    Thanks for letting me know!

    Since you are on v12 the package is shipped as a Razor Class Library which means that there are no files on disk that can be copied like this.

    It also "makes sense" that features that work with paths on disk (themes, import, etc) might suffer from the same problems.

    I got your PM about your individual case so let's talk more over email.

  • Markus Johansson 1911 posts 5756 karma points MVP c-trib
    Nov 06, 2023 @ 08:10
    Markus Johansson
    0

    Hi!

    Newsletter Studio 12.1.0 now have official support for linux, read more about this here:

    https://www.newsletterstudio.org/blog/running-on-linux-and-mac/

    https://www.newsletterstudio.org/documentation/package/12.1.0/other/linux-and-mac/

    Thank you to everyone who has been contributing valuable information in the thread and please feel free to reach out if you have any questions.

    // m

Please Sign in or register to post replies

Write your reply to:

Draft