Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

sync storage errors

  • Sin respuestas
  • 2 tienen este problema
  • 8 visitas
more options

hi all! i have problems setting up my own storage for firefox sync. i set up as described in the official howto but i get errors in my sync log:

x.x.x.x - - [08/Feb/2018:14:28:40 +0100] "GET /token/1.0/sync/1.5 HTTP/1.1" 200 563 x.x.x.x - - [08/Feb/2018:14:28:41 +0100] "GET /token/1.0/sync/1.5/storage/1.5/1/info/collections HTTP/1.1" 404 1

and in sync log i get this: 1518096517945 Sync.LogManager DEBUG Flushing file log 1518096517961 Sync.LogManager DEBUG Log cleanup threshold time: 1517232517961 1518096517967 Sync.LogManager DEBUG Done deleting files. 1518096559631 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:fxa_status 1518096559631 FirefoxAccounts DEBUG fxa_status received 1518096559631 FirefoxAccounts DEBUG service: sync 1518096559631 FirefoxAccounts DEBUG is private browsing: true 1518096563598 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:loaded 1518096563598 FirefoxAccounts WARN Unrecognized FxAccountsWebChannel command: fxaccounts:loaded 1518097033972 Sync.ErrorHandler DEBUG Beginning user-triggered sync. 1518097033972 Sync.Service DEBUG User-Agent: Firefox/58.0.2 (Windows NT 10.0; Win64; x64) FxSync/1.60.0.20180206200532.desktop 1518097033972 Sync.Service INFO Starting sync at 2018-02-08 14:37:13 in browser session goRQR-MbyCBQ 1518097033972 Sync.Service DEBUG In sync: should login. 1518097033973 Sync.Service INFO Logging in the user. 1518097033973 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok 1518097033973 Sync.Service DEBUG Caching URLs under storage user base: https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097033973 Sync.Service INFO User logged in successfully - verifying login. 1518097033973 Sync.BrowserIDManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys 1518097033973 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok 1518097033974 FirefoxAccounts DEBUG already verified 1518097033974 Sync.BrowserIDManager INFO Getting an assertion from: https://SERVER/token/1.0/sync/1.5 1518097033974 FirefoxAccounts DEBUG enter getAssertion() 1518097033975 FirefoxAccounts DEBUG getKeypairAndCertificate: already have keyPair and certificate 1518097033975 FirefoxAccounts DEBUG getAssertionFromCert 1518097033975 FirefoxAccounts DEBUG getAssertionFromCert returning signed: true 1518097033975 Sync.BrowserIDManager DEBUG Getting a token 1518097033976 Common.TokenServerClient DEBUG Beginning BID assertion exchange: https://SERVER/token/1.0/sync/1.5 1518097033976 Services.Common.RESTRequest DEBUG GET request to https://SERVER/token/1.0/sync/1.5 1518097033976 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097033976 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097033976 Services.Common.RESTRequest TRACE HTTP Header x-client-state: cdc794b9bd26b64f527f2387158874a2 1518097034113 Services.Common.RESTRequest TRACE onStartRequest: GET https://SERVER/token/1.0/sync/1.5 1518097034113 Services.Common.RESTRequest TRACE Channel for GET https://SERVER/token/1.0/sync/1.5 returned status code 0 1518097034114 Services.Common.RESTRequest DEBUG GET https://SERVER/token/1.0/sync/1.5 200 1518097034114 Services.Common.RESTRequest TRACE GET body: {"uid": 1, "hashalg": "sha256", "api_endpoint": "https://SERVER/token/1.0/sync/1.5/storage/1.5/1", "duration": 300, "key": "A3TPxs_d6i-enbkd_XiABpIDpjgqqM0D4q9_lFe2Hb4=", "hashed_fxa_uid": "ff5fca182e22911b6d527a7002621d55", "id": "eyJub2RlIjogImh0dHBzOi8vZnMuYXJlYTUyLmR0ZG5zLm5ldC90b2tlbi8xLjAvc3luYy8xLjUiLCAidWlkIjogMSwgImV4cGlyZXMiOiAxNTE4MDk3MzM4LCAiZnhhX3VpZCI6ICJmZjVmY2ExODJlMjI5MTFiNmQ1MjdhNzAwMjYyMWQ1NSIsICJzYWx0IjogIjM3YjQ3OCIsICJkZXZpY2VfaWQiOiAiNzBhMTUwODU5ODY5MGYzMTViMzFkMWEwNzhhMzIxYWEifatEQ4y3k5fo3t"} 1518097034114 Common.TokenServerClient DEBUG Got token response: 200 1518097034114 Common.TokenServerClient DEBUG Successful token response 1518097034114 Sync.BrowserIDManager DEBUG Successfully got a sync token 1518097034116 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1518097034116 FirefoxAccounts DEBUG getOAuthToken enter 1518097034117 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1518097034118 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1518097034118 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097034118 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097034118 Services.Common.RESTRequest TRACE HTTP Header if-none-match: "578bec8c3f0f2149347eb354195e643ca5561923-gzip" 1518097034129 Sync.Resource DEBUG mesg: GET fail 404 https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections 1518097034130 Sync.Resource DEBUG GET fail 404 https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections 1518097034130 Sync.Resource WARN GET request to https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections failed with status 404 1518097034130 Sync.BrowserIDManager DEBUG _findCluster has a pre-existing clusterURL, so discarding the current token 1518097034130 FirefoxAccounts DEBUG already verified 1518097034130 Sync.BrowserIDManager INFO Getting an assertion from: https://SERVER/token/1.0/sync/1.5 1518097034130 FirefoxAccounts DEBUG enter getAssertion() 1518097034131 FirefoxAccounts DEBUG getKeypairAndCertificate: already have keyPair and certificate 1518097034131 FirefoxAccounts DEBUG getAssertionFromCert 1518097034132 FirefoxAccounts DEBUG getAssertionFromCert returning signed: true 1518097034132 Sync.BrowserIDManager DEBUG Getting a token 1518097034132 Common.TokenServerClient DEBUG Beginning BID assertion exchange: https://SERVER/token/1.0/sync/1.5 1518097034133 Services.Common.RESTRequest DEBUG GET request to https://SERVER/token/1.0/sync/1.5 1518097034133 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097034133 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097034133 Services.Common.RESTRequest TRACE HTTP Header x-client-state: cdc794b9bd26b64f527f2387158874a2 1518097034140 Services.Common.RESTRequest TRACE onStartRequest: GET https://SERVER/token/1.0/sync/1.5 1518097034140 Services.Common.RESTRequest TRACE Channel for GET https://SERVER/token/1.0/sync/1.5 returned status code 0 1518097034140 Services.Common.RESTRequest DEBUG GET https://SERVER/token/1.0/sync/1.5 200 1518097034140 Services.Common.RESTRequest TRACE GET body: {"uid": 1, "hashalg": "sha256", "api_endpoint": "https://SERVER/token/1.0/sync/1.5/storage/1.5/1", "duration": 300, "key": "DmJcU_6U-nURzK-hI5Xihbb-QnZ91vKjADKlDz7npN8=", "hashed_fxa_uid": "ff5fca182e22911b6d527a7002621d55", "id": "eyJub2RlIjogImh0dHBzOi8vZnMuYXJlYTUyLmR0ZG5zLm5ldC90b2tlbi8xLjAvc3luYy8xLjUiLCAidWlkIjogMSwgImV4cGlyZXMiOiAxNTE4MDk3MzM4LCAiZnhhX3VpZCI6ICJmZjVmY2ExODJlMjI5MTFiNmQ1MjdhNzAwMjYyMWQ1NSIsICJzYWx0IjogImNiMmU4MiIsICJkZXZpY2VfaWQiOiAiNzBhMTUwODU5ODY5MGYzMTViMzFkMWEwNzhhMzIxYWEife38B-eo0"} 1518097034140 Common.TokenServerClient DEBUG Got token response: 200 1518097034140 Common.TokenServerClient DEBUG Successful token response 1518097034140 Sync.BrowserIDManager DEBUG Successfully got a sync token 1518097034141 Sync.BrowserIDManager DEBUG _findCluster returning https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097034141 Sync.BrowserIDManager DEBUG Cluster value = https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097034141 Sync.Status DEBUG Status.login: error.login.reason.network => error.login.reason.network 1518097034141 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1518097034142 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1518097034142 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. 1518097034142 Sync.ErrorHandler ERROR Sync encountered a login error 1518097034143 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network (resource://services-sync/service.js:844:15) JS Stack trace: onNotify@service.js:844:15 1518097034143 Sync.Service DEBUG Not syncing: login returned false.

my syncserver.ini looks like this:

[server:main] use = egg:gunicorn host = 192.168.0.1 port = 5000 workers = 1 timeout = 30

[app:main] use = egg:syncserver

[syncserver]

  1. This must be edited to point to the public URL of your server,
  2. i.e. the URL as seen by Firefox.

public_url = https://SERVER/token/1.0/sync/1.5

  1. This defines the database in which to store all server data.

sqluri = sqlite:///opt/syncserver/syncserver.db


  1. This is a secret key used for signing authentication tokens.
  2. It should be long and randomly-generated.
  3. The following command will give a suitable value on *nix systems:
  4. head -c 20 /dev/urandom | sha1sum
  5. If not specified then the server will generate a temporary one at startup.

secret = SECRET

  1. Set this to "false" to disable new-user signups on the server.
  2. Only request by existing accounts will be honoured.

allow_new_users = true

  1. Set this to "true" to work around a mismatch between public_url and
  2. the application URL as seen by python, which can happen in certain reverse-
  3. proxy hosting setups. It will overwrite the WSGI environ dict with the
  4. details from public_url. This could have security implications if e.g.
  5. you tell the app that it's on HTTPS but it's really on HTTP, so it should
  6. only be used as a last resort and after careful checking of server config.

force_wsgi_environ = true

[browserid]

  1. Uncomment and edit the following to use a local BrowserID verifier
  2. rather than posting assertions to the mozilla-hosted verifier.
  3. Audiences should be set to your public_url without a trailing slash.
  4. backend = tokenserver.verifiers.LocalVerifier
  5. audiences = https://localhost:5000

any idea how to fix this??? thx in advance snIP3r

hi all! i have problems setting up my own storage for firefox sync. i set up as described in the official howto but i get errors in my sync log: x.x.x.x - - [08/Feb/2018:14:28:40 +0100] "GET /token/1.0/sync/1.5 HTTP/1.1" 200 563 x.x.x.x - - [08/Feb/2018:14:28:41 +0100] "GET /token/1.0/sync/1.5/storage/1.5/1/info/collections HTTP/1.1" 404 1 and in sync log i get this: 1518096517945 Sync.LogManager DEBUG Flushing file log 1518096517961 Sync.LogManager DEBUG Log cleanup threshold time: 1517232517961 1518096517967 Sync.LogManager DEBUG Done deleting files. 1518096559631 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:fxa_status 1518096559631 FirefoxAccounts DEBUG fxa_status received 1518096559631 FirefoxAccounts DEBUG service: sync 1518096559631 FirefoxAccounts DEBUG is private browsing: true 1518096563598 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:loaded 1518096563598 FirefoxAccounts WARN Unrecognized FxAccountsWebChannel command: fxaccounts:loaded 1518097033972 Sync.ErrorHandler DEBUG Beginning user-triggered sync. 1518097033972 Sync.Service DEBUG User-Agent: Firefox/58.0.2 (Windows NT 10.0; Win64; x64) FxSync/1.60.0.20180206200532.desktop 1518097033972 Sync.Service INFO Starting sync at 2018-02-08 14:37:13 in browser session goRQR-MbyCBQ 1518097033972 Sync.Service DEBUG In sync: should login. 1518097033973 Sync.Service INFO Logging in the user. 1518097033973 Sync.Status DEBUG Status.service: error.login.failed => success.status_ok 1518097033973 Sync.Service DEBUG Caching URLs under storage user base: https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097033973 Sync.Service INFO User logged in successfully - verifying login. 1518097033973 Sync.BrowserIDManager DEBUG unlockAndVerifyAuthState already has (or can fetch) sync keys 1518097033973 Sync.Service DEBUG Fetching unlocked auth state returned success.status_ok 1518097033974 FirefoxAccounts DEBUG already verified 1518097033974 Sync.BrowserIDManager INFO Getting an assertion from: https://SERVER/token/1.0/sync/1.5 1518097033974 FirefoxAccounts DEBUG enter getAssertion() 1518097033975 FirefoxAccounts DEBUG getKeypairAndCertificate: already have keyPair and certificate 1518097033975 FirefoxAccounts DEBUG getAssertionFromCert 1518097033975 FirefoxAccounts DEBUG getAssertionFromCert returning signed: true 1518097033975 Sync.BrowserIDManager DEBUG Getting a token 1518097033976 Common.TokenServerClient DEBUG Beginning BID assertion exchange: https://SERVER/token/1.0/sync/1.5 1518097033976 Services.Common.RESTRequest DEBUG GET request to https://SERVER/token/1.0/sync/1.5 1518097033976 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097033976 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097033976 Services.Common.RESTRequest TRACE HTTP Header x-client-state: cdc794b9bd26b64f527f2387158874a2 1518097034113 Services.Common.RESTRequest TRACE onStartRequest: GET https://SERVER/token/1.0/sync/1.5 1518097034113 Services.Common.RESTRequest TRACE Channel for GET https://SERVER/token/1.0/sync/1.5 returned status code 0 1518097034114 Services.Common.RESTRequest DEBUG GET https://SERVER/token/1.0/sync/1.5 200 1518097034114 Services.Common.RESTRequest TRACE GET body: {"uid": 1, "hashalg": "sha256", "api_endpoint": "https://SERVER/token/1.0/sync/1.5/storage/1.5/1", "duration": 300, "key": "A3TPxs_d6i-enbkd_XiABpIDpjgqqM0D4q9_lFe2Hb4=", "hashed_fxa_uid": "ff5fca182e22911b6d527a7002621d55", "id": "eyJub2RlIjogImh0dHBzOi8vZnMuYXJlYTUyLmR0ZG5zLm5ldC90b2tlbi8xLjAvc3luYy8xLjUiLCAidWlkIjogMSwgImV4cGlyZXMiOiAxNTE4MDk3MzM4LCAiZnhhX3VpZCI6ICJmZjVmY2ExODJlMjI5MTFiNmQ1MjdhNzAwMjYyMWQ1NSIsICJzYWx0IjogIjM3YjQ3OCIsICJkZXZpY2VfaWQiOiAiNzBhMTUwODU5ODY5MGYzMTViMzFkMWEwNzhhMzIxYWEifatEQ4y3k5fo3t"} 1518097034114 Common.TokenServerClient DEBUG Got token response: 200 1518097034114 Common.TokenServerClient DEBUG Successful token response 1518097034114 Sync.BrowserIDManager DEBUG Successfully got a sync token 1518097034116 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1518097034116 FirefoxAccounts DEBUG getOAuthToken enter 1518097034117 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1518097034118 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1518097034118 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097034118 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097034118 Services.Common.RESTRequest TRACE HTTP Header if-none-match: "578bec8c3f0f2149347eb354195e643ca5561923-gzip" 1518097034129 Sync.Resource DEBUG mesg: GET fail 404 https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections 1518097034130 Sync.Resource DEBUG GET fail 404 https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections 1518097034130 Sync.Resource WARN GET request to https://SERVER/token/1.0/sync/1.5/storage/1.5/1/info/collections failed with status 404 1518097034130 Sync.BrowserIDManager DEBUG _findCluster has a pre-existing clusterURL, so discarding the current token 1518097034130 FirefoxAccounts DEBUG already verified 1518097034130 Sync.BrowserIDManager INFO Getting an assertion from: https://SERVER/token/1.0/sync/1.5 1518097034130 FirefoxAccounts DEBUG enter getAssertion() 1518097034131 FirefoxAccounts DEBUG getKeypairAndCertificate: already have keyPair and certificate 1518097034131 FirefoxAccounts DEBUG getAssertionFromCert 1518097034132 FirefoxAccounts DEBUG getAssertionFromCert returning signed: true 1518097034132 Sync.BrowserIDManager DEBUG Getting a token 1518097034132 Common.TokenServerClient DEBUG Beginning BID assertion exchange: https://SERVER/token/1.0/sync/1.5 1518097034133 Services.Common.RESTRequest DEBUG GET request to https://SERVER/token/1.0/sync/1.5 1518097034133 Services.Common.RESTRequest TRACE HTTP Header accept: application/json 1518097034133 Services.Common.RESTRequest TRACE HTTP Header authorization: ***** (suppressed) 1518097034133 Services.Common.RESTRequest TRACE HTTP Header x-client-state: cdc794b9bd26b64f527f2387158874a2 1518097034140 Services.Common.RESTRequest TRACE onStartRequest: GET https://SERVER/token/1.0/sync/1.5 1518097034140 Services.Common.RESTRequest TRACE Channel for GET https://SERVER/token/1.0/sync/1.5 returned status code 0 1518097034140 Services.Common.RESTRequest DEBUG GET https://SERVER/token/1.0/sync/1.5 200 1518097034140 Services.Common.RESTRequest TRACE GET body: {"uid": 1, "hashalg": "sha256", "api_endpoint": "https://SERVER/token/1.0/sync/1.5/storage/1.5/1", "duration": 300, "key": "DmJcU_6U-nURzK-hI5Xihbb-QnZ91vKjADKlDz7npN8=", "hashed_fxa_uid": "ff5fca182e22911b6d527a7002621d55", "id": "eyJub2RlIjogImh0dHBzOi8vZnMuYXJlYTUyLmR0ZG5zLm5ldC90b2tlbi8xLjAvc3luYy8xLjUiLCAidWlkIjogMSwgImV4cGlyZXMiOiAxNTE4MDk3MzM4LCAiZnhhX3VpZCI6ICJmZjVmY2ExODJlMjI5MTFiNmQ1MjdhNzAwMjYyMWQ1NSIsICJzYWx0IjogImNiMmU4MiIsICJkZXZpY2VfaWQiOiAiNzBhMTUwODU5ODY5MGYzMTViMzFkMWEwNzhhMzIxYWEife38B-eo0"} 1518097034140 Common.TokenServerClient DEBUG Got token response: 200 1518097034140 Common.TokenServerClient DEBUG Successful token response 1518097034140 Sync.BrowserIDManager DEBUG Successfully got a sync token 1518097034141 Sync.BrowserIDManager DEBUG _findCluster returning https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097034141 Sync.BrowserIDManager DEBUG Cluster value = https://SERVER/token/1.0/sync/1.5/storage/1.5/1/ 1518097034141 Sync.Status DEBUG Status.login: error.login.reason.network => error.login.reason.network 1518097034141 Sync.Status DEBUG Status.service: success.status_ok => error.login.failed 1518097034142 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1518097034142 Sync.SyncScheduler DEBUG Next sync in 3600000 ms. 1518097034142 Sync.ErrorHandler ERROR Sync encountered a login error 1518097034143 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: error.login.reason.network (resource://services-sync/service.js:844:15) JS Stack trace: onNotify@service.js:844:15 1518097034143 Sync.Service DEBUG Not syncing: login returned false. my syncserver.ini looks like this: [server:main] use = egg:gunicorn host = 192.168.0.1 port = 5000 workers = 1 timeout = 30 [app:main] use = egg:syncserver [syncserver] # This must be edited to point to the public URL of your server, # i.e. the URL as seen by Firefox. public_url = https://SERVER/token/1.0/sync/1.5 # This defines the database in which to store all server data. sqluri = sqlite:///opt/syncserver/syncserver.db # This is a secret key used for signing authentication tokens. # It should be long and randomly-generated. # The following command will give a suitable value on *nix systems: # # head -c 20 /dev/urandom | sha1sum # # If not specified then the server will generate a temporary one at startup. secret = SECRET # Set this to "false" to disable new-user signups on the server. # Only request by existing accounts will be honoured. allow_new_users = true # Set this to "true" to work around a mismatch between public_url and # the application URL as seen by python, which can happen in certain reverse- # proxy hosting setups. It will overwrite the WSGI environ dict with the # details from public_url. This could have security implications if e.g. # you tell the app that it's on HTTPS but it's really on HTTP, so it should # only be used as a last resort and after careful checking of server config. force_wsgi_environ = true [browserid] # Uncomment and edit the following to use a local BrowserID verifier # rather than posting assertions to the mozilla-hosted verifier. # Audiences should be set to your public_url without a trailing slash. #backend = tokenserver.verifiers.LocalVerifier #audiences = https://localhost:5000 any idea how to fix this??? thx in advance snIP3r