Coder Social home page Coder Social logo

Comments (8)

manuelkamp avatar manuelkamp commented on September 3, 2024 1

OK forget the previous error, tried doubling the RAm to 4096MB again, and now it builds. And pm2 restart pingvin-share-frontend works... very strange... Previous builds were possible to build with 1024MB, since when it is running, it never uses 4096MB at all: 5.75% (235.42 MiB von 4.00 GiB)
I am downgrading RAM again to 1024MB, now I know for updates it needs more RAM.

from pingvin-share.

manuelkamp avatar manuelkamp commented on September 3, 2024 1

Thanks, but I avoid docker, since it has too much overhead compared to LXC and is too complex to maintain, so I prefer (and have only) bare metal for everything. It is also easier to include security measurements in bare metal than in docker containers. Docker is just easy to deploy, but for everything other than that, this is a big disadvantage.

from pingvin-share.

manuelkamp avatar manuelkamp commented on September 3, 2024
pm2 start --name="pingvin-share-frontend" .next/standalone/server.js

gives

[PM2][ERROR] Script not found: /opt/pingvin-share/frontend/.next/standalone/server.js

from pingvin-share.

stonith404 avatar stonith404 commented on September 3, 2024

Does this issue only occur since the last release? Could you also please share the output of cd frontend && npm run build?

from pingvin-share.

manuelkamp avatar manuelkamp commented on September 3, 2024

frontend builds and starts fine, no errors. I am on version Version 0.28.0, so yes.

from pingvin-share.

stonith404 avatar stonith404 commented on September 3, 2024

frontend builds and starts fine

So does it work now? If not, could you please try pm2 start --name="pingvin-share-frontend" npm -- run startinstead of pm2 start --name="pingvin-share-frontend" .next/standalone/server.js?

from pingvin-share.

manuelkamp avatar manuelkamp commented on September 3, 2024

sorry, got confused with #546

I tried it again, this time it is another error. It does not build now. So a step ahead of the previous time I tried it.

Already tried to double the RAM to the LXC and has now 2048MB. It uses only max. 63% of available RAM.

I run this command: cd ../frontend && npm install && npx prisma generate && npm run build

up to date, audited 785 packages in 1s

162 packages are looking for funding
  run `npm fund` for details

1 high severity vulnerability

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> [email protected] build
> next build

  ▲ Next.js 14.2.3


./src/components/account/showShareInformationsModal.tsx
6:10  Warning: 'FileMetaData' is defined but never used.  no-unused-vars

./src/components/admin/configuration/AdminConfigInput.tsx
17:26  Warning: 'variable' is defined but never used.  no-unused-vars

./src/components/admin/shares/ManageShareTable.tsx
28:17  Warning: 'share' is defined but never used.  no-unused-vars

./src/components/admin/users/ManageUserTable.tsx
6:28  Warning: 'useIntl' is defined but never used.  no-unused-vars
16:16  Warning: 'user' is defined but never used.  no-unused-vars

./src/components/header/ActionAvatar.tsx
6:28  Warning: 'useIntl' is defined but never used.  no-unused-vars

./src/components/share/FileSizeInput.tsx
15:14  Warning: 'number' is defined but never used.  no-unused-vars

./src/components/share/showEnterPasswordModal.tsx
11:20  Warning: 'password' is defined but never used.  no-unused-vars
26:20  Warning: 'password' is defined but never used.  no-unused-vars

./src/components/upload/Dropzone.tsx
44:20  Warning: 'files' is defined but never used.  no-unused-vars

./src/components/upload/FileList.tsx
71:14  Warning: 'files' is defined but never used.  no-unused-vars

./src/components/upload/modals/showCreateUploadModal.tsx
48:20  Warning: 'createShare' is defined but never used.  no-unused-vars
48:46  Warning: 'files' is defined but never used.  no-unused-vars
100:20  Warning: 'createShare' is defined but never used.  no-unused-vars
100:46  Warning: 'files' is defined but never used.  no-unused-vars
461:20  Warning: 'createShare' is defined but never used.  no-unused-vars
461:46  Warning: 'files' is defined but never used.  no-unused-vars

./src/pages/account/shares.tsx
7:3  Warning: 'MediaQuery' is defined but never used.  no-unused-vars

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
 ✓ Linting and checking validity of types
   Creating an optimized production build ...
> [PWA] Compile server
> [PWA] Compile server
> [PWA] Compile client (static)
> [PWA] Auto register service worker with: /opt/pingvin-share/frontend/node_modules/next-pwa/register.js
> [PWA] Service worker: /opt/pingvin-share/frontend/public/sw.js
> [PWA]   url: /sw.js
> [PWA]   scope: /
 ✓ Compiled successfully
   Collecting page data  ...Killed

from pingvin-share.

stonith404 avatar stonith404 commented on September 3, 2024

Okay thanks. Alternatively I would recommend you the Docker installation, with that you don't have to build the project.

from pingvin-share.

Related Issues (20)

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.