Setup with PostgreSQL error(s) #3469

Closed
opened 2020-01-29 14:17:03 +01:00 by klaudiadottv · 1 comment
klaudiadottv commented 2020-01-29 14:17:03 +01:00 (Migrated from github.com)

I tried to install a new redbot with postgresql and when i ran the "redbot " command that happened:

The main bot task didn't handle an exception and has crashed
Traceback (most recent call last):
  File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/__main__.py", line 419, in red_exception_handler
    red_task.result()
  File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/__main__.py", line 306, in run_bot
    await driver_cls.initialize(**data_manager.storage_details())
  File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/core/drivers/postgres/postgres.py", line 50, in initialize
    await cls._pool.execute(fs.read())
  File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/asyncpg/pool.py", line 518, in execute
    return await con.execute(query, *args, timeout=timeout)
  File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/asyncpg/connection.py", line 272, in execute
    return await self._protocol.query(query, timeout)
  File "asyncpg/protocol/protocol.pyx", line 316, in query
asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "NOT"
Attempting to die as gracefully as possible...

I tried to install a new redbot with postgresql and when i ran the "redbot <instance>" command that happened: ``` The main bot task didn't handle an exception and has crashed Traceback (most recent call last): File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/__main__.py", line 419, in red_exception_handler red_task.result() File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/__main__.py", line 306, in run_bot await driver_cls.initialize(**data_manager.storage_details()) File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/redbot/core/drivers/postgres/postgres.py", line 50, in initialize await cls._pool.execute(fs.read()) File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/asyncpg/pool.py", line 518, in execute return await con.execute(query, *args, timeout=timeout) File "/root/.pyenv/versions/Indigo/lib/python3.8/site-packages/asyncpg/connection.py", line 272, in execute return await self._protocol.query(query, timeout) File "asyncpg/protocol/protocol.pyx", line 316, in query asyncpg.exceptions.PostgresSyntaxError: syntax error at or near "NOT" Attempting to die as gracefully as possible... ```
Jackenmen commented 2020-03-14 20:06:12 +01:00 (Migrated from github.com)

Hi, sorry that it took so long to get any response - we weren't able to reproduce this. I know it's been over a month since the issue was created so it's not very likely that you're still experiencing this issue but if you do, you should see if you're running PostgreSQL 10+ as we don't support anything lower (speaking of that, it should probably be included in our documentation).

This issue will be closed in 7 days if there won't be any response as there were no other reports of this issue.

Hi, sorry that it took so long to get any response - we weren't able to reproduce this. I know it's been over a month since the issue was created so it's not very likely that you're still experiencing this issue but if you do, you should see if you're running PostgreSQL 10+ as we don't support anything lower (speaking of that, it should probably be included in our documentation). This issue will be closed in 7 days if there won't be any response as there were no other reports of this issue.
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#3469
No description provided.