GithubHelp home page GithubHelp logo

Comments (4)

akbortoli avatar akbortoli commented on May 26, 2024 5

I've got the same issue, running hotel start gives me Load failed: 5: Input/output error on Big Sur.

Node: 15.5.1
Npm: 7.3.0
Hotel: 0.8.7

from hotel.

pgardella-globant avatar pgardella-globant commented on May 26, 2024

I have this error as well, but I was able to narrow it down to a single server which hotel was trying to start (which I'll call "wiki"). Looking in ~/.hotel/daemon.log, I saw the app which was erroring. Once I recognized the server, I removed it (hotel rm wiki) from the hotel config, and hotel started correctly.

When I run the "hotel start wiki" from the desktop for that server, I got an error from Node. So the error is not with hotel, but the specific server.

It may or not be related, but I also ran this during debugging, but I don't think that altered anything.
launchctl unload ~/Library/LaunchAgent/hotel.plist
launchctl load ~/Library/LaunchAgent/hotel.plist

from hotel.

pgardella-globant avatar pgardella-globant commented on May 26, 2024

Correction: I still get this error. Hotel must start and then crash, so you only get the error when you try to start it again. Then I see:

12:54:50 - Watching /Users/patrick.gardella/.hotel/servers
create /Users/patrick.gardella/.hotel/daemon.pid 9682
node:internal/fs/utils:879
  throw new ERR_INVALID_ARG_TYPE(
  ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (9682)
    at Object.writeFileSync (node:fs:2148:5)
    at Object.create (/Users/patrick.gardella/.nvm/versions/node/v16.14.0/lib/node_modules/hotel/lib/pid-file.js:18:13)
    at Object.<anonymous> (/Users/patrick.gardella/.nvm/versions/node/v16.14.0/lib/node_modules/hotel/lib/daemon/index.js:20:9)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'ERR_INVALID_ARG_TYPE'

I also removed the .hotel folder entirely to force a reinstallation.

Node: 16.14.0
Npm: 8.5.4
Hotel: 0.8.7

from hotel.

ArjunAce avatar ArjunAce commented on May 26, 2024

I am on Big Sur too, got the same error when I was on Node 14 (v14.20.0). When tried with Node 12 (v12.22.0) it worked correctly.

from hotel.

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.