Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on DB restore #309

Closed
owocki opened this issue Jan 29, 2018 · 10 comments
Closed

Error on DB restore #309

owocki opened this issue Jan 29, 2018 · 10 comments

Comments

@owocki
Copy link
Contributor

owocki commented Jan 29, 2018

Using the restore database script:

ERROR:  invalid input syntax for type json
DETAIL:  Token ""https://api.github.com/users/asp2insp" is invalid.
CONTEXT:  JSON data, line 1: ...81, "url": "https://api.github.com/users/asp2insp
COPY dashboard_profile, line 1588, column repos_data: "[{"id": 26566746, "url": "https://api.github.com/repos/asp2insp/cuckoofilter", "fork": false, "name"..."
@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

if i just remove this line (the one with asp2insp in it)... it works

@mbeacom
Copy link
Contributor

mbeacom commented Jan 29, 2018

@owocki Is this while running restore_backup.bash ?

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

yes!

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

off of the AWS backups

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

maybe a postgres veresioning thing? im running 9.6 locally.. prod is running 9.5

@mbeacom
Copy link
Contributor

mbeacom commented Jan 29, 2018

Eh. We're running 10.1 in the docker stack 😁 - We should try to get everything on the same version for parity.

The above issue shouldn't have to do with the version difference, though. We could implement a function on PSQL and call it to validate the json, if not, to_json it or default to null or something?

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

tried deleting that row.. now getting an error:

ERROR:  invalid input syntax for type json
DETAIL:  The input string ended unexpectedly.
CONTEXT:  JSON data, line 1: ...ttps://api.github.com/repos/arzynik/ccxt", "fork"
COPY dashboard_profile, line 1561, column repos_data: "[{"id": 15012260, "url": "https://api.github.com/repos/arzynik/cheryl", "fork": false, "name": "cher..."

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

i suspect that the JSON data in the DB dump is just too long and that is somehow choking the restore script...

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

ah you know what.. i think this is the issue:

from the output logs:

pg_dump: [archiver] could not write to output file: No space left on device

We need monitoring on these servers to warn of things like this!

@owocki
Copy link
Contributor Author

owocki commented Jan 29, 2018

1c8e47b is a workaround here

see also #310

@owocki owocki closed this as completed Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants