Comments (10)
Hey @righdforsa, @quinthar,
I couldn't find how you build deb package for bedrock, so its not a proper PR per se, but here you go:
https://gist.github.com/qqo/32c26c6f4c24edd1c6aca216275d1b1e
In a nutshell, you can simply add those three files into debian control file and it should just work. The tests I did are also added to gist, and stuff I was concerned about marked as 'todo' in comments. Should also address #24 and #27. The config file is super simple to address the fact that it might be autogenerated, as well as initscript.
Cheers!
from bedrock.
Can you do service bedrock status
and post the output? It should shed some light on what part of the post install script is failing.
from bedrock.
Removed:
sudo apt-get remove --purge bedrock
Installed:
sh@sh-ubuntu:/var/lib$ sudo apt-get install bedrock
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-36 linux-headers-4.4.0-36-generic linux-image-4.4.0-36-generic linux-image-extra-4.4.0-36-generic linux-signed-image-4.4.0-36-generic linux-tools-4.4.0-36
linux-tools-4.4.0-36-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
bedrock
0 upgraded, 1 newly installed, 0 to remove and 52 not upgraded.
Need to get 0 B/2,845 kB of archives.
After this operation, 7,920 kB of additional disk space will be used.
Selecting previously unselected package bedrock.
(Reading database ... 309425 files and directories currently installed.)
Preparing to unpack .../bedrock_1.0.20~7a4c774_all.deb ...
Unpacking bedrock (1.0.20~7a4c774) ...
Processing triggers for systemd (229-4ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up bedrock (1.0.20~7a4c774) ...
[....] Starting bedrock (via systemctl): bedrock.serviceFailed to start bedrock.service: Unit bedrock.service not found.
failed!
dpkg: error processing package bedrock (--configure):
subprocess installed post-installation script returned error exit status 5
Processing triggers for systemd (229-4ubuntu10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
bedrock
E: Sub-process /usr/bin/dpkg returned an error code (1)
sh@sh-ubuntu:/var/lib$ service bedrock status
● bedrock.service - LSB: Start the Expensify Bedrock jobs/scheduling/cache server.
Loaded: loaded (/etc/init.d/bedrock; bad; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (SQLiteNode.cpp:170) shutdownComplete [write0] [info] {bedrock/SEARCHING} Graceful shutdown is complete
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (BedrockServer.cpp:248) BedrockServer_WorkerThread [write0] [info] Thread exiting
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (SQLite.cpp:105) ~SQLite [write0] [info] {/var/lib/bedrock/bedrock.db} Closing database '/var/lib/bedrock/bedrock.db', commitCount=1
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (libstuff.cpp:2394) SQuery [write0] [dbug] SELECT MAX(id) FROM journal
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (libstuff.cpp:2394) SQuery [write0] [dbug] SELECT hash FROM journal WHERE id=1
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (SQLite.cpp:18) sqliteLogCallback [write0] [info] {SQLITE} Code: 28, Message: file unlinked while open: /var/lib/bedrock/bedrock.db
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (SQLite.cpp:128) ~SQLite [write0] [info] {/var/lib/bedrock/bedrock.db} Database closed.
Oct 19 23:44:55 sh-ubuntu bedrock[7011]: xxxxx (main.cpp:240) main [main] [info] Graceful bedrock shutdown complete
Oct 19 23:44:55 sh-ubuntu bedrock[7925]: ...done.
Oct 19 23:44:55 sh-ubuntu systemd[1]: Stopped LSB: Start the Expensify Bedrock jobs/scheduling/cache server..
from bedrock.
This error is happening because we didn't include a systemd unit config for bedrock. We're working on getting one written, should be available soon.
from bedrock.
In the meantime, users who get this error should be able to start the app manually from the init script:
sudo /etc/init.d/bedrock start
from bedrock.
Thanks, @qqo ! We haven't included the build script yet, but this is super useful, thanks. Your documentation is very helpful, too!
from bedrock.
@righdforsa Can you please figure out how to convert this into a PR and merge it?
from bedrock.
We've created a config directory in the repo, so now all we need to do is massage these a bit, test, and do a release.
from bedrock.
Reassigning to @coleaeason who should be able to get this done faster.
from bedrock.
Just ran into this same issue today and wanted to give this a "bump"
from bedrock.
Related Issues (20)
- Failed to open TCP port 'localhost:9999': couldn't bind(errno=98 'Address already in use') HOT 2
- Failed to open TCP port 'localhost:3306': couldn't bind(errno=98 'Address already in use') HOT 2
- yaourt is no longer maintaned, should be replaced in the installation guide
- Formal Protocol Description? HOT 2
- Jobs plugin: NACK?
- macOS Monterey Build Failure HOT 2
- Last release in late 2020... is this project still a priority for Expensify? HOT 3
- Blocking queries until a write operation has synchronized across the cluster?
- Which units are used for peekTime, totalTime, etc...?
- Beginner experience needs polish.
- MySQL Plugin is broken HOT 2
- `test/test` looks for `bedrock` in the `PATH` HOT 4
- Can this project work in collaboration with https://github.com/tursodatabase/libsql ? HOT 1
- Probably a missconfig HOT 1
- MacOS port
- MySQL plugin is not processing command line arguments HOT 1
- libstuff/libstuff.h:5:10: fatal error: arpa/inet.h: No such file or directory HOT 1
- Make generate_series() available HOT 5
- controlport CLI param missing from help and causing address in use error
- --
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bedrock.