jackyzy823 / fxa-selfhosting

Selfhosting your own Firefox Accounts (FxA)!
Mozilla Public License 2.0
96 stars 13 forks source link

Upgrade from 9906e92 to master - errors #20

Closed Perlover closed 10 months ago

Perlover commented 10 months ago

I have now switched to the master branch after the update (previous commit was 9906e9242293c062ba7f62828de76f21479c71dd), but I am unable to start the service. For example, in the logs I see this (ee4913c71433d26d52b729bd6766f2e90d1f8c04 and a9655303c0c24c73840292a85f5c963757e0d3f3):

node:internal/modules/cjs/loader:988
  throw err;
  ^

Error: Cannot find module '/fxa/packages/fxa-graphql-api/dist/packages/fxa-graphql-api/src/main.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
    at Function.Module._load (node:internal/modules/cjs/loader:833:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:22:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

When I try to log ing in my server as user I see the error "NetworkError when attempting to fetch resource"

If I click from Firefox to manage my account menu I get the following page with error:

General application error

Something went wrong. Please try again later
Perlover commented 10 months ago

The mistake was on my side.

There was an old version of fxa_version in my config.yml file. Once I manually changed to string "v1.273.1" and restarted init.sh I was able to upgrade normally!