in line 27 of run.sh , source "$ETHERPADDIR/bin/ooffice.sh" is getting set , but there is no oofice.sh in /etherpad/bin. this is getting setup from etherpad.properties later -so this line 27 is not needed
This is to fix installing on ubuntu #6.
MaxPermSize is causing the below issue and lowering it to 512m solved the problem.
bin/run.sh: line 27: /home/some_user/git/hackpad/bin/ooffice.sh: no such file or directory
Maximum ram: 1656M
Maximum thread count: 276
Using config file: ./etc/etherpad.local.properties
Error occurred during initialization of VM
Could not reserve enough space for object heap
While this is intended to be a feature, I suspect people select it
accidentally more often than they do intentionally. Selecting this row
issues a request to `/ep/pad/newpad?title=QUERY&r=POSITION`, where QUERY
is the query in the search bar and POSITION is the position of the row.
We saw this kind of URL in the request log for a user who accidentally
created a pad. And anecdotally, I've personally selected this row by
accident.
Even if we remove this feature, it's relatively easy to create a new pad
by clicking the New Pad button, so hopefully we're not taking too much
away from users.
We also clean up exports.sh a bit so it's easy to tell what needs
customizing for new environments vs. what is supposed to work as-is.
These are hopefully more up-to-date and reasonable defaults for a
developer on OS X, and for developers not on OS X, hopefully the cleanup
helps clarify what likely needs customization.
One of the changes to default values is to use the scala-library.jar
within the given installation of Scala, not the repo's
scala-library.jar. I don't know much about Scala, but it seems like a
better default to make SCALA, SCALA_HOME, and SCALA_LIBRARY_JAR all
match instead of SCALA_LIBRARY_JAR being a special snowflake that's
checked into the repo.
The installation process modified the jar, so it seems like this is an
artifact particular to each person's development environment, not
something that should be checked in.
I think this is a reference to the mysql-connector-java library, a jar
for which is already part of the repo. (Technically, it's bad to have
jars in repos, but we'll solve that problem another time.)
When I used Scala 2.7, I got a compiler error "not found: value math."
As far as I can tell, this is because Scala 2.7 doesn't include a
scala.math package (http://www.scala-lang.org/api/2.7.7/). I tried
Scala 2.11.7 instead, and that worked fine.
We observed that users frequently created new pads with titles that look
a lot like search queries. This pollutes workspaces with empty pads.
Worse, these pads have titles optimized for search ranking since they
are named after popular queries, so search results quickly become fairly
useless.
We're not sure exactly what flow leads users to create these pads, but
we suspect that they're clicking the "new pad" button on the search
results page, which fills in a `title` query param based on the search
query. This commit removes the auto-population of the `title` so the
new pad will be given the glorious default title of "Untitled."