GithubHelp home page GithubHelp logo

Comments (5)

piegamesde avatar piegamesde commented on June 12, 2024 1

So I found the root cause for the issue: morph does not check for whether the architecture for which the configuration was built is correct. The configuration will then contain a shebang to a wrong binary, which will lead to failure. A preliminary check would catch this gracefully.


To the error message, this is a bug in Bash (actually, they say it's not because it's specified in POSIX, so one could call it a bug in POSIX): If the execution of a shebang fails, Bash will try to interpret the file directly. Of course this makes no sense, and since our file is a perl script we thus get the use: command not found error message.

from morph.

piegamesde avatar piegamesde commented on June 12, 2024

So the root cause remains: the perl from the activation script's shebang is compiled for x86_64 Linux, although the hardware is aarch64. Executing the activation script manually gives me zsh: exec format error instead, which makes a lot more sense. However, when executing from a bash I get the stupid error message again. WTF?

from morph.

pinkisemils avatar pinkisemils commented on June 12, 2024

Do you have any good tips for recovering a host that has been morphed with the wrong architecture?
switch-to-configuration is now borked on an x86 host after I mistakenly pushed an aarch64 config, so the zstd on it is not executable.

from morph.

piegamesde avatar piegamesde commented on June 12, 2024

No, I was fortunate enough that the activation script was in Perl and thus failed before it could do any harm. You may try executing the activation script in emulation mode (with binfmt), but I can't guarantee this will work or even is a good idea. Personally, I'd try to manually force it some new configuration and then morph deploy it over.

from morph.

pinkisemils avatar pinkisemils commented on June 12, 2024

I copied over the activation script from a previous generation and that made it happy to deploy again.

from morph.

Related Issues (20)

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.