Hi,
I have next message at 2:19 min
How to resolved isuue?
vapor xcode
Fetching Dependencies [Failed]
Check your dependencies’ Package.swift files to see where the conflict is.
Error: warning: refname ‘1.0.0’ is ambiguous.
warning: refname ‘1.0.0’ is ambiguous.
warning: refname ‘1.0.3’ is ambiguous.
warning: refname ‘1.0.3’ is ambiguous.
warning: refname ‘1.1.0’ is ambiguous.
warning: refname ‘1.1.0’ is ambiguous.
warning: refname ‘1.0.0’ is ambiguous.
warning: refname ‘1.0.0’ is ambiguous.
swift-package: error: The dependency graph could not be satisfied. The package (GitHub - vapor/fluent: Vapor ORM (queries, models, and relations) for NoSQL and SQL databases) with version tag in range (1.0.0…<1.0.9223372036854775807) is not found. Found tags ([1.1.0])
@masterfff I tried to reproduce your issue but was unable to; it builds fine for me without any issues. Could you please try downloading the materials for this screencast, and run “vapor xcode” and see if it works for you? Also please make sure you have the latest Xcode installed.
@mludl Thanks! I actually noticed this as well while working on another Vapor screencast. For everyone else, here’s what I replaced the initialization with:
let drop = Droplet()
try drop.addProvider(VaporPostgreSQL.Provider)
drop.preparations += Acronym.self
@masterfff@david6p2 I checked with @tanner0101 and there looks to have been a slight issue with the package file for the PostgreSQL provider, which Tanner has fixed. Try again in a few hours and you should be set. Thanks for the awesomely quick fix Tanner! :]
postgres -D /usr/local/var/postgres
LOG: database system was shut down at 2016-11-05 15:39:52 GMT
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
I am attempting to start the PostgreSQL server, but when I run postgres -D /usr/local/var/postgres I get this output:
LOG: could not bind IPv6 socket: Address already in use
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
LOG: could not bind IPv6 socket: Address already in use
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
LOG: could not bind IPv4 socket: Address already in use
HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
WARNING: could not create listen socket for "localhost"
FATAL: could not create any TCP/IP sockets
I did install through Homebrew. Here is my postgres version:
@alexhedley What happens if you type psql? That’s the command line interface to connect to the PostgreSQL server.
@calebkleveter Looks like PostgreSQL was running on your Mac already. Try connecting with psql and see if you get in OK. If not, uninstall any existing PostgreSQL installations and reinstall w/ homebrew.
Alexanders-MBP:~ AlexHedley$ psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Alexanders-MBP:~ AlexHedley$ createdb `whoami`
createdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
sudo find / -name pg_hba.conf
find: /dev/fd/AlexHedley: No such file or directory
/Users/AlexHedley/Library/Application Support/Postgres/var-9.4/pg_hba.conf
/usr/local/var/postgres/pg_hba.conf
The following returns a single line, not showing postgres
Alexanders-MBP:~ AlexHedley$ /usr/local/opt/postgresql/bin/postgres -D /usr/local/var/postgres
LOG: database system was shut down at 2016-11-13 10:18:29 GMT
LOG: MultiXact member wraparound protections are now enabled
LOG: database system is ready to accept connections
LOG: autovacuum launcher started
The cursor then stays as a flashing block not allowing any commands, think I might have to uninstall / reinstall?