Code Monkey home page Code Monkey logo

wiki'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's People

Contributors

alancnet avatar bamieh avatar bobonthenet avatar broxen avatar cdn18 avatar craph avatar daneallen avatar dbnicholson avatar ericfromcanada avatar gh0stalker avatar goto1134 avatar gueldenstone avatar hieptuanle avatar johnnyshields avatar lkho avatar lub avatar mskrip avatar myml avatar natsutteatsuiyone avatar neokeld avatar ngpixel avatar pwuts avatar regevbr avatar sbonaime avatar scienceasdf avatar sesajad avatar silicht avatar takumi9942 avatar user50000 avatar wani4ka avatar

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  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  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar

wiki's Issues

Problem of Wiki Page and Directory in Chinese

Hi, thanks for this wiki.

I install the latest version and do some testing.

If a wiki page name is in Chinese, it's shown correctly in web browser. However, in repo directory it's not save in Chinese, such as e6b58be8af951.md.

If a wiki page is inside a directory in Chinese, the directory is shown correctly in web browser. However, in repo directory it's e6b58be8af95.

Customization (CSS/Views)

So installed wiki.js via npm. What is the preferred way to customize the Views or the CSS?

Could you give some short instructions? I edited the Views directly under ./Views which worked at least. The css is minified and I'm not sure how to update it properly.

Another question would be: if I want to include content from an RSS feed on the home page for example, should I write a module or how would I do that?

Installed but not working?

I have installed the wiki and started it but can't seem to access it.

Got the following WARNings during install.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\vlos\WebstormP
rojects\Wiki.js\package.json'
npm WARN Wiki.js No description
npm WARN Wiki.js No repository field.
npm WARN Wiki.js No README data
npm WARN Wiki.js No license field.

Also mongoDB is running, which it doesn't say required to startup, though I seem to have gotten farther with it running. Not sure if I need to create initial repository or what? (I use mongo for homebrewery before wiki).

it did seem to prompt me for my GIT login, but the webpage just sits there? NOt sure if I need to create repository for wiki? Again it doesn't specify it in the install/run.

Ok figured it out, Need to setup db directory.

So install/start instructions seem to be lacking.
https://docs.wiki.requarks.io/install

Missing:

  • steps to start and configure MongoDB for Wiki

Documentation: Google ID

In the documentation for authenticating with Google ID, there is a missing step. Besides setting up OAuth, one also need to enable Google+ API in order to authenticate users into the wiki.

public: true doesn't work

Hello.
I have installed wiki.js and set public: false at the begining. Now I would like to have it installed in public mode. I have modified properties, restarted application but it still asks me for credentials, and says that I do not have rights to see home page. how to fix that?
Regads, Dawid.

Confirm before navigating away from create/edit page

It would be great to have a (javascript) confirmation before allowing the user to navigate away from a create or edit entry page, if content has been enter or has changed.

I have lost quite a few changes by accidentally navigating away. Since the editor does not use a standard text area, text is not retained when you switch pages.

I personally have "swipe back and forth" enabled on my mac, and I am constantly loosing edits.

Page Navigation

When creating new pages that don't appear in the navigation pane on the left.

I create pages like:
/mypage and
/mydir/mypage

The pages are created and the content seems to by correct.

I can navigate to the pages by entering the URL in the browser address bar.

OS Windows 10
Wiki.js v1.0.0-beta.8

Support Azure Active Directory

Hi, I'm deploying this system onto my own server and I need to authenticate users with Azure Active Directory (i.e. work/school account from Microsoft). Could you add support for this? Currently the Microsoft Login is only for Microsoft accounts.

New Page? Linking? Search?

Not really sure where this falls as an issue.
I created a new page (showing "new-page.md" in my repo directory.

Yet when I search for the page, nothing comes up.

On my sidebar (under navigation) it does not show, but if I navigate to it /new-page it comes up fine.

Also I would change "Start" to "Top of Page" - much clearer. Maybe even put "Contents" as "Page Contents" (as compared to "Wiki Contents". Originally thought it was the contents of my wiki, like most wikis have). Normally I expect an index or such along side bar. Not page contents.

Git repository setup error 'This operation must be run in a work tree'

When running
node server.js I am getting a git error This operation must be run in a work tree. I followed the documentation to setup github with ssh using the following document: https://docs.wiki.requarks.io/install/git

The full logs up until the error:

wiki@service:~/wikijs$ node server.js 
2017-02-11T06:03:17.856Z - info: [SERVER] Wiki.js is initializing...
2017-02-11T06:03:18.213Z - info: [SERVER] Checking data directories...
2017-02-11T06:03:18.215Z - error:  Error: ENOENT: no such file or directory, chmod '/home/wiki/wikijs/repo/upload'
    at Error (native)
    at Object.fs.chmodSync (fs.js:1154:18)
    at Object.chmodSync (/home/wiki/wikijs/node_modules/graceful-fs/polyfills.js:248:19)
    at Object.createBaseDirectories (/home/wiki/wikijs/libs/local.js:117:12)
    at Object.init (/home/wiki/wikijs/libs/local.js:29:10)
    at Object.<anonymous> (/home/wiki/wikijs/server.js:34:41)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
2017-02-11T06:03:18.216Z - info: [SERVER] Data and Repository directories are OK.
2017-02-11T06:03:18.607Z - info: [SERVER][GIT] Checking Git repository...
2017-02-11T06:03:19.396Z - info: [SERVER] Starting HTTP/WS server on port 6467...
2017-02-11T06:03:19.413Z - info: [SERVER] HTTP/WS server started successfully! [RUNNING]
2017-02-11T06:03:19.510Z - info: [SERVER][GIT] Git repository is OK.
2017-02-11T06:03:19.523Z - info: [AGENT] Background Agent is initializing...
2017-02-11T06:03:20.258Z - info: [AGENT][GIT] Checking Git repository...
2017-02-11T06:03:20.595Z - info: [AGENT] Running all jobs...
2017-02-11T06:03:20.662Z - info: [AGENT][GIT] Git repository is OK.
2017-02-11T06:03:20.663Z - info: [AGENT][GIT] Performing pull from remote repository...
2017-02-11T06:03:20.958Z - error: [AGENT][GIT] Unable to fetch from git origin!
2017-02-11T06:03:20.959Z - error: [AGENT][GIT] Unable to push changes to remote!
2017-02-11T06:03:20.960Z - error: [AGENT] One or more jobs have failed:  
{ code: 128,
  message: '`git --git-dir=repo/.git --work-tree=repo pull origin master` failed with code 128',
  stderr: 'From github.com:spectrumbranch/edu.spectrumbranch.com\n * branch            master     -> FETCH_HEAD\nfatal: This operation must be run in a work tree\n',
  stdout: '' }

Data directories config:

paths:
  repo: ./repo
  data: ./data

The git section of the config is as follows. I tried both the https:// version of the url and the ssh version which is currently in the file. I also tried manually git init-ing inside the repo folder as well as starting with an empty repo folder. I received the same error in all cases. I am able to use the same github user to perform commands in the github repo so it is not a permissions thing.

git:
  url: [email protected]:spectrumbranch/edu.spectrumbranch.com.git
  branch: master
  auth:

    # Type: basic, oauth or ssh
    type: ssh

    username: omitted

    # Password, OAuth token or private key passphrase:
    password:omitted

    # Only for SSH authentication:
    publicKey: /home/wiki/.ssh/id_rsa.pub
    privateKey: /home/wiki/.ssh/id_rsa
    sslVerify: true
  signature:
    name: omitted
    email: omitted

Please advise how I should continue. Thank you for your time.

Interactive Setup

Provide a visual interactive setup (like wordpress) which guides the user into configuring the wiki.

The setup should also checks for prerequisites (nodejs / git version, disk permissions, etc.)

Handle long lines of code

Currently if a block of code it too long, the whole page will become that long. Could you make the code block scroll like how GitHub handles such situations?

This is a loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong line of code

docs.wiki.requarks.io SSL error

There seems to be an SSL issue with docs.wiki.requarks.io.
I get ERR_SSL_PROTOCOL_ERROR when trying to go there.

Looking forward to being able to try out your Wiki software.

cannot install behind proxy

Hello,

When trying to install wiki.js behind an HTTP/HTTPS proxy, npm installs the dependencies (when properly configured), but the install.js script fails because the https.get function used to access github doesn't take the proxy into account... :(

Public "create account" option?

Is there a way to enable a public "create account" so that people and register themselves with the wiki and gain access? It looks like right now, it's the admin's responsibility to add users.

Wiki.js seems to be missing something to allow it to run, or I'm missing someting

0|wiki     |     at require (internal/module.js:20:19)
0|wiki     |     at Object.<anonymous> (/var/www/html/libs/entries.js:7:18)
0|wiki     |     at Module._compile (module.js:571:32)
0|wiki     |     at Object.Module._extensions..js (module.js:580:10)
0|wiki     |     at Module.load (module.js:488:32)
0|wiki     |     at tryModuleLoad (module.js:447:12)
0|wiki     |     at Function.Module._load (module.js:439:3)
0|wiki     |     at Module.require (module.js:498:17)
0|wiki     |     at require (internal/module.js:20:19)```
Is some of the error log I've found

Search results missing

Hello.
I have only one user, which is not Administrator, who can use serach. For other, as well as, Administrator, roles (Global Administrator, User) search returns no results. Logs are clean. What may be the problem?
Regards, Dawid.
PS. Beta9 is current master, am I right?

Error when launched

Installed using: npm install wiki.js@latest

TypeError: Cannot supply flags when constructing one RegExp from another
    at new RegExp (native)
    at Object.<anonymous> (/root/wikijs/libs/markdown.js:70:13)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/root/wikijs/server.js:39:15)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Object.<anonymous> (/root/wiki/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

Creating page (empty) gives a weird bug

Steps to reproduce:

  • Create a page, and just leave the title and empty subtitle and save
  • When you link to the page and enter it, it will say there is no page and if you want to create one, when you do, it says the page already exists (but there is no entry in Mongo)

Multi-language?

Hi, I'd like to ask if multi-language is planned. This is often a deal-breaker in web frameworks and then grafted on in a half-baked fashion. So I'd like mention it early on 😄

Revert Changes to Articles (+2 others)

Just a small feature request while I'm here: In the future, could you possibly add reverting changes to a previous commit to combat vandalism? Right now, we have a public wiki that only a few people can edit, but we'd like to allow others to edit it in the future :3

Navigation

Have you planned down the row to have an auto navigation being created when pages are added or deleted under the Navigation menu?

[BUG] "Create/Authorize User" modal on /admin/users doesn't do anything post-submit

Version: 1.0 Release - Beta 2

Summary:
After pressing submit on the "Create / Authorize User" modal on the /admin/users page, the modal disappears, but nothing happens with the data that I entered. No additional user appears on the page and Chrome Dev Tools don't log any network traffic sending to the server. I've tested this using both the "Local Database" and "Google ID" provider options.

Steps to repro:
0. Have an instance of Requark Wiki installed/set up with existing super user

  1. Navigate to /admin/users and click "Create / Authorize User"
  2. Enter information for user (You could use Google ID if for speed)
  3. Click "Authorize User"

Expected Outcome:
4. The modal to disappear, the user to be authorized and listed on the /admin/users list page

Actual Outcome:
4. The modal disappears, but nothing happens to confirm that I've authorized a new user. No amount of page refreshing makes this work.

Additional Notes:
Thanks for the great work so far, I'm looking forward to using this more!

Wiki is ignoring git ssh auth

Logs:

0|wiki | { code: 128, 0|wiki | message: 'git --git-dir=repo/.git --work-tree=repo push origin master failed with code 128', 0|wiki | stderr: 'fatal: could not read Username for \'https://github.com\': No such device or address\n', 0|wiki | stdout: '' }

Config:

git:
  url: [email protected]:WumpusPrime/wiki.git
  branch: master
  auth:

    # Type: basic or ssh
    type: ssh

    # Only for Basic authentication:
    username: // DiscordWiki
    password: // yayayaa

    # Only for SSH authentication:
    privateKey: /home/wiki/.ssh/id_rsa

Enable (basic) markdown for sidebar

When using markdown for headings, it is not used in the sidebar.

Would be cool to have this feature or at least normalize the strings by filtering markdown out of it.

image

Node.js dont launch

case1:
when i added a new line "git: false" in the configuration file, node.js command prompt window stopped launching with "wiki start" and localhost:80 became unavailable.
when i removed that line everything became normal

case2:
Node.js command prompt window isnt launching with "wiki start ".
Wiki.js command prompt is showing that wiki.js is launched.
as a result (i think)
MongoD command prompt is not showing any connection,
localhost:80 in browser is showing page not found.

i uninstalled wiki.js and MongoDB and reinstalled them but node.js still not launching.

EDIT:- i reinstalled node.js, now it is launching.

wiki.js and apache on same server

Hi,

I am trying to run wiki.js and apache on the same server, similar to this approach: http://stackoverflow.com/questions/9831594/apache-and-node-js-on-the-same-server

This kind of works, but now wiki.js is searching for all the assets on the root level (e.g. mydomain.com/css) instead of the level of the wiki (e.g. mydomain.com/mywiki/css)

Do you have a suggestion on how to fix this? Or can you recommend another way of running wiki.js and other apache services on the same server?

Thanks,
Benedikt

Case sensitivity for email address

I have a wiki system configured with Google authentication. I noticed that if I put any uppercase letters in a user's email, the authentication will fail because Google converts email addresses to all lowercase automatically when calling the callback URL. I think the code for authenticating user should ignore the cases when comparing email addresses since email addresses are case-insensitive.

"Local" git repo

Hi,

is it possible to use the wiki with a "local" repo only for testing purposes? So that it doesnt use git pull/push and only commits changes locally?

Malfunction in Code Block

Hello,

I noticed that some characters can break the code block.

Like this command:
captura de pantalla 2017-03-16 a las 4 55 02

When you save it appears like this:
captura de pantalla 2017-03-16 a las 4 54 52

Can it be fixed?

Thanks in advance.

Provide Dockerfile

Hi,

would be nice if there was a Docker Container for wiki.js
I've forked the repository and I'll try to get a Container running.

Cheers

Installation Issue

I have tried multiple times and on different server instances (fresh ubuntu install) to get the wiki to install and run correctly. Tried ubuntu 16.04 and 14.04, same issue. It looks like modules are missing in the installer. I repaired some of them but this is becoming time consuming and I'm going to move onto a different wiki to use. Here is the shell output to help with the fix and what I was fixing.

ubuntu@ip-172-31-30-112:~$ pm2 monit

                    -------------

                  PM2 process manager

/\\\\\\_/\\/\\/\\\\_
_/\/////////\_/\\\
/\\\/\///////\_
/\_
/\_/\//\_/\//\_/////\_
_/\\\\\\/
/\\///\/\/
/\_
/\/
/\/////////
/\_
///\/
/\_/\//_____
/\_
/\_////\_____/\//_____
/\_/\_/\_/\/__________
/\_/\_/\_/\\\\\\\_
_////////////////////////

                   Getting started

                    Documentation
                    http://pm2.io/

                  Start PM2 at boot
                    $ pm2 startup

                 Daemonize Application
                   $ pm2 start <app>

                 Monitoring/APM solution
                https://app.keymetrics.io/

                    -------------

ubuntu@ip-172-31-30-112:~$ pm2 logs wiki --lines 100
[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lin es option)
/home/ubuntu/logs/wiki-output-0.log last 100 lines:
/home/ubuntu/logs/wiki-error-0.log last 100 lines:
0|wiki | Error: Cannot find module '/home/ubuntu/node_modules/requarks-core/ core-libs/winston'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:24:18)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | Error: Cannot find module '/home/ubuntu/node_modules/requarks-core/ core-libs/winston'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:24:18)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | Error: Cannot find module '/home/ubuntu/node_modules/requarks-core/ core-libs/winston'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:24:18)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | Error: Cannot find module '/home/ubuntu/node_modules/requarks-core/ core-libs/winston'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:24:18)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | Error: Cannot find module '/home/ubuntu/node_modules/requarks-core/ core-libs/winston'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:24:18)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)

[STREAMING] Now streaming realtime logs for [wiki] process
^C
ubuntu@ip-172-31-30-112:~$ /home/ubuntu/node_modules/requarks-core/ core-libs/winston'

^C
ubuntu@ip-172-31-30-112:~$ cd /home
ubuntu@ip-172-31-30-112:/home$ cd /home/ubuntu/node_modules/requarks-core/ core-libs/winston'

^C
ubuntu@ip-172-31-30-112:/home$ cd /home/ubuntu/node_modules/requarks-core/ core-libs
-bash: cd: /home/ubuntu/node_modules/requarks-core/: No such file or directory
ubuntu@ip-172-31-30-112:/home$ cd /home/ubuntu/node_modules/requarks-core/
-bash: cd: /home/ubuntu/node_modules/requarks-core/: No such file or directory
ubuntu@ip-172-31-30-112:/home$ cd /home/ubuntu/node_modules/requarks-core
-bash: cd: /home/ubuntu/node_modules/requarks-core: No such file or directory
ubuntu@ip-172-31-30-112:/home$ la
ubuntu
ubuntu@ip-172-31-30-112:/home$ cd ubuntu/
ubuntu@ip-172-31-30-112:$ la
agent.js .cache controllers middlewares .pm2 views
app CHANGELOG.md libs models .profile .viminfo
assets client LICENSE node_modules README.md wiki.cmd
.bash_logout config.sample.yml locales .npm server.js wiki.js
.bashrc config.yml logs package.json .ssh
ubuntu@ip-172-31-30-112:
$ cd node_modules/
ubuntu@ip-172-31-30-112:/node_modules$ la
amp for-own once
amp-message fs-extra onetime
ansi-regex fs.realpath ora
ansi-styles fstream parse-glob
anymatch gkt path-is-absolute
argparse glob path-parse
array-unique glob-base pidusage
arr-diff glob-parent pm2
arr-flatten graceful-fs pm2-axon
arrify graceful-readlink pm2-axon-rpc
async has-ansi pm2-deploy
async-each inflight pmx
async-listener inherits preserve
balanced-match interpret process-nextick-args
.bin isarray randomatic
binary-extensions is-binary-path readable-stream
blessed is-buffer readdirp
block-stream is-dotfile rechoir
bluebird is-equal-shallow regex-cache
brace-expansion is-extendable repeat-element
braces is-extglob repeat-string
buffer-shims is-glob resolve
chalk is-number restore-cursor
chokidar isobject rimraf
cli-cursor is-posix-bracket semver
cli-spinners is-primitive set-immediate-shim
cli-table jsonfile shelljs
colors json-stringify-safe shimmer
commander kind-of signal-exit
concat-map lazy source-map
continuation-local-storage lodash source-map-support
core-util-is lodash.findindex sprintf-js
cron lodash.isequal string_decoder
debug log-symbols strip-ansi
emitter-listener methods supports-color
escape-regexp micromatch tar
escape-string-regexp mimic-fn tv4
eventemitter2 minimatch util-deprecate
expand-brackets minimist uuid
expand-range mkdirp vizion
extglob moment vxx
fclone moment-timezone wiki.js
filename-regex ms wrappy
fill-range normalize-path yamljs
follow-redirects nssocket
for-in object.omit
ubuntu@ip-172-31-30-112:
/node_modules$ npm install requarks-core
npm WARN checkPermissions Missing write access to /home/ubuntu/node_modules
[email protected] /home/ubuntu
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "requarks-core"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! path /home/ubuntu/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/ubuntu/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "requarks-core"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! path npm-debug.log.4248674540
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.4248674540'
npm ERR! { Error: EACCES: permission denied, open 'npm-debug.log.4248674540'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.4248674540' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/node_modules/npm-debug.log
ubuntu@ip-172-31-30-112:~/node_modules$ sudo npm install requarks-core
[email protected] /home/ubuntu
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
ubuntu@ip-172-31-30-112:~/node_modules$ node wiki start
module.js:472
throw err;
^

Error: Cannot find module '/home/ubuntu/node_modules/wiki'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:422:7)
at startup (bootstrap_node.js:143:9)
at bootstrap_node.js:537:3
ubuntu@ip-172-31-30-112:/node_modules$ cd ~
ubuntu@ip-172-31-30-112:
$ la
agent.js .cache controllers middlewares .pm2 views
app CHANGELOG.md libs models .profile .viminfo
assets client LICENSE node_modules README.md wiki.cmd
.bash_logout config.sample.yml locales .npm server.js wiki.js
.bashrc config.yml logs package.json .ssh
ubuntu@ip-172-31-30-112:$ node wiki start
✔ Wiki.js has started successfully.
ubuntu@ip-172-31-30-112:
$ pm2 status wiki
┌──────┬──────┬─────────┬────┬─────┬────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
├──────┼──────┼─────────┼────┼─────┼────────┤
│ wiki │ fork │ errored │ 16 │ 0% │ 0 B │
└──────┴──────┴─────────┴────┴─────┴────────┘
Use pm2 show <id|name> to get more details about an app
ubuntu@ip-172-31-30-112:~$ pm2 logs wiki --lines 100
[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lines option)
/home/ubuntu/logs/wiki-output-0.log last 100 lines:
0|wiki | 2017-02-26T22:59:43.509Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T22:59:43.856Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T22:59:44.202Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T22:59:44.552Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T22:59:44.896Z - info: [SERVER] Wiki.js is initializing...

/home/ubuntu/logs/wiki-error-0.log last 100 lines:
0|wiki | Error: Cannot find module 'multer'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/libs/local.js:6:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:34:17)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | Error: Cannot find module 'multer'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/libs/local.js:6:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:34:17)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | Error: Cannot find module 'multer'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/libs/local.js:6:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:34:17)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | Error: Cannot find module 'multer'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/libs/local.js:6:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:34:17)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | Error: Cannot find module 'multer'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/libs/local.js:6:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/server.js:34:17)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)

[STREAMING] Now streaming realtime logs for [wiki] process
^C
ubuntu@ip-172-31-30-112:~$ npm install multer
npm WARN checkPermissions Missing write access to /home/ubuntu/node_modules
[email protected] /home/ubuntu
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "multer"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! path /home/ubuntu/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/ubuntu/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/npm-debug.log
ubuntu@ip-172-31-30-112:~$ sudo npm install multer
[email protected] /home/ubuntu
└─┬ [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
ubuntu@ip-172-31-30-112:$ node wiki start
✔ Wiki.js has started successfully.
ubuntu@ip-172-31-30-112:
$ pm2 status wiki
┌──────┬──────┬─────────┬────┬─────┬────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
├──────┼──────┼─────────┼────┼─────┼────────┤
│ wiki │ fork │ errored │ 20 │ 0% │ 0 B │
└──────┴──────┴─────────┴────┴─────┴────────┘
Use pm2 show <id|name> to get more details about an app
ubuntu@ip-172-31-30-112:~$ pm2 logs wiki --lines 100
[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lines option)
/home/ubuntu/logs/wiki-output-0.log last 100 lines:
0|wiki | 2017-02-26T23:01:12.803Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:01:13.063Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:01:13.064Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:01:13.458Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:01:13.715Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:01:13.718Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:01:14.099Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:01:14.354Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:01:14.358Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:01:14.733Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:01:14.984Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:01:14.988Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:01:15.364Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:01:15.618Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:01:15.622Z - info: [SERVER.Local] Data and Repository directories are OK.

/home/ubuntu/logs/wiki-error-0.log last 100 lines:
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)

[STREAMING] Now streaming realtime logs for [wiki] process
^C
ubuntu@ip-172-31-30-112:~$ npm install bcryptjs
npm WARN checkPermissions Missing write access to /home/ubuntu/node_modules
[email protected] /home/ubuntu
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "bcryptjs"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! path /home/ubuntu/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! { Error: EACCES: permission denied, access '/home/ubuntu/node_modules'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/ubuntu/node_modules' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/npm-debug.log
ubuntu@ip-172-31-30-112:~$ sudo npm install bcryptjs
[email protected] /home/ubuntu
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
ubuntu@ip-172-31-30-112:$ node wiki start
✔ Wiki.js has started successfully.
ubuntu@ip-172-31-30-112:
$ pm2 status wiki
┌──────┬──────┬─────────┬────┬─────┬────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
├──────┼──────┼─────────┼────┼─────┼────────┤
│ wiki │ fork │ errored │ 24 │ 0% │ 0 B │
└──────┴──────┴─────────┴────┴─────┴────────┘
Use pm2 show <id|name> to get more details about an app
ubuntu@ip-172-31-30-112:~$ pm2 logs wiki --lines 100
[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lines option)
/home/ubuntu/logs/wiki-output-0.log last 100 lines:
0|wiki | 2017-02-26T23:02:51.141Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:02:51.393Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:02:51.396Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:02:51.771Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:02:52.033Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:02:52.037Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:02:52.414Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:02:52.667Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:02:52.670Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:02:53.054Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:02:53.309Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:02:53.312Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:02:53.693Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:02:53.953Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:02:53.956Z - info: [SERVER.Local] Data and Repository directories are OK.

/home/ubuntu/logs/wiki-error-0.log last 100 lines:
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)

[STREAMING] Now streaming realtime logs for [wiki] process
^C
ubuntu@ip-172-31-30-112:$ cd /home/ubuntu/node_modules/requarks-core/core-libs
ubuntu@ip-172-31-30-112:
/node_modules/requarks-core/core-libs$ la
auth.js config.js mongodb.js redis.js rights.js winston.js
ubuntu@ip-172-31-30-112:/node_modules/requarks-core/core-libs$ vim mongodb.js
ubuntu@ip-172-31-30-112:
/node_modules/requarks-core/core-libs$ cd ..
ubuntu@ip-172-31-30-112:/node_modules/requarks-core$ cd ..
ubuntu@ip-172-31-30-112:
/node_modules$ la
amp fs-extra onetime
amp-message fs.realpath on-finished
ansi-regex fstream ora
ansi-styles gkt parse-glob
anymatch glob passport-oauth2
append-field glob-base passport-strategy
argparse glob-parent path-is-absolute
array-unique graceful-fs path-parse
arr-diff graceful-readlink pause
arr-flatten has-ansi pidusage
arrify hooks-fixed pm2
async inflight pm2-axon
async-each inherits pm2-axon-rpc
async-listener interpret pm2-deploy
balanced-match ioredis pmx
bcryptjs isarray preserve
.bin is-binary-path process-nextick-args
binary-extensions is-buffer randomatic
blessed is-dotfile readable-stream
block-stream is-equal-shallow readdirp
bluebird is-extendable rechoir
brace-expansion is-extglob redis-commands
braces is-glob redis-parser
bson is-number regex-cache
buffer-shims isobject regexp-clone
busboy is-posix-bracket repeat-element
chalk is-primitive repeat-string
chokidar isstream requarks-core
cli-cursor jsonfile require_optional
cli-spinners json-stringify-safe resolve
cli-table kareem resolve-from
cluster-key-slot kind-of restore-cursor
colors lazy rimraf
commander lodash semver
concat-map lodash.findindex set-immediate-shim
concat-stream lodash.isequal shelljs
continuation-local-storage log-symbols shimmer
core-util-is media-typer signal-exit
cron methods sliced
cycle micromatch source-map
debug mime-db source-map-support
dicer mimic-fn sprintf-js
double-ended-queue minimatch stack-trace
ee-first minimist streamsearch
emitter-listener mkdirp string_decoder
es6-promise moment strip-ansi
escape-regexp moment-timezone supports-color
escape-string-regexp mongodb tar
esprima mongodb-core tv4
eventemitter2 mpath typedarray
expand-brackets mpromise type-is
expand-range mquery uid2
extglob ms util-deprecate
eyes multer utils-merge
fclone muri uuid
filename-regex normalize-path vizion
fill-range nssocket vxx
flexbuffer oauth wiki.js
follow-redirects object-assign wrappy
for-in object.omit xtend
for-own once yamljs
ubuntu@ip-172-31-30-112:~/node_modules$ npm install mongooose
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mongooose"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/mongooose
npm ERR! 404
npm ERR! 404 'mongooose' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mongooose"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! path npm-debug.log.3713839394
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.3713839394'
npm ERR! { Error: EACCES: permission denied, open 'npm-debug.log.3713839394'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'open',
npm ERR! path: 'npm-debug.log.3713839394' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/node_modules/npm-debug.log
ubuntu@ip-172-31-30-112:~/node_modules$ sudo npm install mongooose
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mongooose"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/mongooose
npm ERR! 404
npm ERR! 404 'mongooose' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/node_modules/npm-debug.log
ubuntu@ip-172-31-30-112:/node_modules$ cd
No command 'cd~' found, did you mean:
Command 'cdw' from package 'cdw' (universe)
Command 'cdp' from package 'irpas' (multiverse)
Command 'cde' from package 'cde' (universe)
Command 'cdi' from package 'cdo' (universe)
Command 'cdo' from package 'cdo' (universe)
Command 'cd5' from package 'cd5' (universe)
Command 'cdb' from package 'tinycdb' (main)
Command 'cdv' from package 'codeville' (universe)
cd~: command not found
ubuntu@ip-172-31-30-112:~/node_modules$ sudo npm install mongooose
npm ERR! Linux 3.13.0-107-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mongooose"
npm ERR! node v7.6.0
npm ERR! npm v4.1.2
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/mongooose
npm ERR! 404
npm ERR! 404 'mongooose' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/node_modules/npm-debug.log
ubuntu@ip-172-31-30-112:~/node_modules$ sudo npm install mongoose
[email protected] /home/ubuntu
└─┬ [email protected]
└── [email protected]

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
ubuntu@ip-172-31-30-112:~/node_modules$ node wiki start
module.js:472
throw err;
^

Error: Cannot find module '/home/ubuntu/node_modules/wiki'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:422:7)
at startup (bootstrap_node.js:143:9)
at bootstrap_node.js:537:3
ubuntu@ip-172-31-30-112:/node_modules$ cd
No command 'cd~' found, did you mean:
Command 'cdv' from package 'codeville' (universe)
Command 'cdp' from package 'irpas' (multiverse)
Command 'cdo' from package 'cdo' (universe)
Command 'cde' from package 'cde' (universe)
Command 'cdb' from package 'tinycdb' (main)
Command 'cd5' from package 'cd5' (universe)
Command 'cdi' from package 'cdo' (universe)
Command 'cdw' from package 'cdw' (universe)
cd~: command not found
ubuntu@ip-172-31-30-112:/node_modules$ cd ~
ubuntu@ip-172-31-30-112:
$ node wiki start
✔ Wiki.js has started successfully.
ubuntu@ip-172-31-30-112:$ pm2 status wiki
┌──────┬──────┬─────────┬────┬─────┬────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
├──────┼──────┼─────────┼────┼─────┼────────┤
│ wiki │ fork │ errored │ 28 │ 0% │ 0 B │
└──────┴──────┴─────────┴────┴─────┴────────┘
Use pm2 show <id|name> to get more details about an app
ubuntu@ip-172-31-30-112:
$ pm2 logs wiki --lines 100
[TAILING] Tailing last 100 lines for [wiki] process (change the value with --lines option)
/home/ubuntu/logs/wiki-output-0.log last 100 lines:
0|wiki | 2017-02-26T23:07:07.346Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:07:07.597Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:07:07.601Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:07:07.982Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:07:08.233Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:07:08.236Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:07:08.613Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:07:08.862Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:07:08.865Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:07:09.237Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:07:09.487Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:07:09.491Z - info: [SERVER.Local] Data and Repository directories are OK.
0|wiki | 2017-02-26T23:07:09.866Z - info: [SERVER] Wiki.js is initializing...
0|wiki | 2017-02-26T23:07:10.118Z - info: [SERVER.Local] Checking data directories...
0|wiki | 2017-02-26T23:07:10.121Z - info: [SERVER.Local] Data and Repository directories are OK.

/home/ubuntu/logs/wiki-error-0.log last 100 lines:
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)
0|wiki | Error: Cannot find module 'bcryptjs-then'
0|wiki | at Function.Module._resolveFilename (module.js:470:15)
0|wiki | at Function.Module._load (module.js:418:25)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at Object. (/home/ubuntu/models/user.js:4:16)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Module.require (module.js:498:17)
0|wiki | at require (internal/module.js:20:19)
0|wiki | at /home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:52:22
0|wiki | at Array.forEach (native)
0|wiki | at Object.init (/home/ubuntu/node_modules/requarks-core/core-libs/mongodb.js:50:4)
0|wiki | at Object. (/home/ubuntu/server.js:35:54)
0|wiki | at Module._compile (module.js:571:32)
0|wiki | at Object.Module._extensions..js (module.js:580:10)
0|wiki | at Module.load (module.js:488:32)
0|wiki | at tryModuleLoad (module.js:447:12)
0|wiki | at Function.Module._load (module.js:439:3)
0|wiki | at Object. (/srv/node_modules/pm2/lib/ProcessContainerFork.js:53:21)

[STREAMING] Now streaming realtime logs for [wiki] process

Wiki does not work with git: false

if in the configuration git connection is turned off (git: false as from docs)
during document creation there is an error pop-up with message "Something went wrong."

document is created in repo folder but is not available in wiki UI

in logs:
Error: spawn git ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickDomainCallback [as _tickCallback] (internal/process/next_tick.js:122:9)

advice for project name and storage

This project is being developed frequently. It would be known by more and more people. However, it's hard for people to identify which wiki because wiki is a common name. A unique name would be better, such as quarkwiki or like.

This wiki currently uses mongodb and txt for storage at the same time. I think it makes it difficult to backup or transfer to other server. I think use only txt or only database should be better.

Authentication Not Working

Hi guys!

Your project looked very promising to me so I gave it a go. Unfortunately I wasn't able to do the first admin login. By submitting the login form, the request hangs. No response is written.

Here's what I see in the logs:

pm2 logs wiki

/var/www/wikijs/logs/wiki-error-0.log last 15 lines:
0|wiki     | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|wiki     | [object Object]
0|wiki     | Unhandled rejection (<{"message":"Cannot increment request c...>, no stack trace)
0|wiki     | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|wiki     | [object Object]
0|wiki     | Unhandled rejection (<{"message":"Cannot increment request c...>, no stack trace)
0|wiki     | Unhandled rejection (<{"message":"Cannot increment request c...>, no stack trace)
0|wiki     | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|wiki     | [object Object]
0|wiki     | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|wiki     | [object Object]

Config File

title: <removed>
host: https://<removed>

port: 2017

paths:
  repo: ./repo
  data: ./data

uploads:
  maxImageFileSize: 3
  maxOtherFileSize: 100

lang: en

public: false

auth:
  local:
    enabled: true
  google:
    enabled: false
    clientId: GOOGLE_CLIENT_ID
    clientSecret: GOOGLE_CLIENT_SECRET
  microsoft:
    enabled: false
    clientId: MS_APP_ID
    clientSecret: MS_APP_SECRET
  facebook:
    enabled: false
    clientId: FACEBOOK_APP_ID
    clientSecret: FACEBOOK_APP_SECRET


sessionSecret: <removed>
admin: <removed>
db: mongodb://localhost:27017/wiki
git:
  url: <removed>
  branch: master
  auth:

    # Type: basic or ssh
    type: basic

    # Only for Basic authentication:
    username: <removed>
    password: <removed>

    # Only for SSH authentication:
    #privateKey: /etc/wiki/keys/git.pem

    sslVerify: true
  signature:
    name: <removed>
    email: <removed>

Environment

node -v
v7.6.0

netstat -tulpn
tcp 0 0 127.0.0.1:28017 0.0.0.0:* LISTEN 17276/mongod
tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 17276/mongod

git --version
git version 2.11.0

node wiki --version
1.0.0-beta.8

I'm sure this is not enough information for the issue to be found. But it's a start with I thought to include. I'm more than willing to provide anything you could need.

Thanks in advance.

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.