vapor: Unable to deploy Vapor 2.0 beta in Heroku

Hi guys, I’m trying to deploy the new Vapor beta to Heroku after upgrading my whole app to Vapor 2.0 but it’s not resolving the dependencies, it’s actually working on my local mac but when I push to remote I can’t make it work. I think it’s because heroku needs to install some new dependencies that are not on the basic build pack that you provide but the same happens in travis when I try to run tests, this is the error that heroku show me

Resolving https://github.com/vapor/fluent-provider.git at 1.0.0-beta.3
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
note: you may be able to install ctls using your system-packager:
    apt-get install ctls
note: you may be able to install cmysql using your system-packager:
    apt-get install cmysql
Compile Swift Module 'Debugging' (1 sources)
Compile Swift Module 'ServiceLocator' (3 sources)
Compile Swift Module 'Bits' (19 sources)
Compile Swift Module 'Jay' (21 sources)
Compile Swift Module 'PathIndexable' (2 sources)
Compile Swift Module 'libc' (1 sources)
Compile Swift Module 'Core' (18 sources)
Compile Swift Module 'Transport' (11 sources)
Compile Swift Module 'Random' (6 sources)
Compile Swift Module 'Node' (35 sources)
Compile Swift Module 'Console' (34 sources)
Compile Swift Module 'Sockets' (22 sources)
Compile Swift Module 'Crypto' (13 sources)
Compile Swift Module 'BCrypt' (9 sources)
Compile Swift Module 'TLS' (12 sources)
Compile CSQLite sqlite3.c
Compile Swift Module 'JSON' (9 sources)
Compile Swift Module 'Redis' (10 sources)
Compile Swift Module 'MySQL' (11 sources)
Compile Swift Module 'URI' (10 sources)
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/tmp/build_5ca535539efcc4cf29dde278a98c136b/goRestart-restart-backend-app-c7cc656/.build/checkouts/cmysql.git-1318605283685182930/shim.h:4:10: error: 'mysql.h' file not found
#include <mysql.h>
         ^
/tmp/build_5ca535539efcc4cf29dde278a98c136b/goRestart-restart-backend-app-c7cc656/.build/checkouts/mysql.git-4167185222669414350/Sources/MySQL/Database.swift:1:8: error: could not build Objective-C module 'CMySQL'
import CMySQL
       ^
Compile Swift Module 'SMTP' (21 sources)
<unknown>:0: error: build had 1 command failures
swift-build: error: exit(1): /app/.swiftenv/versions/3.1/usr/bin/swift-build-tool -f /tmp/build_5ca535539efcc4cf29dde278a98c136b/goRestart-restart-backend-app-c7cc656/.build/release.yaml
 !     Push rejected, failed to compile Swift app.
 !     Push failed

If I’m not wrong this is because Heroku can’t download cmysql dependency so it can’t not import the module, could you guys help me out with this?

Thanks in advance!!!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (12 by maintainers)

Most upvoted comments

Nope. I’ll wait for #980 to be merged (which fixes a blocking bug) and give it a try again.

You’ll need to run these commands to install those packages.

eval "$(curl -sL https://apt.vapor.sh)"
sudo apt-get install ctls cmysql