question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade weirdly failed, and can't restart now

See original GitHub issue
 $ edgedb server upgrade --nightly                                         
The following commands will be run with elevated privileges using sudo:
    sudo apt-key add -
    sudo apt-get update
    sudo DEBIAN_FRONTEND=noninteractive _EDGEDB_INSTALL_SKIP_BOOTSTRAP=1 apt-get install -y edgedb-server-1-alpha8-dev5340
Depending on system settings sudo may now ask you for your password...
OK
Hit:1 http://tr.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://ppa.launchpad.net/atareao/telegram/ubuntu focal InRelease                                                             
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease                                                                       
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                   
Hit:5 http://tr.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                  
Hit:6 http://tr.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                
Hit:7 http://packages.microsoft.com/repos/vscode stable InRelease                                                                  
Hit:8 https://deb.nodesource.com/node_14.x focal InRelease                                                                         
Hit:9 https://download.docker.com/linux/ubuntu focal InRelease                                                                     
Hit:10 http://ppa.launchpad.net/webupd8team/haguichi/ubuntu bionic InRelease                                                       
Hit:11 https://cli.github.com/packages focal InRelease                                                               
Hit:12 https://repo.skype.com/deb stable InRelease                                                                   
Hit:13 https://packages.edgedb.com/apt focal InRelease                                         
Hit:14 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease
Hit:15 https://packages.edgedb.com/apt focal.nightly InRelease             
Hit:16 http://ppa.launchpad.net/openshot.developers/ppa/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/peek-developers/stable/ubuntu focal InRelease
Hit:19 http://ppa.launchpad.net/ubuntu-mozilla-daily/firefox-aurora/ubuntu focal InRelease
Hit:17 https://apt.llvm.org/focal llvm-toolchain-focal-11 InRelease
Reading package lists... Done
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.edgedb.com/apt focal InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.edgedb.com/apt focal.nightly InRelease' doesn't support architecture 'i386'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gconf-service gconf-service-backend gconf2-common libappindicator1 libaribb24-0 libbasicusageenvironment1 libc++1 libc++1-10
  libc++abi1-10 libcddb2 libdbusmenu-gtk4 libdvbpsi10 libebml4v5 libgconf-2-4 libgroupsock8 libixml10 liblirc-client0
  liblivemedia77 libmatroska6v5 libnfs13 libopenmpt-modplug1 libplacebo7 libprotobuf-lite17 libresid-builder0c2a libsdl-image1.2
  libsdl1.2debian libsidplay2 libspatialaudio0 libupnp13 libusageenvironment3 libva-wayland2 libxcb-xv0 vlc-bin vlc-data vlc-l10n
  vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output
  vlc-plugin-video-splitter vlc-plugin-visualization
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libnss-systemd libpam-systemd libsystemd0 systemd systemd-sysv systemd-timesyncd
Suggested packages:
  systemd-container
The following NEW packages will be installed:
  edgedb-server-1-alpha8-dev5340
The following packages will be upgraded:
  libnss-systemd libpam-systemd libsystemd0 systemd systemd-sysv systemd-timesyncd
6 upgraded, 1 newly installed, 0 to remove and 108 not upgraded.
Need to get 24,7 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Get:1 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnss-systemd amd64 245.4-4ubuntu3.4 [95,9 kB]
Get:2 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.4 [28,1 kB]
Get:3 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd-sysv amd64 245.4-4ubuntu3.4 [10,3 kB]
Get:4 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-systemd amd64 245.4-4ubuntu3.4 [186 kB]
Get:5 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 systemd amd64 245.4-4ubuntu3.4 [3.805 kB]
Get:6 https://packages.edgedb.com/apt focal.nightly/main amd64 edgedb-server-1-alpha8-dev5340 amd64 1.0a8.dev5340+g76e0688b-2021012101~focal.nightly [20,3 MB]
Get:7 http://tr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libsystemd0 amd64 245.4-4ubuntu3.4 [273 kB]
Fetched 24,7 MB in 6s (4.038 kB/s)                                                                                                 
(Reading database ... 280220 files and directories currently installed.)
Preparing to unpack .../0-libnss-systemd_245.4-4ubuntu3.4_amd64.deb ...
Unpacking libnss-systemd:amd64 (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Preparing to unpack .../1-systemd-timesyncd_245.4-4ubuntu3.4_amd64.deb ...
Unpacking systemd-timesyncd (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Preparing to unpack .../2-systemd-sysv_245.4-4ubuntu3.4_amd64.deb ...
Unpacking systemd-sysv (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Preparing to unpack .../3-libpam-systemd_245.4-4ubuntu3.4_amd64.deb ...
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Preparing to unpack .../4-systemd_245.4-4ubuntu3.4_amd64.deb ...
Unpacking systemd (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Preparing to unpack .../5-libsystemd0_245.4-4ubuntu3.4_amd64.deb ...
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.4) over (245.4-4ubuntu3.3) ...
Setting up libsystemd0:amd64 (245.4-4ubuntu3.4) ...
Selecting previously unselected package edgedb-server-1-alpha8-dev5340.
(Reading database ... 280220 files and directories currently installed.)
Preparing to unpack .../edgedb-server-1-alpha8-dev5340_1.0a8.dev5340+g76e0688b-2021012101~focal.nightly_amd64.deb ...
Unpacking edgedb-server-1-alpha8-dev5340 (1.0a8.dev5340+g76e0688b-2021012101~focal.nightly) ...
Setting up edgedb-server-1-alpha8-dev5340 (1.0a8.dev5340+g76e0688b-2021012101~focal.nightly) ...
Setting up systemd (245.4-4ubuntu3.4) ...
Installing new version of config file /etc/dhcp/dhclient-enter-hooks.d/resolved ...
Setting up systemd-timesyncd (245.4-4ubuntu3.4) ...
Setting up systemd-sysv (245.4-4ubuntu3.4) ...
Setting up libnss-systemd:amd64 (245.4-4ubuntu3.4) ...
Setting up libpam-systemd:amd64 (245.4-4ubuntu3.4) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
WARNING 415402 2021-01-21 21:26:48,635 py.warnings: /usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha8-dev5340/lib/python3.8/site-packages/edb/server/main.py:606: DeprecationWarning: Option `--default-database-user` is deprecated. Role `edgedb` is always created and no role named after unix user is created any more.
  warnings.warn(

WARNING 415402 2021-01-21 21:26:48,636 py.warnings: /usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha8-dev5340/lib/python3.8/site-packages/edb/server/main.py:621: DeprecationWarning: Option `--default-database` is deprecated. Database `edgedb` is always created and no database named after unix user is created any more.
  warnings.warn(

INFO 415402 2021-01-21 21:26:48,636 edb.server: EdgeDB server (1.0-alpha.8+dev.5340.g76e0688b) starting.
INFO 415402 2021-01-21 21:26:49,451 edb.server.pgcluster: Initializing database cluster in /home/isidentical/.local/share/edgedb/data/default
INFO 415402 2021-01-21 21:26:51,787 edb.server: Creating template database...
INFO 415402 2021-01-21 21:26:53,860 edb.server: Creating the necessary PostgreSQL extensions...
INFO 415402 2021-01-21 21:26:53,871 edb.server: Initializing the standard library...
INFO 415402 2021-01-21 21:26:58,203 edb.server: Creating database: __edgedbsys__
INFO 415402 2021-01-21 21:26:59,314 edb.server: Creating database: edgedb
INFO 415402 2021-01-21 21:26:59,884 edb.server: Restarting server to reload configuration...
INFO 415402 2021-01-21 21:27:01,490 edb.server: Serving on 127.0.0.1:10700
INFO 415402 2021-01-21 21:27:01,490 edb.server: Serving on /run/user/1000/edgedb-default/.s.EDGEDB.10700
INFO 415402 2021-01-21 21:27:01,490 edb.server: Serving admin on /run/user/1000/edgedb-default/.s.EDGEDB.admin.10700
WARNING: unsolicited message LogMessage(LogMessage { severity: Notice, code: 4026531840, text: "server restart is required for the configuration change to take effect", attributes: {} })
INFO 415402 2021-01-21 21:27:02,781 edb.server: Shutting down.
edgedb error: failed to restore "default": error applying init file "/home/isidentical/.local/share/edgedb/data/default.dump/init.edgeql": failed statement "CONFIGURE SYSTEM SET query_work_mem := \'\"6144kB\"\';": ERROR: InvalidValueError: invalid value for parameter "work_mem": ""6144kB""
(.venv) (Python 3.10.0a4+) [  9:27ÖS ]  [ isidentical@desktop:~ ]
 $ edgedb -Idefault               
edgedb error: Connection refused (os error 111)
(.venv) (Python 3.10.0a4+) [  9:28ÖS ]  [ isidentical@desktop:~ ]
 $ edgedb server restart default  
(.venv) (Python 3.10.0a4+) [  9:29ÖS ]  [ isidentical@desktop:~ ]
 $ edgedb -Idefault             
edgedb error: ERROR: InternalServerError: relation "edgedbss.0f06fc00-3ce1-11eb-94c7-09385bb1572d_t" does not exist
  Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md
  Server traceback:
      edb.errors.InternalServerError: relation "edgedbss.0f06fc00-3ce1-11eb-94c7-09385bb1572d_t" does not exist

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
tailhookcommented, Jan 22, 2021

Sure, something like this:

Thanks, restored successfully! Though upgrading failed (I also tried this after restarting, still same)

 $ edgedb -Idefault restore --all /home/isidentical/.local/share/edgedb/data/default.dump/ --allow-non-empty
WARNING: unsolicited message LogMessage(LogMessage { severity: Notice, code: 4026531840, text: "server restart is required for the configuration change to take effect", attributes: {} })
WARNING: unsolicited message LogMessage(LogMessage { severity: Debug, code: 4026531840, text: "received configuration reload request", attributes: {} })
WARNING: unsolicited message LogMessage(LogMessage { severity: Debug, code: 4026531840, text: "received configuration reload request", attributes: {} })
edgedb error: restoring database "reiz_testing": Error initiating restore protocol: ERROR: SchemaError: ObjectType <QualName ast::AST> is already present in the schema <FlatSchema gen:1 at 0x7f3b96ee3490>

This error means you’re restoring into a database that already contanins schema/data. Try restoring into a new one. Or you can drop and recreate default, but backup the dump before issuing edgedb destroy default.

1reaction
elpranscommented, Jan 21, 2021

This looks like #1533. It’s been fixed in master, although older versions are still affected. I’ll look into backporting the fix to a7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 update failed now reboot loop won't reboot how ...
If that does not work. Go to a working computer, download, create a bootable copy, then perform a clean install.
Read more >
Windows won't update? Fix it fast! - YouTube
But the fact remains that if you can't update Windows due to some cryptic error message, you're still in trouble. You're missing out...
Read more >
Quick-fixes for "Mac won't update" issue - Setapp
Here's how to update OS on Mac at any time: Go to System Preferences > Software Update. If there's a MacBook update available,...
Read more >
Cannot upgrade from Mountain Lion higher. - Apple Community
I've had to clean install Mountain Lion (through factory reset), after a power outage wiped my hard drive. I've been unable to connect...
Read more >
A1708 MBP does not always reboot after installing a custom ssd
When you get an update and the computer needs to reboot, it doesn't reboot automatically. I have to have the power cord disconnected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found