Giter Site home page Giter Site logo

aliasqli / hackage-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haskell/hackage-server

0.0 0.0 0.0 10.87 MB

Hackage-Server: A Haskell Package Repository

Home Page: http://hackage.haskell.org

License: Other

Shell 0.23% JavaScript 0.65% Haskell 93.00% Smalltalk 0.31% CSS 0.90% Nix 0.03% Dockerfile 0.09% StringTemplate 4.80%

hackage-server's People

Contributors

agrafix avatar alexbiehl avatar aliasqli avatar andreasabel avatar aslatter avatar awasthishubh avatar batterseapower avatar bgamari avatar bitemyapp avatar conklech avatar davidlazar avatar dcoutts avatar dwijnand avatar dzackgarza avatar edsko avatar gbaz avatar gracenotes avatar grayjay avatar hvr avatar ian-ross avatar igfoo avatar lambda-fairy avatar lemmih avatar peterbecich avatar peti avatar phadej avatar sitaochen avatar tommd avatar werehamster avatar ysangkok avatar

hackage-server's Issues

Acid runtime error

To store test logs on the server, I updated the BuildReports and PkgBuildReports datatype. Everything is working well except from migration. The server can't start with old state files, and gave the following error:

...
Initialising reports (core) feature
Data.Acid.Core: too few bytes
From:   demandInput


CallStack (from HasCallStack):
  error, called at src/Data/Acid/Core.hs:227:22 in acid-state-0.16.1.1-68c5afff6f75718b0df8b41735530a2aec546e100a2603fe5bfec8d319b5ddba:Data.Acid.Core
CallStack (from -prof):
  Data.Acid.Core.lazyDecode (src/Data/Acid/Core.hs:(225,1)-(228,24))
  Data.Acid.Core.lookupColdMethod (src/Data/Acid/Core.hs:(218,1)-(222,75))
  Data.Acid.Core.runColdMethod.\.(...) (src/Data/Acid/Core.hs:213:14-72)
  Data.Acid.Core.runColdMethod.\ (src/Data/Acid/Core.hs:(213,7)-(214,25))
  Data.Acid.Core.modifyCoreState.\ (src/Data/Acid/Core.hs:(190,44)-(191,61))
  Data.Acid.Core.modifyCoreState (src/Data/Acid/Core.hs:(189,1)-(191,61))
  Data.Acid.Core.runColdMethod (src/Data/Acid/Core.hs:(211,1)-(214,25))
  Data.Acid.Local.resumeLocalStateFrom.replayEvents (src/Data/Acid/Local.hs:(404,5)-(420,39))
  Data.Acid.Local.resumeLocalStateFrom (src/Data/Acid/Local.hs:(379,1)-(424,65))
  Data.Acid.Local.openLocalStateWithSerialiser (src/Data/Acid/Local.hs:(301,1)-(302,77))
  Data.Acid.Local.openLocalStateFrom (src/Data/Acid/Local.hs:(287,1)-(288,79))
  Distribution.Server.Features.BuildReports.reportsStateComponent (src/Distribution/Server/Features/BuildReports.hs:(86,1)-(96,5))
  Distribution.Server.Features.BuildReports.initBuildReportsFeature (src/Distribution/Server/Features/BuildReports.hs:(76,1)-(83,20))
  Distribution.Server.Framework.Logging.logTiming (src/Distribution/Server/Framework/Logging.hs:(46,1)-(51,14))
  Distribution.Server.Features.initHackageFeatures.logStartup (src/Distribution/Server/Features.hs:(422,5)-(424,80))
  Distribution.Server.Features.initHackageFeatures (src/Distribution/Server/Features.hs:(78,1)-(424,80))
  Distribution.Server.initialise (src/Distribution/Server.hs:(164,1)-(175,5))
  Main.withServer.initialise (exes/Main.hs:(912,5)-(924,19))
  Main.withServer (exes/Main.hs:(910,1)-(932,36))
  Main.runAction (exes/Main.hs:(291,1)-(423,46))
  Main.main.commandAddActionNoArgs.\ (exes/Main.hs:(96,50)-(100,20))
  Main.main.commandAddActionNoArgs (exes/Main.hs:(95,5)-(100,20))
  Main.main.commands (exes/Main.hs:(87,5)-(93,7))
  Distribution.Simple.Utils.topHandlerWith (src/Distribution/Simple/Utils.hs:(377,1)-(420,41))
  Distribution.Simple.Utils.topHandler (src/Distribution/Simple/Utils.hs:432:1-72)
  Main.main (exes/Main.hs:(64,1)-(100,20))

I can't find where I've done the migration wrong. Code is in branch test-log. Relevant file should be src/Distribution/Server/Features/BuildReports/BuildReports.hs.

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.