Giter Club home page Giter Club logo

wiki-heroku's Introduction

Requarks Logo Requarks

License Build Status Codacy Badge Codacy Badge Dependency Status GitHub release Documentation Gitter

Requests and Bugs Tracking Management System

Under development

Milestones
  • Base Layout
  • Setup
  • Dashboard
    • Rotating backgrounds
    • Stats
    • Todos
    • Pinned
    • Active Projects
  • Global Search
  • Create
    • Category selection screen
    • Request
    • Attachments
  • Review
    • List view
    • Filters
    • Search
  • Item
  • Projects
    • Project
    • Sprints
    • Create Project
    • Edit Project
    • Add Teams / Members
  • Teams
    • Team
    • Create Team
    • Edit Team
    • Add Team Members
  • Settings
    • Profile
    • Avatar
    • Preferences
    • Notifications
  • Administration

wiki-heroku's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wiki-heroku's Issues

Wiki.js on Heroku: H12 Request timeout error socket.io

Actual behavior
I deployed a Wiki.js on Heroku: https://github.com/Requarks/wiki-heroku It works but after short time I start getting Application Error with following error:

2018-10-30T14:25:00.953972+00:00 app[web.1]: 2018-10-30T14:25:00.953Z - info: [AGENT] Running all jobs...
2018-10-30T14:25:00.958496+00:00 app[web.1]: 2018-10-30T14:25:00.958Z - info: [AGENT] Performing pull from remote Git repository...
2018-10-30T14:25:02.383893+00:00 app[web.1]: 2018-10-30T14:25:02.383Z - info: [AGENT] Git Pull completed.
2018-10-30T14:25:02.401264+00:00 app[web.1]: 2018-10-30T14:25:02.401Z - info: [AGENT] Git Push skipped. Repository is already in sync.
2018-10-30T14:25:02.442099+00:00 app[web.1]: 2018-10-30T14:25:02.441Z - info: [AGENT] All jobs completed successfully! Going to sleep for now.
2018-10-30T14:25:18.063506+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5NDTq" host=example.com request_id=a2f652c7-72ba-4f21-b743-4635d3f38d0a fwd="12.34.567.89" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:25:48.164886+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5NKq5" host=example.com request_id=9cf9948e-5e1e-4745-920f-6af266aa4c6a fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:26:22.746359+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5NTFP" host=example.com request_id=a1ffa606-6bdb-438f-b6ef-7726576ca9d6 fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:26:58.916409+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5Nc5Y" host=example.com request_id=6ab44782-3675-4ed7-b5b4-008e9f883db6 fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:27:34.286419+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5Nkhy" host=example.com request_id=db9a8a0f-1697-4659-9b57-05f977082571 fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:28:04.180689+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5Ns19" host=example.com request_id=c068d320-1e56-492f-bbad-05bc144fca92 fwd="12.34.567.89" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:28:38.458974+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5N-O9" host=example.com request_id=85574f32-87c9-45f2-b0dc-89cffdc44eb1 fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:29:05.255146+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5O4xU" host=example.com request_id=08662c7a-458a-443d-a069-6df762da83f7 fwd="12.34.567.89" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:29:32.430640+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5OBaD" host=example.com request_id=efc74d16-96c2-4882-b067-c60a8ba8fd3e fwd="12.34.567.89" dyno=web.1 connect=1ms service=30000ms status=503 bytes=0 protocol=http
2018-10-30T14:29:59.482605+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path= "/socket.io/?EIO= 3&transport= polling&t=MR5OI9-" host=example.com request_id=9c0e05b3-d1ef-4ddf-9480-02f6710cc0b9 fwd="12.34.567.89" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=http

The only way to get it work again is to restart all my dynos.

Any suggestion about what is causing that issue and how to solve it?

Thanks

Lost entries

Hi,
Yesterday I deployed a new WikiJs through Heroku.
Everything was fine (4 entries so far, 4 users)
For some reason today when I entered again, all the entries from entries table were removed. Just that table. Users remain there, sessions remain there, and I am not sure what is bruteforces but I have 4 entries there.

Any idea why my entries table were removed not after 12 hours??

Error: Cannot find module '/app/wiki/server'

On a clean install in Heroku I'm getting this error:

2017-10-02T03:19:58.217691+00:00 heroku[web.1]: Starting process with command `cd wiki && node server`
2017-10-02T03:20:00.776259+00:00 app[web.1]: module.js:473
2017-10-02T03:20:00.776305+00:00 app[web.1]:       throw err;
2017-10-02T03:20:00.776306+00:00 app[web.1]:       ^
2017-10-02T03:20:00.776307+00:00 app[web.1]:
2017-10-02T03:20:00.776309+00:00 app[web.1]:     at Function.Module._resolveFilename (module.js:527:15)
2017-10-02T03:20:00.776308+00:00 app[web.1]: Error: Cannot find module '/app/wiki/server'
2017-10-02T03:20:00.776309+00:00 app[web.1]:     at Function.Module._load (module.js:453:25)
2017-10-02T03:20:00.776310+00:00 app[web.1]:     at Function.Module.runMain (module.js:665:10)
2017-10-02T03:20:00.776311+00:00 app[web.1]:     at startup (bootstrap_node.js:187:16)
2017-10-02T03:20:00.776311+00:00 app[web.1]:     at bootstrap_node.js:607:3
2017-10-02T03:20:00.868102+00:00 heroku[web.1]: State changed from starting to crashed

Any ideas?

Update README.md to state steps for a naked deploy on heroku

I had to figure out the following steps to get the instance up and running:

  1. Create new app in heroku ('myapp')
  2. Create a new pipeline 'myapp'
  3. On command line: git clone wiki-heroku (this repo)
  4. Command line: heroku login
  5. Command line: heroku git:remote -a myapp
  6. Command line: heroku stack:set container (to switch to docker deploy mode on heroku)
  7. In heroku admin backend: Resources > Add-Ons > Add heroku-postgresql add-on
  8. Command line: git push heroku 2.x:master

et voilá

Heroku deployment: Corporate SSO usage

Hello

I am using wiki for company specific wiki. I have deployed it on Heroku, but wanted only the company's employees to login and connect to wiki.
I have an app which takes care of SSO authentication. But when I call that API @ server/index.js, it is not working. I have given code snippet below.
It may be because of the reason that the service starts at background and by the time user logs-in, everything is working.

// ----------------------------------------
// SSO Authentication
// ----------------------------------------
console.log('Authentication will happen through SSO')
const auth = require(<My_SSO_Module_Name>)
auth.authenticate(app);
// ----------------------------------------

Do suggest if there is any direct way of SSO authentication.

Thanks
Kumar Vikas Singh

Deploying to Heroku results in 404 for app.js and vendor.js

Using the "Deploy to Heroku" button the main Wiki.js github page produces the following result:

screen shot 2017-07-18 at 12 25 09 pm

screen shot 2017-07-18 at 12 26 35 pm

Build log:

-----> Node.js app detected
-----> Creating runtime environment
       
       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_VERBOSE=false
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  *
       engines.npm (package.json):   unspecified (use default)
       
       Resolving node version * via semver.io...
       Downloading and installing node 8.1.4...
       Using default npm version: 5.0.3
-----> Restoring cache
       Skipping cache restore (new-signature)
-----> Building dependencies
       Installing node modules (package.json)
       
       > [email protected] postinstall /tmp/build_60dcd004b9e7d9edf7022bc3d00c3e6f/Requarks-wiki-heroku-ac07465
       > npm install wiki.js@latest
       
       
       > [email protected] install /tmp/build_60dcd004b9e7d9edf7022bc3d00c3e6f/Requarks-wiki-heroku-ac07465/node_modules/fsevents
       > node install
       
       
       > [email protected] postinstall /tmp/build_60dcd004b9e7d9edf7022bc3d00c3e6f/Requarks-wiki-heroku-ac07465/node_modules/wiki.js
       > node install.js
       
       > WIKI.JS [Installing...]
       >> Fetching tarball...
       >> Extracting to /tmp/build_60dcd004b9e7d9edf7022bc3d00c3e6f/Requarks-wiki-heroku-ac07465
       >> Creating config file...
       >> Installing dependencies...
       ✔ Installation succeeded.
       > Wiki.js has been installed and is configured to use Heroku configuration.
       + [email protected]
       added 304 packages in 83.442s
       up to date in 84.319s
-----> Caching build
       Clearing previous node cache
       Saving 2 cacheDirectories (default):
       - node_modules
       - bower_components (nothing to cache)
-----> Build succeeded!
-----> Discovering process types
       Procfile declares types -> web
-----> Compressing...
       Done: 60.3M
-----> Launching...
       Released v5
       https://buffer-wiki.herokuapp.com/ deployed to Heroku

App without any visuals

Hi there, I've cloned the repo, committed the changes, and pushed to Heroku, in order to change the SSH settings, but ended up without any graphics/js:

capture

I used the 'Deply to Heroku' button but have not been able to get it to successfully authenticate with github, so downloaded the slug, made changes to SSH section of the config.yml file only to end up with the same result. Would be grateful for any help! Thanks!!

"Error: Cannot find module '/wiki/heroku'"

Hi,
I cannot run wiki on heroku, I get this issue

Error: Cannot find module '/wiki/heroku'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Set WIKI_HOST without trailing slash

WIKI_HOST must be configured without trailing slash. On my first installation attempt it was filled with the trailing slash, making the login link malfunction.

Auto-deploy to heroku works,... up to a point

Linking an issue here to the one I posted at Requarks/wiki.

The auto-deploy to heroku does set up a wiki instance on heroku. I can then login and create pages. But page editing fails as documented here

Can't set SSH private key through environment variable

The only supported GitHub authentication method is via username/password or personal token, which isn't ideal - I don't want Wiki.js to have full access to every repository in my account, and I don't want my personal credentials available to everyone with access to the Heroku app's settings.

It'd be better to be able to set the SSH private key as an environment variable, so I can give Wiki.js a specific deploy key.

Empty repository on 'git pull'

Good afternoon,

I ran the command to clone the repository by following the instructions in my heroku panel

heroku git: clone -a myrepo cd myrepo

But this repository is empty

Did I do something wrong or is this a bug?

How can I point to SSO enabled corporate Github?

Hello

I have deployed wiki on Heroku.
The wiki information is getting stored in Github repository. I want that repository to be my corporate repository. But it is SSO enabled. Based on env variable, I can share user name and password. But that will not work due to SSO.

Can you please suggest if there is any way to do the same?

Thanks
Kumar Vikas Singh

Suddenly having SSL issue

Hi,

I am suddenly having an SSL issue. I created an new instance from the button at https://docs.requarks.io/en/install/heroku . This is quite an urgent one, as it has all my documentation on, for something I need to submit tomorrow. I tried adding the PGSSLMODE env var to "require", but then I get back "Database Connection Error: DEPTH_ZERO_SELF_SIGNED_CERT undefined:undefined" error.

2021-03-07T13:32:19.755028+00:00 heroku[web.1]: Process exited with status 1
2021-03-07T13:32:19.856743+00:00 heroku[web.1]: State changed from starting to crashed
2021-03-07T14:04:24.793368+00:00 heroku[web.1]: State changed from crashed to starting
2021-03-07T14:04:42.704046+00:00 heroku[web.1]: Starting process with command node server
2021-03-07T14:04:45.956726+00:00 app[web.1]: Loading configuration from /wiki/config.yml... OK
2021-03-07T14:04:46.183145+00:00 app[web.1]: 2021-03-07T14:04:46.176Z [MASTER] info: =======================================
2021-03-07T14:04:46.185334+00:00 app[web.1]: 2021-03-07T14:04:46.185Z [MASTER] info: = Wiki.js 2.5.170 =====================
2021-03-07T14:04:46.185792+00:00 app[web.1]: 2021-03-07T14:04:46.185Z [MASTER] info: =======================================
2021-03-07T14:04:46.186261+00:00 app[web.1]: 2021-03-07T14:04:46.186Z [MASTER] info: Initializing...
2021-03-07T14:04:48.208143+00:00 app[web.1]: 2021-03-07T14:04:48.207Z [MASTER] info: Using database driver pg for postgres [ OK ]
2021-03-07T14:04:48.223888+00:00 app[web.1]: 2021-03-07T14:04:48.223Z [MASTER] info: Connecting to database...
2021-03-07T14:04:48.324933+00:00 app[web.1]: 2021-03-07T14:04:48.324Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:04:48.327852+00:00 app[web.1]: 2021-03-07T14:04:48.327Z [MASTER] warn: Will retry in 3 seconds... [Attempt 1 of 10]
2021-03-07T14:04:51.330694+00:00 app[web.1]: 2021-03-07T14:04:51.330Z [MASTER] info: Connecting to database...
2021-03-07T14:04:51.349068+00:00 app[web.1]: 2021-03-07T14:04:51.348Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:04:51.350698+00:00 app[web.1]: 2021-03-07T14:04:51.350Z [MASTER] warn: Will retry in 3 seconds... [Attempt 2 of 10]
2021-03-07T14:04:54.353558+00:00 app[web.1]: 2021-03-07T14:04:54.353Z [MASTER] info: Connecting to database...
2021-03-07T14:04:54.372996+00:00 app[web.1]: 2021-03-07T14:04:54.372Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:04:54.373453+00:00 app[web.1]: 2021-03-07T14:04:54.373Z [MASTER] warn: Will retry in 3 seconds... [Attempt 3 of 10]
2021-03-07T14:04:57.377851+00:00 app[web.1]: 2021-03-07T14:04:57.377Z [MASTER] info: Connecting to database...
2021-03-07T14:04:57.396235+00:00 app[web.1]: 2021-03-07T14:04:57.396Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:04:57.396484+00:00 app[web.1]: 2021-03-07T14:04:57.396Z [MASTER] warn: Will retry in 3 seconds... [Attempt 4 of 10]
2021-03-07T14:05:00.397497+00:00 app[web.1]: 2021-03-07T14:05:00.397Z [MASTER] info: Connecting to database...
2021-03-07T14:05:00.415728+00:00 app[web.1]: 2021-03-07T14:05:00.415Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:00.416112+00:00 app[web.1]: 2021-03-07T14:05:00.415Z [MASTER] warn: Will retry in 3 seconds... [Attempt 5 of 10]
2021-03-07T14:05:03.417612+00:00 app[web.1]: 2021-03-07T14:05:03.417Z [MASTER] info: Connecting to database...
2021-03-07T14:05:03.453201+00:00 app[web.1]: 2021-03-07T14:05:03.453Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:03.453629+00:00 app[web.1]: 2021-03-07T14:05:03.453Z [MASTER] warn: Will retry in 3 seconds... [Attempt 6 of 10]
2021-03-07T14:05:06.459042+00:00 app[web.1]: 2021-03-07T14:05:06.458Z [MASTER] info: Connecting to database...
2021-03-07T14:05:06.484758+00:00 app[web.1]: 2021-03-07T14:05:06.484Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:06.485177+00:00 app[web.1]: 2021-03-07T14:05:06.485Z [MASTER] warn: Will retry in 3 seconds... [Attempt 7 of 10]
2021-03-07T14:05:09.487052+00:00 app[web.1]: 2021-03-07T14:05:09.486Z [MASTER] info: Connecting to database...
2021-03-07T14:05:09.502909+00:00 app[web.1]: 2021-03-07T14:05:09.502Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:09.503239+00:00 app[web.1]: 2021-03-07T14:05:09.503Z [MASTER] warn: Will retry in 3 seconds... [Attempt 8 of 10]
2021-03-07T14:05:12.505546+00:00 app[web.1]: 2021-03-07T14:05:12.505Z [MASTER] info: Connecting to database...
2021-03-07T14:05:12.532314+00:00 app[web.1]: 2021-03-07T14:05:12.532Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:12.532766+00:00 app[web.1]: 2021-03-07T14:05:12.532Z [MASTER] warn: Will retry in 3 seconds... [Attempt 9 of 10]
2021-03-07T14:05:15.537558+00:00 app[web.1]: 2021-03-07T14:05:15.537Z [MASTER] info: Connecting to database...
2021-03-07T14:05:15.545950+00:00 app[web.1]: 2021-03-07T14:05:15.545Z [MASTER] error: Database Connection Error: 28000 undefined:undefined
2021-03-07T14:05:15.546308+00:00 app[web.1]: 2021-03-07T14:05:15.546Z [MASTER] warn: Will retry in 3 seconds... [Attempt 10 of 10]
2021-03-07T14:05:18.549506+00:00 app[web.1]: 2021-03-07T14:05:18.549Z [MASTER] info: Connecting to database...
2021-03-07T14:05:18.613525+00:00 app[web.1]: 2021-03-07T14:05:18.613Z [MASTER] error: Database Initialization Error: no pg_hba.conf entry for host "34.228.232.232", user "wubvhsztejwdwl", database "d12tvvesmsphr6", SSL off

Heroku SSL

Heroku provides SSL configuration setup via its ACM feature which is very convenient but I've not found a way to make it convenient to run this wiki on heroku with http to https redirection working fine. If I enable SSL_ACTIVE to true, it would try to provision cert via letsencrypt (given configs are set) but the challenge verification fails (seems like heroku does some sort of rewrite for the URL). What is the recommended setup to enable http to https redirection for Wiki deployment.

Also, on https://github.com/Requarks/wiki/blob/2.4.107/server/controllers/ssl.js#L29-L36, would it be convenient to provide an override such that we can always perform override for ssl redirection regardless of configurations. For example, something like ALWAYS_SSL_REDIRECT that can be set to true or 1? At the moment, enabling httpRedirection is not enough because unless letsencrypt or custom SSL cert is setup, WIKI.servers.servers.https is not be there causing the redirect to never happen.

Heroku router expects the redirection to happen on application level. The alternative solution to having ALWAYS_SSL_REDIRECT would be to check X-Forwarded-Proto and perform redirect (https://help.heroku.com/J2R1S4T8/can-heroku-force-an-application-to-use-ssl-tls) which is pretty straightforward and should work generally in other places too. Thoughts?

Postgres error

This doesn't load anymore when I use the template. I also can't edit the source files to try to fix it manually. I'd recommend finding a different way to deploy than heroku.

Database Initialization Error: no pg_hba.conf entry for host...

Lost pages

When you deploy again in heroku, all the created pages are removed.

Wiki.js heroku not working properly

Actual behavior

Fresh Heroku build is using old data from wrong (previously used) .git repo.

Expected behavior

Heroku build should use data from .git repo specified on setup in WIKI_GIT_URL param

Steps to reproduce the behavior

Create new Heroku Build, insert url of freshly created git repo, check files. See they are still the old ones.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.